From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34256: 27.0.50; Crash on draw_glyphs() Date: Thu, 31 Jan 2019 16:02:52 +0200 Message-ID: <834l9o2acz.fsf@gnu.org> References: <83pnse15pb.fsf@gnu.org> <83k1im142z.fsf@gnu.org> <83bm3y0ycm.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="185451"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34256@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 31 15:04:24 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gpCx5-000m77-RC for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jan 2019 15:04:23 +0100 Original-Received: from localhost ([127.0.0.1]:55437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpCx4-0001tS-Q7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jan 2019 09:04:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpCwl-0001o7-AG for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 09:04:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpCwk-0001Rm-FN for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 09:04:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52950) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpCwk-0001Rh-By for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 09:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpCwk-00041S-3B for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 09:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Jan 2019 14:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34256 X-GNU-PR-Package: emacs Original-Received: via spool by 34256-submit@debbugs.gnu.org id=B34256.154894338615399 (code B ref 34256); Thu, 31 Jan 2019 14:04:02 +0000 Original-Received: (at 34256) by debbugs.gnu.org; 31 Jan 2019 14:03:06 +0000 Original-Received: from localhost ([127.0.0.1]:52231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpCvq-00040J-Bm for submit@debbugs.gnu.org; Thu, 31 Jan 2019 09:03:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpCvo-0003zo-F6 for 34256@debbugs.gnu.org; Thu, 31 Jan 2019 09:03:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpCvj-0001Dn-4D; Thu, 31 Jan 2019 09:02:59 -0500 Original-Received: from [176.228.60.248] (port=2508 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gpCvi-0002tP-LZ; Thu, 31 Jan 2019 09:02:59 -0500 In-reply-to: (message from Kaushal Modi on Wed, 30 Jan 2019 15:54:06 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:154925 Archived-At: > From: Kaushal Modi > Date: Wed, 30 Jan 2019 15:54:06 -0500 > Cc: 34256@debbugs.gnu.org > > > This says Emacs was trying to display an image, but what image is > > that? Where did it come from? > > > It's the inline image display in the Org mode buffer. OK. > > And could it be that the new native > > image scaling is the reason for this (i.e., was the image supposed to > > be resized)? Hmm, but you built with ImageMagick, which AFAIU means > > the native resizing code should not be invoked... > > > > Imagemagick is probably not getting invoked. > > Org is using this part of the code to create image overlays: > https://code.orgmode.org/bzg/org-mode/src/8ba23b9ce18d947a0241017ff33015a7807f615d/lisp/org.el#L18630-L18631 > . > > (create-image file > (and width 'imagemagick) > nil > :width width) > > That `width' variable is nil, so effectively this is happening: > > (create-image file nil nil :width nil) OK, so image resizing is still a suspect. Do you have HAVE_XRENDER defined in src/config.h? > > (gdb) frame 2 > > (gdb) p *s->first_glyph > > > > Here it is: > > (gdb) frame 2 > #2 0x00000000004378fe in fill_image_glyph_string (s=s@entry=0x7fffffff7aa0) > at xdisp.c:26154 > 26154 eassert (s->img); > (gdb) p *s->first_glyph > $1 = { > charpos = 50512, > object = XIL(0x47ba435), > pixel_width = 404, > ascent = 80, > descent = 81, > voffset = 0, > type = 3, > [...] > u = { > ch = 0, > cmp = { > automatic = false, > id = 0 > }, > img_id = 0, img_id = 0 is unusual for an image in a buffer. Are you running with the tool bar disabled, perhaps? And what do these show in the same call-stack frame #2: (gdb) p FRAME_IMAGE_CACHE (s->f)->used (gdb) p FRAME_IMAGE_CACHE (s->f)->images[0] Thanks.