From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#21738: 25.0.50; eww freezes/crashes at times Date: Fri, 23 Oct 2015 17:29:08 +0300 Message-ID: <8337x1zmiz.fsf@gnu.org> References: <83oafqrs3u.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1445610639 15141 80.91.229.3 (23 Oct 2015 14:30:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2015 14:30:39 +0000 (UTC) Cc: 21738@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 16:30:23 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZpdMF-00059P-Nu for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 16:30:15 +0200 Original-Received: from localhost ([::1]:38896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpdMF-0001my-7N for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2015 10:30:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpdMB-0001mq-6e for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:30:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpdM6-000465-PC for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:30:10 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpdM6-00045a-M6 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:30:06 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZpdM5-0003Bd-O3 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2015 10:30:05 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Oct 2015 14:30:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21738 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21738-submit@debbugs.gnu.org id=B21738.144561055012165 (code B ref 21738); Fri, 23 Oct 2015 14:30:05 +0000 Original-Received: (at 21738) by debbugs.gnu.org; 23 Oct 2015 14:29:10 +0000 Original-Received: from localhost ([127.0.0.1]:34887 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpdLB-0003A8-Gh for submit@debbugs.gnu.org; Fri, 23 Oct 2015 10:29:10 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:33467) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZpdL7-00039y-JY for 21738@debbugs.gnu.org; Fri, 23 Oct 2015 10:29:07 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NWO00600FVMAZ00@mtaout28.012.net.il> for 21738@debbugs.gnu.org; Fri, 23 Oct 2015 17:28:11 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NWO00L5SG6ZESB0@mtaout28.012.net.il>; Fri, 23 Oct 2015 17:28:11 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107915 Archived-At: > From: Kaushal Modi > Date: Fri, 23 Oct 2015 10:01:30 -0400 > Cc: 21738@debbugs.gnu.org > > > This indicates that Emacs hangs inside Imagemagick code, trying to > > display one of the images on that page. Can you build Emacs without > > Imagemagick support, and see if that fixes the problem? > > eww works fine without Imagemagick. > But then I lose all the emacs features that need Imagemagick (like > formula image rendering in org-> latex exports). Is your Imagemagick up-to-date? If not, perhaps this is some bug in Imagemagick that was already fixed, so upgrading might fix it. Or maybe downgrade to some previous version. Another idea woukd be to ask on emacs-devel which versions of Imagemagick do people use who can successfully display that page. > Does the backtrace give a hint to what could have gone wrong with the > Imagemagick build? Not to me, I'm not familiar with Imagemagick enough for that. > What Imagemagick version are you using? I don't. That's why I thought about building without it. > Does this error hint anything? > > > emacs: Memory allocation failed `No such file or directory' @ fatal/tiff.c/UnregisterTIFFImage/2077 It seems to be related, because the backtrace also points to that function: #0 0x0000003a9840eb9e in ?? () from /usr/lib64/libgomp.so.1 #1 0x00007ffff60875f8 in MagickCoreTerminus () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #2 0x00007ffff604a584 in DefaultFatalErrorHandler () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #3 0x00007ffff604adb2 in CatchException () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #4 0x00007ffff621f6c8 in UnregisterTIFFImage () <<<<<<<<<<<<<<<<<<<<<< from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #5 0x00007ffff60f6580 in UnregisterStaticModules () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #6 0x00007ffff6087638 in MagickCoreTerminus () from /home/kmodi/usr_local/6/lib/libMagickCore-6.Q16.so.2 #7 0x0000000000692ac9 in imagemagick_load_image (f=0x12afcb0, img=0x1dc7f20, contents=0x1e72668 "\211PNG\r\n\032\n", size=134459, filename=0x0) at According to this, the function UnregisterStaticModules generated a fatal exception. I don't quite understand how "memory allocation failed" can be explained by "No such file or directory", but then I'm not familiar with Imagemagick in general and with that function in particular. > > Also, you originally said that "emacs -Q" doesn't exhibit this > > problem, but now you've succeeded in reproducing it in "emacs -Q" as > > well. What did you need to do in order to succeed reproducing this in > > "emacs -Q"? > > I usually use eww to open few work internal websites which are > autogenerated with an SVG plot and a huge HTML table. I have seen > those pages to open fine on emacs -Q but fail to load *sometimes* on > my emacs with my config loaded. > > It just happens that yesterday I tried opening braveclojure.com in eww > and it froze my emacs and so I sent that email to emacs-devel. I > simply assumed that it will open fine on emacs -Q. But now we know > that it froze my emacs -Q too. I have consistently been able to freeze > emacs -Q (built with Imagemagick) when I open that braveclojure.com > site on eww. The images on that page are PNG image files. Can you display PNG image files with an Emacs compiled with Imagemagick support, or does Emacs hang (or crash) with every PNG file?