all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: 21738@debbugs.gnu.org
Subject: bug#21738: 25.0.50; eww freezes/crashes at times
Date: Fri, 23 Oct 2015 17:29:08 +0300	[thread overview]
Message-ID: <8337x1zmiz.fsf@gnu.org> (raw)
In-Reply-To: <CAFyQvY0uVmNY4jKOri-_YthOzPy-8vqSYkO3O+C-4TR17rCpyA@mail.gmail.com>

> From: Kaushal Modi <kaushal.modi@gmail.com>
> 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?





  reply	other threads:[~2015-10-23 14:29 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-22 22:12 bug#21738: 25.0.50; eww freezes/crashes at times Kaushal Modi
2015-10-22 22:30 ` Wolfgang Jenkner
2015-10-22 22:35   ` Kaushal Modi
2015-10-22 22:37     ` Kaushal Modi
2015-10-23  6:55 ` Eli Zaretskii
2015-10-23 14:01   ` Kaushal Modi
2015-10-23 14:29     ` Eli Zaretskii [this message]
2015-10-23 14:41       ` Kaushal Modi
2015-10-23 14:55         ` Eli Zaretskii
2015-10-23 15:46         ` Wolfgang Jenkner
2015-10-23 16:59         ` Glenn Morris
2015-10-23 19:01           ` Kaushal Modi
2015-10-23 19:15             ` Kaushal Modi
2015-10-23 19:16             ` Eli Zaretskii
2015-10-23 19:23               ` Kaushal Modi
2015-10-23 19:27                 ` Kaushal Modi
2015-10-23 19:46                 ` Eli Zaretskii
2015-10-23 19:52                   ` Kaushal Modi
2015-10-23 20:05                     ` Kaushal Modi
2015-10-23 20:12                     ` Eli Zaretskii
2015-10-23 20:35                       ` Kaushal Modi
2015-10-23 20:42                         ` Eli Zaretskii
2015-10-23 20:43                         ` Kaushal Modi
2015-10-23 21:16                           ` Kaushal Modi
2015-10-23 21:29                             ` Kaushal Modi
2015-10-24  5:22                             ` Eli Zaretskii
2015-10-26 15:26                               ` Kaushal Modi
2015-10-23 16:29       ` Andreas Schwab
2015-10-27 20:25         ` Wolfgang Jenkner
2015-10-27 22:50           ` Kaushal Modi
2015-10-24 15:05 ` Wolfgang Jenkner
2015-10-26 15:22   ` Kaushal Modi
2015-10-27 14:27     ` Wolfgang Jenkner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8337x1zmiz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21738@debbugs.gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.