Skip to content

Fix a crash in Print settings selector dropdown - #15565

Open
lawik wants to merge 1 commit into
prusa3d:masterfrom
lawik:fix-dropdown-crash
Open

Fix a crash in Print settings selector dropdown#15565
lawik wants to merge 1 commit into
prusa3d:masterfrom
lawik:fix-dropdown-crash

Conversation

@lawik

@lawik lawik commented Aug 13, 2026

Copy link
Copy Markdown

gdk_keyval_name() returns nullptr for a keyval it has no name for, which happens for key presses carrying an unmapped keycode.

This triggered a crash under certain circumstances where KEY_UNKNOWN was sent as part of a dropdown being opened. Observed under KDE and XWayland. Reason for the keypresses still unclear. Either from KDE or Wayland.

Fix is just guarding against the nullptr.

gdk_keyval_name() returns nullptr for a keyval it has no name for, which
happens for key presses carrying an unmapped keycode.

This triggered a crash under certain circumstances where KEY_UNKNOWN
was sent as part of a dropdown being opened. Observed under KDE and
XWayland. Reason for the keypresses still unclear. Either from KDE
or Wayland.

Fix is just guarding against the nullptr.
matteius pushed a commit to opensensor/PrusaSlicer that referenced this pull request Aug 24, 2026
gdk_keyval_name() returns nullptr for a keyval it has no name for, which
happens for key presses carrying an unmapped keycode.

This triggered a crash under certain circumstances where KEY_UNKNOWN
was sent as part of a dropdown being opened. Observed under KDE and
XWayland. Reason for the keypresses still unclear. Either from KDE
or Wayland.

Fix is just guarding against the nullptr.

Imported from upstream pull request prusa3d#15565
(cherry picked from commit 82dfd21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant