From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#49688: 28.0.50; Attempting to show images crashes Emacs Date: Thu, 22 Jul 2021 08:52:32 +0100 Message-ID: References: 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="28329"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49688@debbugs.gnu.org To: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 22 09:53:13 2021 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 1m6TW4-00077o-Sb for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 09:53:13 +0200 Original-Received: from localhost ([::1]:37440 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6TW3-0000SJ-OZ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jul 2021 03:53:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6TVu-0000Q7-NT for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 03:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6TVu-0000Xn-Fi for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 03:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m6TVu-0008QT-Ci for bug-gnu-emacs@gnu.org; Thu, 22 Jul 2021 03:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jul 2021 07:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49688 X-GNU-PR-Package: emacs Original-Received: via spool by 49688-submit@debbugs.gnu.org id=B49688.162694036632363 (code B ref 49688); Thu, 22 Jul 2021 07:53:02 +0000 Original-Received: (at 49688) by debbugs.gnu.org; 22 Jul 2021 07:52:46 +0000 Original-Received: from localhost ([127.0.0.1]:39303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6TVd-0008Pt-SF for submit@debbugs.gnu.org; Thu, 22 Jul 2021 03:52:46 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:48655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6TVb-0008PZ-4x for 49688@debbugs.gnu.org; Thu, 22 Jul 2021 03:52:44 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 168101F1; Thu, 22 Jul 2021 07:52:36 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1626940355; bh=1uT5QYd7pqokHmNOveeS+lAeh6zAUr3pWj3vlkJUyeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qC78PVnl57BtusPBP7LiN5Nss8UhXECykN1PXeITxZbQa7bvsP+zeMFA3SNybxvHN T/1H7VP+z6iMFre9QRj5hJVZuMpNso8fVEcMq3OHIKTeOS0xC17VbrBZErHC9cLCoa ZB3Onbmzb22/NVlmcisbinwfz4aNfxDKTaMURm5ajNbtEJqK4ImXp7Msg6AmxHPVLA 5dPSS1ddUZ7W5+FjrgxOiNYPO2OIVghRbksrfZwdvqx58BLpVaxjRU9HmVqnGYL0lO 6v1YiqdsGbGJg5zrVQhrkhXEgatzTGJaj627kMNQpAYLlFrzv8pzSx54ic95XK+cBM 62XxuwbAb7U5Q== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1m6TVQ-0037h6-Nb; Thu, 22 Jul 2021 08:52:32 +0100 Mail-Followup-To: Alan Third , Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= , 49688@debbugs.gnu.org Content-Disposition: inline In-Reply-To: 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:210499 Archived-At: On Thu, Jul 22, 2021 at 12:34:22AM +0200, Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > On macOS 11.2.3 (20D91), my Emacs often crashes when trying to show images. > For instance, when I launch EMMS (Emacs Multimedia System) with album art, > it crashes Emacs approximately 7 out of 10 times. The crashes are frequent > but arbitrary. For instance, perhaps once per 2 weeks, I can launch EMMS > without Emacs crashing. Further, I recently started using images in Org > Mode, and they crash Emacs too, albeit rarely. This bug impacts my > day-to-day life, hence I am asking for help. Thank you! > > Here is a crash report from the most recent crash: > 0x0000000109e41e4d deliver_fatal_signal + 125 (sysdep.c:1768) 11 > libsystem_platform.dylib 0x00007fff204c2d7d _sigtramp + 29 12 ??? > 000000000000000000 0 + 0 13 com.apple.AppleVPAFramework > 0x00007fff31bb8847 0x7fff31b8f000 + 170055 14 com.apple.AppleVPAFramework > 0x00007fff31bb0ac8 0x7fff31b8f000 + 137928 15 com.apple.CoreFoundation > 0x00007fff20640cf2 _CFRelease + 244 16 com.apple.CoreFoundation > 0x00007fff20517761 __RELEASE_OBJECTS_IN_THE_ARRAY__ + 118 17 > com.apple.CoreFoundation 0x00007fff205176a4 -[__NSArrayM dealloc] + > 279 18 com.apple.MediaToolbox 0x00007fff2c0bbe70 0x7fff2c087000 + 216688 19 > com.apple.CoreFoundation 0x00007fff20640cf2 _CFRelease + 244 20 > com.apple.ImageIO 0x00007fff28b98c35 > AppleJPEGReadPlugin::copyIOSurfaceCallback(InfoRec*, CGImageProvider*, > __CFDictionary const*) + 1229 21 com.apple.ImageIO > 0x00007fff28b9934e > AppleJPEGReadPlugin::createImageBlockSetWithHardwareDecode(InfoRec*, > CGImageProvider*, CGSize, __CFDictionary const*) + 154 22 com.apple.ImageIO > 0x00007fff28b2bb8f AppleJPEGReadPlugin::copyImageBlockSet(InfoRec*, > CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 2165 23 > com.apple.ImageIO 0x00007fff28b2adde > IIO_Reader::CopyImageBlockSetProc(void*, CGImageProvider*, CGRect, CGSize, > __CFDictionary const*) + 100 24 com.apple.ImageIO 0x00007fff28b489a7 > IIOImageProviderInfo::copyImageBlockSetWithOptions(CGImageProvider*, CGRect, > CGSize, __CFDictionary const*) + 663 25 com.apple.ImageIO > 0x00007fff28b2ad16 IIOImageProviderInfo::CopyImageBlockSetWithOptions(void*, > CGImageProvider*, CGRect, CGSize, __CFDictionary const*) + 684 26 > com.apple.ImageIO 0x00007fff28b4f220 > IIOImagePixelDataProvider::getBytesImageProvider(void*, unsigned long) + > 2020 27 com.apple.ImageIO 0x00007fff28b4e2ae > TIFFWritePlugin::writeOne(tiff*, void*, IIOImagePixelDataProvider*, > IIODictionary*) + 5176 28 com.apple.ImageIO 0x00007fff28b13455 > TIFFWritePlugin::writeAll() + 237 29 com.apple.ImageIO 0x00007fff28b13331 > IIO_Writer_TIFF::write(void*, void*) + 27 30 com.apple.ImageIO > 0x00007fff28bddc5c IIOImageDestination::finalizeDestination() + 830 31 > com.apple.ImageIO 0x00007fff28b131e4 CGImageDestinationFinalize > + 104 32 com.apple.AppKit 0x00007fff23034199 > +[NSBitmapImageRep(NSBitmapImageFileTypeExtensions) > representationOfImageRepsInArray:usingType:properties:] + 2096 33 > com.apple.AppKit 0x00007fff23032b2b -[NSImage > TIFFRepresentationUsingCompression:factor:] + 212 34 org.gnu.Emacs > 0x0000000109f68126 +[EmacsImage allocInitFromFile:] + 134 (nsimage.m:269) > 35 org.gnu.Emacs 0x0000000109f67eac ns_load_image + 220 (nsimage.m:148) 36 > org.gnu.Emacs 0x0000000109f377d9 lookup_image + 1497 This is spectacularly hard to read given it's been mangled by the email client, but as far as I can see this crash is deep within cocoa's image loading code. I don't really have any idea what we can be doing wrong to cause this. Are there particular images or image types that cause the crash? If you rebuild using --without-native-image-api does it work better? -- Alan Third