Subject: Re: bug#56869: 29.0.50; segfault, "assertion 'GDK_IS_DEVICE (device)' failed"

From: Po Lu <[email-masked]>
Date: Thu, 18 Aug 2022 10:38:06 +0800

Joe Corneli <[email-masked]> writes:

> Joe Corneli writes:
>>
>> In light of the previous, I think this is what’s needed.  Details will
>> be forthcoming with the next crash!
>>
>> joe@Proteus:~$  sudo apt-get source libgtk-3-0
>
> OK, here’s the next round of backtrace.  Now it includes some Lisp
> details, implicating feebleline (https://melpa.org/#/feebleline) as the
> source of the problems.

Async input can be read almost anywhere, and that includes from Lisp.
So feebleline is most likely not the problem here.

> #0  gdk_x11_device_manager_xi2_translate_event
>     (xevent=<optimised out>, event=<optimised out>, display=<optimised out>, translator=<optimised out>)
>     at ../../../../../gdk/x11/gdkdevicemanager-xi2.c:1794
> #1  gdk_x11_device_manager_xi2_translate_event
>     (translator=<optimised out>, display=<optimised out>, event=<optimised out>, xevent=<optimised out>)
>     at ../../../../../gdk/x11/gdkdevicemanager-xi2.c:1478
> #2  0x00007ffff757e989 in _gdk_x11_event_translator_translate
>     (translator=translator@entry=0x55555647e400, display=0x55555645a0e0, xevent=xevent@entry=0x7ffffffe9730)
>     at ../../../../../gdk/x11/gdkeventtranslator.c:51
> #3  0x00007ffff757e4cc in gdk_event_source_translate_event (xevent=0x7ffffffe9730, event_source=0x55555648b380)
>     at ../../../../../gdk/x11/gdkeventsource.c:230
> #4  _gdk_x11_display_queue_events (display=0x55555645a0e0) at ../../../../../gdk/x11/gdkeventsource.c:341
> #5  0x00007ffff75460e4 in gdk_display_get_event (display=display@entry=0x55555645a0e0)
>     at ../../../../gdk/gdkdisplay.c:441
> #6  0x00007ffff757e0e6 in gdk_event_source_dispatch
>     (source=<optimised out>, callback=<optimised out>, user_data=<optimised out>)
>     at ../../../../../gdk/x11/gdkeventsource.c:363

As I said, the line number is unfortunately not very informative, so
please type "l" to show a listing of the GDK code at that particular
line.

Thanks.