From: Stefan Kangas <stefankangas@gmail.com>
To: Po Lu <luangruo@yahoo.com>
Cc: Joe Corneli <joseph.corneli@hyperreal.enterprises>,
56869-done@debbugs.gnu.org
Subject: bug#56869: 29.0.50; segfault, "assertion 'GDK_IS_DEVICE (device)' failed"
Date: Sun, 3 Sep 2023 02:13:35 -0700 [thread overview]
Message-ID: <CADwFkm=UEwR3jXNjONMgo41FVoMS1+2JRwFOccc+LMWiYwLQQw@mail.gmail.com> (raw)
In-Reply-To: <87mtbxlv9q.fsf@yahoo.com> (Po Lu's message of "Sun, 21 Aug 2022 18:56:49 +0800")
Po Lu <luangruo@yahoo.com> writes:
> tags 56869 wontfix
> thanks
>
> Joe Corneli <joseph.corneli@hyperreal.enterprises> writes:
>
>> OK, here’s the info:
>>
>> (gdb) p xev->sourceid
>> $1 = 12
>>
>> $ xinput list
>> ⎡ Virtual core pointer id=2 [master pointer (3)]
>> ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
>> ⎜ ↳ MSFT0001:01 06CB:CD64 Mouse id=11 [slave pointer (2)]
>> ⎜ ↳ MSFT0001:01 06CB:CD64 Touchpad id=12 [slave pointer (2)]
>> ⎣ Virtual core keyboard id=3 [master keyboard (2)]
>> ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
>> ↳ Power Button id=6 [slave keyboard (3)]
>> ↳ Video Bus id=7 [slave keyboard (3)]
>> ↳ Power Button id=8 [slave keyboard (3)]
>> ↳ Sleep Button id=9 [slave keyboard (3)]
>> ↳ Intel HID events id=13 [slave keyboard (3)]
>> ↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
>> ↳ Chicony USB2.0 Camera: Chicony id=10 [slave keyboard (3)]
>>
>>
>> ... and another possible clue, which is that I’m running Touchpad
>> Indicator, https://github.com/atareao/Touchpad-Indicator
>>
>> and I have it set up to disable the trackpad _while typing_. Perhaps
>> the way it enables and disables the trackpad is currently interacting
>> with Emacs in a glitchy way.
>
> Right, I think I know what this is now. GTK fails to read information
> about the trackpad due to it being disabled between the
> XI_HierarchyChange event being sent and and it being handled. GTK then
> segfaults trying to access a field in a device it doesn't know about.
>
> This only shows up in Emacs, because most other GTK programs do not make
> people rapidly alternate between trackpad and keyboard use.
>
> I suggest using a build of Emacs without GTK. If you have to use GTK,
> turn off '--with-xinput2', but as a result several features will no
> longer work.
>
> Thanks.
>
> BTW, the quality of the GDK X11 backend has lately dropped to a very low
> level. I'm going to push for the Emacs build to default to the Motif or
> no-toolkit build instead.
Thanks, so it seems like the solution is to use a build without GTK or
'--with-xinput2'. I'm therefore closing this bug report.
prev parent reply other threads:[~2023-09-03 9:13 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-01 13:08 bug#56869: 29.0.50; segfault, "assertion 'GDK_IS_DEVICE (device)' failed" Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-02 1:17 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-02 14:17 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-02 18:22 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-03 1:14 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-11 9:56 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-11 11:48 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-11 13:34 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-12 1:17 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-12 11:45 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-12 12:35 ` Eli Zaretskii
2022-08-12 13:23 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-14 11:21 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-12 12:36 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-14 11:18 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-15 14:00 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-16 0:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-16 10:14 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-16 10:52 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-16 14:36 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-17 13:47 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-18 2:38 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-18 13:20 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-19 1:42 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-21 9:57 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-21 10:56 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-21 11:00 ` Eli Zaretskii
2022-08-22 6:21 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-22 6:37 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-22 11:27 ` Eli Zaretskii
2022-08-22 12:59 ` Joe Corneli via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-09-03 9:13 ` Stefan Kangas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=UEwR3jXNjONMgo41FVoMS1+2JRwFOccc+LMWiYwLQQw@mail.gmail.com' \
--to=stefankangas@gmail.com \
--cc=56869-done@debbugs.gnu.org \
--cc=joseph.corneli@hyperreal.enterprises \
--cc=luangruo@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).