From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#56869: 29.0.50; segfault, "assertion 'GDK_IS_DEVICE (device)' failed" Date: Sun, 21 Aug 2022 18:56:49 +0800 Message-ID: <87mtbxlv9q.fsf@yahoo.com> References: <87sfmgjelt.fsf@Proteus> <87bkt24tng.fsf@Proteus> <87zggmcxpb.fsf@Proteus> <875yjadt7j.fsf@yahoo.com> <87y1vvaysh.fsf@Proteus> <87r11nvw44.fsf@yahoo.com> <87h72ihpk7.fsf@Proteus> <87edxmw98w.fsf@yahoo.com> <87edxlfzwz.fsf@Proteus> <87a689wsdx.fsf@yahoo.com> <87pmh33wfu.fsf@Proteus> <87tu6d4ne8.fsf@Proteus> <87pmh1qa19.fsf@yahoo.com> <87r11g4hrv.fsf@Proteus> <87h72cqx2w.fsf@yahoo.com> <87r11g2r2b.fsf@Proteus> <8735dvx9r1.fsf@Proteus> <874jyap981.fsf@yahoo.com> <87a681663o.fsf@Proteus> <87edxdnh42.fsf@yahoo.com> <875yilc40r.fsf@Proteus> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20236"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 56869@debbugs.gnu.org To: Joe Corneli Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 21 12:58:17 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPiem-00054f-KR for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Aug 2022 12:58:16 +0200 Original-Received: from localhost ([::1]:57094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPiel-00039h-1z for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Aug 2022 06:58:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPieY-00039Q-93 for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 06:58:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44115) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPieY-0008Pc-0S for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 06:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPieX-0006q3-N8 for bug-gnu-emacs@gnu.org; Sun, 21 Aug 2022 06:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Aug 2022 10:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 56869-submit@debbugs.gnu.org id=B56869.166107944026235 (code B ref 56869); Sun, 21 Aug 2022 10:58:01 +0000 Original-Received: (at 56869) by debbugs.gnu.org; 21 Aug 2022 10:57:20 +0000 Original-Received: from localhost ([127.0.0.1]:33864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPidr-0006p5-PW for submit@debbugs.gnu.org; Sun, 21 Aug 2022 06:57:20 -0400 Original-Received: from sonic309-20.consmr.mail.ne1.yahoo.com ([66.163.184.146]:39985) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPidf-0006oI-Ty for 56869@debbugs.gnu.org; Sun, 21 Aug 2022 06:57:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661079420; bh=93qH1+L4cI9aaDG5/sBRgF4AM6a6eskYVudjFnpMI4I=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=I+ccTYOLrChywFMjP9j+3c4h6L6Y82LJpSBcpmBVNwWssCqgxq/EEv3kaHe3Eg4sq9y38FJd1Zsv7o98JPcNxQUGlHbkS4+zCjTcgn0zC7R9kTAL5tto1BSEKlQo0yGpv/P4Px+2scYzNiXmWuvLreR4rhz00/ovDdHi32JJ9bLoTgFjkbvLp/w+1vkDJLMWQY7x7ixZI8BT6ItmQWtit5tvUc69dJ4zvNaJEMfynIp+qb8fjL8oS3+npM14G9q1dFQcjRbVsWlybGjEHxHnJPU93ZtnyG5eVBXF1hKMLuuFCZS3nKcwKDlJS2hi4frwAdSppw9bTro0DD4e3wBjww== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1661079420; bh=AaY+c/YjNPRMERRSav1uS5IlZlaLyBH5gN22/5kvL7w=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=sbLHVetWOxRm5cw0RBqGxiZUzB9ET8ZqkSMtdxI9/Rc+YAiZlwKCD0yJjcFpdhnGzSPim2UwTecekKkq8nwZMh74pR4G9rmjGTgiJVFVJV65v9bQYE5loH0lXw6c8l8vXoii45pCaM+OsE+YKvG+qS8AehxU0/wySw7gddAaw7SQAeRshSY03qnI1TEC/bDltDmClk1jPpmoEJzQlPThrWBRmt+ANcWTnMXAlq6cEYfJrNxmai4l7pPEBTNhApaidIQbMdmKcQ/lnHLA17gpDQ1SrjEsTNWqiO8Sv0995UMYSWNbsreKNJsy9KBYfHLN0UTXYxv9JXu6o8Au3XFggg== X-YMail-OSG: nLZC0qQVM1nrC1ccE6LAcRLTKLDRFmaBJwvaQi8GUkyMagNqyIPkKrvNQbIUG9b RZHXbE3HlEU3hsOSSAi0hSvC7FQcZlBRiU_PXzMSRNPQG3QcHdxRpeMrRbJX1ol0bpPizu1kkpGM MHKTcXDuaQhhcX6iwsp3JEpa4zwrWqTb5ZA4jxqUnlZyviZJfGMP7rt8SFpbUXejI6UTw1IC86zA BGju1HCPRojhKx4uDeCJ6tlKjtwhho5J0tci1aHbLIa0qx_fHRT4RhBB78mMrrAv5V2htIP2SJxu xtYFv3YH7v8xelgfcaB8XbseGmdzGdfEpQEU4i_sfkCJtoDFYnTXDxsLpFBo7At4.d6Ry9btva4Z fM5YeAbYCMlR1WUb1h6Cq2.lrx5RyyWNvrO7W1WDkAwD8ZSTcmYonIAOsmLC7M9Efm6zoguekXqe xsp9I_j1hyGv2u1x2XCvXE58sC7DOLzDLVvZb14NRMepw0GMFHEobo3T6Q6am3_xqfe.v3jSLL6d A1oFLRv6pKVl9IZJfOS0Fllxu5WDnI1fdtqGKpkqHPwsCHOIHNOsDROPY965eCR3fTDl5qXqeeRv zb0IfGDpOBsATDM0QMgK8GGkcpxaxsO6RmW98YLXTAfHKMOuR01NYTUuAPvz8wwPqHJTYf7QQPa8 ebQOfddu2zCseTwwth.9JoChhNKUiDs87Za3DprPmW4tquC1ojGCvR3f79SYXVS6S1p.LLtqxBQG N1KYESEJHxRfdx4JB2tJiNvNQL69K7_yw4DyJKBoBZn5.g1Jwq4RqSeeMK3LcBjuvONox32hDADH XzovwZSSJWPNoz_K8vsIQ.7pYovZwRZMs5HS5AXZ3W X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Sun, 21 Aug 2022 10:57:00 +0000 Original-Received: by hermes--canary-production-sg3-6f58cd9b5-fz6jj (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 517b342db326745bcf2f9fba2357ff8a; Sun, 21 Aug 2022 10:56:55 +0000 (UTC) In-Reply-To: <875yilc40r.fsf@Proteus> (Joe Corneli's message of "Sun, 21 Aug 2022 10:57:56 +0100") X-Mailer: WebService/1.1.20560 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240293 Archived-At: tags 56869 wontfix thanks Joe Corneli writes: > OK, here=E2=80=99s the info: > > (gdb) p xev->sourceid > $1 =3D 12 > > $ xinput list > =E2=8E=A1 Virtual core pointer id=3D2 [master pointer= (3)] > =E2=8E=9C =E2=86=B3 Virtual core XTEST pointer id=3D4 [sl= ave pointer (2)] > =E2=8E=9C =E2=86=B3 MSFT0001:01 06CB:CD64 Mouse id=3D11 [s= lave pointer (2)] > =E2=8E=9C =E2=86=B3 MSFT0001:01 06CB:CD64 Touchpad id=3D12 [s= lave pointer (2)] > =E2=8E=A3 Virtual core keyboard id=3D3 [master keyboar= d (2)] > =E2=86=B3 Virtual core XTEST keyboard id=3D5 [slave key= board (3)] > =E2=86=B3 Power Button id=3D6 [slave key= board (3)] > =E2=86=B3 Video Bus id=3D7 [slave key= board (3)] > =E2=86=B3 Power Button id=3D8 [slave key= board (3)] > =E2=86=B3 Sleep Button id=3D9 [slave key= board (3)] > =E2=86=B3 Intel HID events id=3D13 [slave ke= yboard (3)] > =E2=86=B3 AT Translated Set 2 keyboard id=3D14 [slave ke= yboard (3)] > =E2=86=B3 Chicony USB2.0 Camera: Chicony id=3D10 [slave ke= yboard (3)] > > > ... and another possible clue, which is that I=E2=80=99m 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.