#2835·glfw

Crash when dragging a file over the window on Wayland

Author: WerWolvCreated Mar 9, 2026Updated Aug 4, 2026
LabelsWayland

Hi! I'm experiencing a consistent crash when dragging a file from the file explorer over my application window when using GLFW 3.4 under Wayland. Importantly, just dragging a file over the application is enough to trigger it, it does not need to be dropped. I was able to reproduce this so far under Ubuntu 24.04 using GNOME + Nautilus and on Fedora 43 using Niri + Dolphin.

This happens regardless of if a custom drop callback was set using glfwSetDropCallback.

Backtrace:

#0  0x00007ffff5a813cc in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007ffff5a2715e in raise () from /lib64/libc.so.6
#2  0x00007ffff5a0e6d0 in abort () from /lib64/libc.so.6
#3  0x00007ffff471fc63 in wl_abort () from /lib64/libwayland-client.so.0
#4  0x00007ffff4720111 in wl_closure_invoke.constprop () from /lib64/libwayland-client.so.0
#5  0x00007ffff4720e49 in dispatch_event () from /lib64/libwayland-client.so.0
#6  0x00007ffff4721243 in wl_display_dispatch_queue_pending () from /lib64/libwayland-client.so.0
#7  0x00007ffff6315966 in handleEvents () from /lib64/libglfw.so.3
#8  0x00007ffff631675a in _glfwWaitEventsTimeoutWayland () from /lib64/libglfw.so.3

The crash seems to be pointing to one of these two wl_abort calls here: https://gitlab.freedesktop.org/wayland/wayland/-/blob/main/src/connection.c#L1234-1242