From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#34256: 27.0.50; Crash on draw_glyphs() Date: Wed, 30 Jan 2019 15:54:06 -0500 Message-ID: References: <83pnse15pb.fsf@gnu.org> <83k1im142z.fsf@gnu.org> <83bm3y0ycm.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008729c60580b31e6d" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="121561"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34256@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jan 30 21:55:13 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 1gowt6-000VUr-NX for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jan 2019 21:55:12 +0100 Original-Received: from localhost ([127.0.0.1]:44108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gowt5-0008Nf-Gf for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Jan 2019 15:55:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gowsx-0008NP-JM for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:55:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gowsw-0000BE-6M for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:55:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52697) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gowsw-0000B6-3K for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gowsv-00067Y-Ut for bug-gnu-emacs@gnu.org; Wed, 30 Jan 2019 15:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Jan 2019 20:55:01 +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.154888169223509 (code B ref 34256); Wed, 30 Jan 2019 20:55:01 +0000 Original-Received: (at 34256) by debbugs.gnu.org; 30 Jan 2019 20:54:52 +0000 Original-Received: from localhost ([127.0.0.1]:51978 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gowsl-000677-PF for submit@debbugs.gnu.org; Wed, 30 Jan 2019 15:54:52 -0500 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:45561) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gowsj-00066t-E2 for 34256@debbugs.gnu.org; Wed, 30 Jan 2019 15:54:49 -0500 Original-Received: by mail-wr1-f53.google.com with SMTP id t6so921099wrr.12 for <34256@debbugs.gnu.org>; Wed, 30 Jan 2019 12:54:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dPQ6gX9p0GXvji8dLvkqjALZBmBRkw2lTD+jLygVDuw=; b=HQic7MbUdtuNmMn/e/3UUjNvj2joeOPfuYlH+fuBNPjoVT77r4D11U5JBP0G5kPoEq /t8+gNC2p2o3YeRErpaRMsQBkZJoCh90LaKTx3SYyb6ZUoHIbNP4SIMfzpDTos0QHeqX nwORtnDIV0KkQmE1j3qGp0zraQPBDd3bKkulacTjL7/xLAKeaWXIWJeT2Mly7ZC7bA/F E+wbSWHa/mVbTGNUi/XCd136ZQmGjV9ejs8yHez+Rp+z9MC8PkxPJKiIh7EthEV/pRWK oz4fySwqqDndX3W/MzeJvd6YiyDhCPnXEU5gZusRMOPmuQKtetU4H6RLwVBgbMA94Mcg SROA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dPQ6gX9p0GXvji8dLvkqjALZBmBRkw2lTD+jLygVDuw=; b=KOcS9GZVEjXtoUIXQqZMAFe3TkcLEfXUUF1H3TdwxqfNljSZ06trRB+FFdguhzNcfa 4O1/cBjxc/y+Ivyn/MToDeEMctQIELd5UU+WKnZxTWOmwpwIHCFmttvIxDD6MfxRnxir G7Apn7i0lOYWyZn7TdWpphqDTxFHVGN/REzhUGsmgdLKXMGXXHzvcrf1xV7O+2FxNCSl 1lcg1zuB1T1Hpw7oZiXNhYMoeHEokisDFg2cKzKIHgaV9uzSTZh+Poet/TYi9X0bkc/A yeGWRT4b5hZqLHNi2ZKBlv/1qHHOlgNdWG5dj2cfALlyiCGJOXbsJwqQIE+hF5WsamUt S92w== X-Gm-Message-State: AJcUukc7MNbTGT4/D0N5sU+qms6qCoisC/U+BYfl10aoHoMbMjOB0WIV 7R/kBl7OIxOK0x5WJ3+4j0RwGCX/It5tUbHVucU= X-Google-Smtp-Source: ALg8bN7BySKUQnU+pX2dKuzntDOcAyn7WFZ8kzUl5dp/fEzt0hxmhHQL47UpqcsZF4Gnmx8JdLagLg4EJIjxxq6ZGPE= X-Received: by 2002:a5d:4303:: with SMTP id h3mr32148566wrq.273.1548881683226; Wed, 30 Jan 2019 12:54:43 -0800 (PST) In-Reply-To: <83bm3y0ycm.fsf@gnu.org> 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:154908 Archived-At: --0000000000008729c60580b31e6d Content-Type: text/plain; charset="UTF-8" On Wed, Jan 30, 2019 at 1:55 PM Eli Zaretskii wrote: > > #3 0x00000000004708cf in draw_glyphs (w=w@entry=0x13fa4e0, x=44, > row=0x234ba50, > > area=area@entry=TEXT_AREA, start=, start@entry=0, > end=end@entry=6, > > hl=DRAW_NORMAL_TEXT, overlaps=0) > > at xdisp.c:26841 > > 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. ===== #+startup: inlineimages # ... #+attr_html: :width 500 #+caption: ~.vplanx~ flow #+RESULTS: [[file:images/vmanager-golden-file/vplan_vplanx.png]] **** Cons 1. Time consuming to enter data for one test case at a time. ===== Above code looks like this: https://i.imgtc.com/SynM50x.png > 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) > > - The Org file/buffer seen when this crash happens displays inline > images. > > Please show the relevant parts of the file anyway. > I've shown that above. > Also, in this callstack frame: > > #2 0x00000000004378fe in fill_image_glyph_string (s=s@entry=0x7fffffff7aa0) > at xdisp.c:26154 > > please show the full contents of s->first_glyph. Like this: > > (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, multibyte_p = true, left_box_line_p = false, right_box_line_p = false, overlaps_vertically_p = false, padding_p = false, glyph_not_available_p = false, avoid_cursor_p = false, resolved_level = 0, bidi_type = 1, face_id = 15, font_type = 0, slice = { img = { x = 0, y = 0, width = 404, height = 161 }, cmp = { from = 0, to = 10551700 }, glyphless = { upper_xoff = 0, upper_yoff = 0, lower_xoff = 404, lower_yoff = 161 } }, u = { ch = 0, cmp = { automatic = false, id = 0 }, img_id = 0, stretch = { height = 0, ascent = 0 }, glyphless = { method = 0, for_no_font = false, ---Type to continue, or q to quit--- len = 0, ch = 0 }, val = 0 } } (gdb) --0000000000008729c60580b31e6d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed,= Jan 30, 2019 at 1:55 PM Eli Zaretskii <= eliz@gnu.org> wrote:
> #3=C2=A0 0x00000000004708cf in draw_glyphs (w=3Dw@entry=3D= 0x13fa4e0, x=3D44, row=3D0x234ba50,
> area=3Darea@entry=3DTEXT_AREA, start=3D<optimized out>, start@en= try=3D0, end=3Dend@entry=3D6,
> hl=3DDRAW_NORMAL_TEXT, overlaps=3D0)
>=C2=A0 =C2=A0 =C2=A0at xdisp.c:26841

