From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: X protocol error Date: Wed, 17 Aug 2022 15:08:03 +0100 Message-ID: <87sflvt130.fsf@yandex.com> References: <87wnb79nu7.fsf@yandex.com> <87mtc3oy8d.fsf@yahoo.com> Reply-To: m43cap@yandex.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22954"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 17 16:10:41 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oOJkn-0005n2-KI for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Aug 2022 16:10:41 +0200 Original-Received: from localhost ([::1]:55816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oOJkm-0004m1-Cs for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Aug 2022 10:10:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOJiU-0002iB-Pt for emacs-devel@gnu.org; Wed, 17 Aug 2022 10:08:19 -0400 Original-Received: from forward501j.mail.yandex.net ([2a02:6b8:0:801:2::111]:49526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oOJiM-0008GO-Es for emacs-devel@gnu.org; Wed, 17 Aug 2022 10:08:18 -0400 Original-Received: from myt6-265321db07ea.qloud-c.yandex.net (myt6-265321db07ea.qloud-c.yandex.net [IPv6:2a02:6b8:c12:2626:0:640:2653:21db]) by forward501j.mail.yandex.net (Yandex) with ESMTP id 7034D6237D1; Wed, 17 Aug 2022 17:08:05 +0300 (MSK) Original-Received: by myt6-265321db07ea.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id 2Ytp6IAeka-84i4S4Jk; Wed, 17 Aug 2022 17:08:04 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1660745285; bh=aPvPCrhATIOLMRDYlGS2zo+ls50GjdODdBJjzLhUJWg=; h=Message-ID:References:Date:Reply-To:In-Reply-To:Cc:To:Subject: From; b=LIh67jwlr0/IErNpuQWWuV3JlYH+O4yvzM7txzrcZZe/0ubD6Ag91/xlogW0h0eHm 9ddsbWJHwE+13ylVUq4He8PghC/NWS4CJIkWDBMCRb0f4KkuRPwgbOI07sWYKMgv+h JMJlCo+v7WlzPVMSkCvXdXZMdCSRCd1jv2FdelAQ= Authentication-Results: myt6-265321db07ea.qloud-c.yandex.net; dkim=pass header.i=@yandex.com X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T In-Reply-To: <87mtc3oy8d.fsf@yahoo.com> (Po Lu's message of "Wed, 17 Aug 2022 20:23:14 +0800") Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== Received-SPF: pass client-ip=2a02:6b8:0:801:2::111; envelope-from=m43cap@yandex.com; helo=forward501j.mail.yandex.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293561 Archived-At: Dear Po, Thanks for your reply. I have narrowed the problem to the configure option "./configure --with-x-toolkit=lucid ". If I run only "./configure ", effectively using the gtk3 default setting then emacs builds successfully. >>>>> Po Lu writes: > Colin Baxter writes: >> On a fresh git clone of emacs and after a seemingly successful >> make bootstrap I get the message >> >> X protocol error: XI_BadDevice (invalid Device parameter) on >> protocol request 131 Serial no: 54 >> >> when I attempt to launch emacs. I have no idea what the message >> means. >> >> Best wishes, > Please run Emacs under a debugger like this: > (gdb) run -q -xrm "Emacs.synchronous: true" > and show the resulting backtrace once the breakpoint on the X > error handler is hit. In an xterm, in my directory ~/git/emacs/src, if I launch gdb and then enter your command. I get the following: --8<---------------cut here---------------start------------->8--- gdb$ run -q -xrm "Emacs.synchronous: true" Starting program: -q -xrm "Emacs.synchronous: true" No executable file specified. Use the "file" or "exec-file" command. --8<---------------cut here---------------end--------------->8--- I am obviously doing something stupid. I have not used gbd before so you will have to talk me through the method in some detail. For instance, must have compiled (made?) emacs using some debugger option? Sorry to be dim. Best wishes,