From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70914: 29.3; Crashes often on Windows Date: Thu, 16 May 2024 11:07:30 +0300 Message-ID: <86cypmji2l.fsf@gnu.org> References: <86msouxamh.fsf@gnu.org> <86h6f0wsbv.fsf@gnu.org> <86seyjtgvd.fsf@gnu.org> <86ttizjdwm.fsf@gnu.org> <86h6eykiuk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13657"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70914@debbugs.gnu.org To: Simen =?UTF-8?Q?Endsj=C3=B8?= , Corwin Brust Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 16 10:08:19 2024 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 1s7W9y-0003Jw-C2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 May 2024 10:08:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7W9i-0000Gs-DQ; Thu, 16 May 2024 04:08:02 -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 1s7W9h-0000Gh-Ce for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 04:08:01 -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 1s7W9h-0002TJ-41 for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 04:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7W9j-0007t7-6p for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 04:08:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2024 08:08:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70914 X-GNU-PR-Package: emacs Original-Received: via spool by 70914-submit@debbugs.gnu.org id=B70914.171584686630282 (code B ref 70914); Thu, 16 May 2024 08:08:03 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 16 May 2024 08:07:46 +0000 Original-Received: from localhost ([127.0.0.1]:47343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7W9R-0007sH-GP for submit@debbugs.gnu.org; Thu, 16 May 2024 04:07:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7W9P-0007rz-CS for 70914@debbugs.gnu.org; Thu, 16 May 2024 04:07:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s7W9H-0002Kq-F4; Thu, 16 May 2024 04:07:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=i/W0HBGDWQqt3nE2GWOV60H8RUvUigbSHdOM1RXF7O4=; b=K66IAoHpEkxkVLZjBoys CLGDsQGegDG9cCdXet8vmrL/ljPfi3qWj2L1ObOXtbnZLCli+Cc/d56+g4DbzXnMNWJ+CMGSZPT7K mOCPsE++DU8hlBjtFfUTwp9XrDCTKm2Z5JhQKo1fAderKHNPwwL/o75a+aQc0/w1F7pdbOvNloYot i48Ot/WxQAw5w5kPP5zHMC5QrwmazMvgPUS+QfFts+4eKqZ3YJMsOLRgzjb7MTftSDGBexy8vk4XT pbpBCbbCVwABvSNCFLzPUI9VDh4G+BQtLuSf6vHMQhNRoh30uEOLzmKG+zlQRxtpIxgwGzH9stIRu Zz7se1ynDp+gqA==; In-Reply-To: (message from Simen =?UTF-8?Q?Endsj=C3=B8?= on Wed, 15 May 2024 22:03:42 +0200) 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:285133 Archived-At: > From: Simen Endsjø > Date: Wed, 15 May 2024 22:03:42 +0200 > Cc: 70914@debbugs.gnu.org > > >> (process:13240): GLib-GIO-WARNING **: 20:15:06.678: Unexpectedly, > >> UWP app `Microsoft.OutlookForWindows_1.2023.1101.300_x64__8wekyb3d8bbwe' > >> (AUMId `Microsoft.OutlookForWindows_8wekyb3d8bbwe!Microsoft.OutlookforWindows') > >> supports 1 extensions but has no verbs > > > > What are these warnings from Glib, and why should Emacs care about > > problems with Outlook? > > After querying chatgpt a bit, it looks like GIO scans all installed applications > on the systems, and shows warning for incorrectly specified ones: > > The warnings you're seeing indicate that certain UWP applications declare > extensions (indicating they have certain capabilities) but do not declare > any verbs (actions they can perform). This is unusual because typically, an > app that supports an extension should also support verbs to interact with > those extensions. > > And that these are unrelated to the running process. Yes, I know all that already. I just don't understand why we see this in Emacs from Glib, nor why should Glib make Emacs "scan all the installed applications" in the first place. We only use Glib in Emacs on Windows because it's a dependency of librsvg, so the above sounds like some gross mis-configuration issue of librsvg as provided by the MSYS2 folks. Corwin, any ideas about this? should we raise this issue with the MSYS2 folks? > > I again suggest to review all the software installed there, maybe something will > > stand out. > > There is a lot of processes running on Windows, and I have no idea what most > is... Here's a list of the running processes. I've removed the command line in > case there's something sensitive there though. I didn't mean to look at the processes, I meant to look at the installed software. Start Settings, then select System->System Components, then review the installed Components. Then click on "Installed apps" and review the applications you have installed. You can also do the last part with the "winget list" command from the command line. For example, I see indications that you have Power Toys installed. So maybe disable them (or uninstall completely, if you can), and see if that helps. And maybe if you look at the installed components and apps, there would be other clues like that. > Here's a new crash report using cmd.exe. Note that it didn't crash the first > time, so I `(kill-emacs)` and ran again to get a crash. Thanks. This again shows that the program counter got set to zero somehow. Why that happens, I don't know. Perhaps some stack overwriting, or some software that injects code into the running Emacs process. Does this happen in "emacs -Q", or only with your customizations? If the latter, perhaps try disabling the customizations one by one or in related groups, so we could at least have some hint what triggers these problems if not causes them. The only other idea I have is to try installing older versions of Emacs -- if you find one that doesn't crash, maybe we could consider the changes between it and the first version which does crash, and take it from there (although the list of changes is usually huge, so it won't be easy).