This says Emacs was trying to display an image, but what image is
that?=C2=A0 Where did it come from?

It'= s the inline image display in the Org mode buffer.

=3D=3D=3D=3D=3D
#+startup: inlineimages

# ... <snip>

#+attr_html: :width 500#+caption: ~.vplanx~ flow
#+RESULTS:
[[file:images/vmanager-golden-f= ile/vplan_vplanx.png]]
**** Cons
1. Time consuming to enter data for = one test case at a time.
=3D=3D=3D=3D=3D

=
Above code looks like this: https://i.imgtc.com/SynM50x.png
=C2=A0
=C2=A0 And could it be that the new = native
image scaling is the reason for this (i.e., was the image supposed to
be resized)?=C2=A0 Hmm, but you built with ImageMagick, which AFAIU means the native=C2=A0 resizing code should not be invoked...

Imagemagick is probably not getting invoked.


(create-image file
=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 (and width 'imagemagick)
=C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 nil
=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 :w= idth width)

That `width' variable is nil, so e= ffectively this is happening:

(create-image file n= il nil :width nil)

=C2=A0
> - The Org file/buffer seen when this crash happens displays inline ima= ges.

Please show the relevant parts of the file anyway.
I've shown that above.
=C2=A0
Also, in this callstack frame:

=C2=A0 #2=C2=A0 0x00000000004378fe in fill_image_glyph_string (s=3Ds@entry= =3D0x7fffffff7aa0) at xdisp.c:26154

please show the full contents of s->first_glyph.=C2=A0 Like this:

=C2=A0 (gdb) frame 2
=C2=A0 (gdb) p *s->first_glyph

Here = it is:

(gdb) frame 2
#2=C2=A0 0x00000000004378f= e in fill_image_glyph_string (s=3Ds@entry=3D0x7fffffff7aa0) at xdisp.c:2615= 4
26154=C2=A0=C2=A0=C2=A0=C2=A0 eassert (s->img);
(gdb) p *s->f= irst_glyph
$1 =3D {
=C2=A0 charpos =3D 50512,
=C2=A0 object =3D XI= L(0x47ba435),
=C2=A0 pixel_width =3D 404,
=C2=A0 ascent =3D 80,
= =C2=A0 descent =3D 81,
=C2=A0 voffset =3D 0,
=C2=A0 type =3D 3,
= =C2=A0 multibyte_p =3D true,
=C2=A0 left_box_line_p =3D false,
=C2=A0= right_box_line_p =3D false,
=C2=A0 overlaps_vertically_p =3D false,
= =C2=A0 padding_p =3D false,
=C2=A0 glyph_not_available_p =3D false,
= =C2=A0 avoid_cursor_p =3D false,
=C2=A0 resolved_level =3D 0,
=C2=A0 = bidi_type =3D 1,
=C2=A0 face_id =3D 15,
=C2=A0 font_type =3D 0,
= =C2=A0 slice =3D {
=C2=A0=C2=A0=C2=A0 img =3D {
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 x =3D 0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 y =3D 0,
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 width =3D 404,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 heig= ht =3D 161
=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0=C2=A0 cmp =3D {
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 from =3D 0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 t= o =3D 10551700
=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0=C2=A0 glyphless =3D= {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 upper_xoff =3D 0,
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 upper_yoff =3D 0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 lower_x= off =3D 404,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 lower_yoff =3D 161
=C2=A0= =C2=A0=C2=A0 }
=C2=A0 },
=C2=A0 u =3D {
=C2=A0=C2=A0=C2=A0 ch =3D = 0,
=C2=A0=C2=A0=C2=A0 cmp =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 automa= tic =3D false,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 id =3D 0
=C2=A0=C2=A0= =C2=A0 },
=C2=A0=C2=A0=C2=A0 img_id =3D 0,
=C2=A0=C2=A0=C2=A0 stretch= =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 height =3D 0,
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ascent =3D 0
=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2= =A0=C2=A0 glyphless =3D {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 method =3D 0,=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 for_no_font =3D false,
---Type <retu= rn> to continue, or q <return> to quit---
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 len =3D 0,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ch =3D 0
=C2=A0= =C2=A0=C2=A0 },
=C2=A0=C2=A0=C2=A0 val =3D 0
=C2=A0 }
}
(gdb)
=C2=A0
--0000000000008729c60580b31e6d--