unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Adam <adam.niederer@gmail.com>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 31771@debbugs.gnu.org
Subject: bug#31771: 26.1; Writing image file with emacs hangs entire system
Date: Sun, 10 Jun 2018 13:53:30 -0400	[thread overview]
Message-ID: <2d37f921-5253-8dcc-9d30-738a1996451c@gmail.com> (raw)
In-Reply-To: <87tvqbz711.fsf@gmail.com>

On 06/09/2018 10:53 PM, Noam Postavsky wrote:
> So it definitely sounds like a graphics driver problem.  Do you get
> anything in the Xorg logs?  Are there any graphics driver settings you
> can fiddle with?  I suppose it doesn't happen if you run imagemagick's
> 'display' command on the image?

`display` doesn't hang my system, and I see nothing out of the ordinary
in my Xorg logs. I was able to figure out which line causes the hang,
though: A call to MagickMergeImageLayers at image.c:8728 (on the emacs
26.1 tag)

 8724   {
 8725     MagickWand *new_wand;
 8726     MagickSetImageBackgroundColor (image_wand, bg_wand);
 8727 #ifdef HAVE_MAGICKMERGEIMAGELAYERS
 8728     new_wand = MagickMergeImageLayers (image_wand, MergeLayer);
 8729 #else
 8730     new_wand = MagickFlattenImages (image_wand);
 8731 #endif
 8732     DestroyMagickWand (image_wand);
 8733     image_wand = new_wand;
 8734   }

Using the deprecated MagickFlattenImages call also causes the hang. I'll
compile a libmagick6 later and see if I can find the underlying problem,
but this definitely isn't emacs' fault.

Thanks for all the help!





  reply	other threads:[~2018-06-10 17:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09 17:53 bug#31771: 26.1; Writing image file with emacs hangs entire system Adam
2018-06-09 19:47 ` Noam Postavsky
2018-06-09 22:09   ` Adam
2018-06-10  2:53     ` Noam Postavsky
2018-06-10 17:53       ` Adam [this message]
2018-07-23  1:56 ` bug#31771: 26.1; [imagemagick] " Joerg Kulbartz

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=2d37f921-5253-8dcc-9d30-738a1996451c@gmail.com \
    --to=adam.niederer@gmail.com \
    --cc=31771@debbugs.gnu.org \
    --cc=npostavs@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).