Skip to content

Segfault at startup under QT_QPA_PLATFORM=offscreen: DefaultRootWindow() on a null display #13759

Description

@underclockeddev

Brief Summary

develop built with X11 support segfaults at startup under QT_QPA_PLATFORM=offscreen. NixUtils::NixUtils() gets a null display from the X11 native interface and passes it to DefaultRootWindow(). 2.7.12 does not crash this way.

Steps to Reproduce

  1. Build develop on Linux with X11 support.
  2. Run QT_QPA_PLATFORM=offscreen keepassxc with no DISPLAY set.

Expected Versus Actual Behavior

Expected: KeePassXC starts.

Actual: SIGSEGV at startup (exit 139), 3/3 on develop 9e0f57a.

KeePassXC Debug Information

develop 9e0f57a, Arch Linux, Qt 6.


Found and written up with Claude (Claude Code) assisting; the steps and results were checked before posting.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions