From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#56869: 29.0.50; segfault, "assertion 'GDK_IS_DEVICE (device)' failed" Date: Sun, 3 Sep 2023 02:13:35 -0700 Message-ID: References: <87sfmgjelt.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> <87mtbxlv9q.fsf@yahoo.com> 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="38624"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joe Corneli , 56869-done@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 03 11:14:13 2023 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 1qcjBM-0009tA-Ap for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Sep 2023 11:14:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qcjB3-0002Cv-D7; Sun, 03 Sep 2023 05:13:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qcjB2-0002Cg-Jz for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2023 05:13:52 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qcjB2-0007Cn-BV for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2023 05:13:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qcjBC-00040z-I2 for bug-gnu-emacs@gnu.org; Sun, 03 Sep 2023 05:14:02 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Sep 2023 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 56869 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Mail-Followup-To: 56869@debbugs.gnu.org, stefankangas@gmail.com, joseph.corneli@hyperreal.enterprises Original-Received: via spool by 56869-done@debbugs.gnu.org id=D56869.169373243515405 (code D ref 56869); Sun, 03 Sep 2023 09:14:02 +0000 Original-Received: (at 56869-done) by debbugs.gnu.org; 3 Sep 2023 09:13:55 +0000 Original-Received: from localhost ([127.0.0.1]:39378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcjB5-00040P-4M for submit@debbugs.gnu.org; Sun, 03 Sep 2023 05:13:55 -0400 Original-Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]:48422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qcjB2-00040A-D6 for 56869-done@debbugs.gnu.org; Sun, 03 Sep 2023 05:13:53 -0400 Original-Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-500d13a8fafso925616e87.1 for <56869-done@debbugs.gnu.org>; Sun, 03 Sep 2023 02:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693732416; x=1694337216; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=D1R7trP9R/vb60PcD9A6Yx9FoJ1Tlkk5bGIzRp+iPkY=; b=GfdO3gbz39T+yEvcvzDVXLvKEHv2HAjNDkkpQSvoy4HrEz/S6/ZMVOF2Rr07+U54J5 0GkQWR2xTuzjiccHXgJUh3XVTL0xif3/WZjxrBl6Hh9oXvUskx1EluVAdxcotpbreAqZ MwA0XQ3vJcxLQZ1FC8vIRMMcFA0hxQfoZMdsqBt6egajiIJcFxrDBdMKBoJBLe072S+D 7E9egfF0YKjBVP/3f9UT4A18ttC0A19yTR08ppCcWeJL1J9KovMemY8lDWRlPawPcR88 qnr6uBcYRvIOTR0CUCknQ60S4AmwVSSL29FEei2jXRu9vJBOFigXBlva3QpGyWsdi9ep QqRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693732416; x=1694337216; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=D1R7trP9R/vb60PcD9A6Yx9FoJ1Tlkk5bGIzRp+iPkY=; b=Ji+Q7zjK8+2aXo1OC4NHiqNmBz/2VVEFVSzjiML88coOQU/7KK5PnakDa+FCpSpLsT G3F4ERwpVsPFk6TZrl4U1viEiqE4/llyF4Ps5vW/2PvOJzoHWlAALnhHa8JsSg4D6Znc ZSAWdlSN2ME3fDhDQGJiH3/s10dTBddmyvIX9wj1odK0I4alfCGR4XfFkucFZ8rIqYcE UJl1UcDxfw5cB3hxrFaJ8EbPYGknHoIN59poUDMKiugdKFNY5/D7Yq8ih7Ax5VKxmeWu ZAw7XoK4rEcOx/UiH7uzNNHDu7X+EAL0sqPccOFlDQuauHv+Whl/eNYgvEwMBv6juizf OAOA== X-Gm-Message-State: AOJu0YyWLAKHWOMf4m1tV1MNhO7PqpaWbve6OBEChzDiOp5tUwsuPfO6 z66Jo8HOp/+Ct8HWitOhTRcYGQZlsH36BsgemdkgR+AQVWg= X-Google-Smtp-Source: AGHT+IGkfm/F/fj0Eza416trZWCcZdAzQv0BndYPKYLrzpbhtWoaraIel6kosc2Wv+IBMrKPDV3PGVOZNXcu0EQk0Pw= X-Received: by 2002:a05:6512:33cf:b0:500:ae85:726a with SMTP id d15-20020a05651233cf00b00500ae85726amr5703957lfg.50.1693732416180; Sun, 03 Sep 2023 02:13:36 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 3 Sep 2023 02:13:35 -0700 In-Reply-To: <87mtbxlv9q.fsf@yahoo.com> (Po Lu's message of "Sun, 21 Aug 2022 18:56:49 +0800") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269101 Archived-At: Po Lu writes: > 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 pointe= r (3)] >> =E2=8E=9C =E2=86=B3 Virtual core XTEST pointer id=3D4 [s= lave pointer (2)] >> =E2=8E=9C =E2=86=B3 MSFT0001:01 06CB:CD64 Mouse id=3D11 [= slave pointer (2)] >> =E2=8E=9C =E2=86=B3 MSFT0001:01 06CB:CD64 Touchpad id=3D12 [= slave pointer (2)] >> =E2=8E=A3 Virtual core keyboard id=3D3 [master keyboa= rd (2)] >> =E2=86=B3 Virtual core XTEST keyboard id=3D5 [slave ke= yboard (3)] >> =E2=86=B3 Power Button id=3D6 [slave ke= yboard (3)] >> =E2=86=B3 Video Bus id=3D7 [slave ke= yboard (3)] >> =E2=86=B3 Power Button id=3D8 [slave ke= yboard (3)] >> =E2=86=B3 Sleep Button id=3D9 [slave ke= yboard (3)] >> =E2=86=B3 Intel HID events id=3D13 [slave k= eyboard (3)] >> =E2=86=B3 AT Translated Set 2 keyboard id=3D14 [slave k= eyboard (3)] >> =E2=86=B3 Chicony USB2.0 Camera: Chicony id=3D10 [slave k= eyboard (3)] >> >> >> ... and another possible clue, which is that I=E2=80=99m running Touchpa= d >> 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.