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: Thu, 31 Jan 2019 12:02:40 -0500 Message-ID: References: <83pnse15pb.fsf@gnu.org> <83k1im142z.fsf@gnu.org> <83bm3y0ycm.fsf@gnu.org> <834l9o2acz.fsf@gnu.org> <83lg30zs5d.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bc43830580c400aa" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="182370"; 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 Thu Jan 31 18:04:18 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 1gpFlB-000lJ8-Rs for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jan 2019 18:04:18 +0100 Original-Received: from localhost ([127.0.0.1]:57680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFlA-0000zE-Qo for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Jan 2019 12:04:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpFl0-0000yG-5T for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 12:04:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpFky-0003nk-4S for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 12:04:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53946) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gpFky-0003n3-17 for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 12:04:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gpFkw-0005tn-9b for bug-gnu-emacs@gnu.org; Thu, 31 Jan 2019 12:04:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Jan 2019 17: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.154895420622628 (code B ref 34256); Thu, 31 Jan 2019 17:04:02 +0000 Original-Received: (at 34256) by debbugs.gnu.org; 31 Jan 2019 17:03:26 +0000 Original-Received: from localhost ([127.0.0.1]:53227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpFkM-0005st-8E for submit@debbugs.gnu.org; Thu, 31 Jan 2019 12:03:26 -0500 Original-Received: from mail-lf1-f54.google.com ([209.85.167.54]:42769) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gpFkK-0005sf-3E for 34256@debbugs.gnu.org; Thu, 31 Jan 2019 12:03:24 -0500 Original-Received: by mail-lf1-f54.google.com with SMTP id l10so2859340lfh.9 for <34256@debbugs.gnu.org>; Thu, 31 Jan 2019 09:03:24 -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=nM/wTkYBLgQCHIZIfx0XJbl3CYdyNAMigwk8QZFE4kY=; b=titkNhSVU10km2hvP27O2c8LommryTDFMYeh9tJ/TiYoRk6MqC63xvGOSV8GSqC3N0 5XA7zKTwS703iidjrIramQgwecmISkmEDWtml3LPqSGC8FK1mOtS30KgQcwNhM16R5lj XVrD5aPWSNIl3dIxbyxsIwHa+vUbRROCeZxcuRk5viVazkXh6m/KeP8jn2hhmNsijh6J JmXezgrNZPLCKMAELg8Xv3bASeEHGGMtSuT129OZPxUAyeA8/8WYZrOcksWhiSj1M+jS aycjHWGNV5ATimMGcDvaQYRZuiqzEuL0sQehFjPPo+RPFPnxBSOKAYxSr8iLKGtcfC+S U9Lg== 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=nM/wTkYBLgQCHIZIfx0XJbl3CYdyNAMigwk8QZFE4kY=; b=rP8GqVDAtc8N/nZrWHlxRwM5fL/zLnuewHbEWHrSKiwX+T/RehsN9c8TCsCcL6RpEn DtyPdmLWpQrqE0OvvRjXRm/dVTHavJ4v4ny+NrTQINXEYi6R6Tk/9nfUdd0yavjb6X6+ c2Ruy3wf2iD7vLsz8nYZn6/PRBZajh2r911jkpJn2PsQ900Pbe9BY4xyfDwjatTSWZe5 RA6VsrbzbRVbSiQH4ux6DVauqvcvRUXLwz2UlGPJEO6jhHDmVSlEqPxwB5fYGr5wvcqG sR/I/8h2j+7zS6X6clLJS9m7ZAhND9g1p8pOHVi5Re2gF0A00RoBBzICv6C4ybqUGXwD VlGg== X-Gm-Message-State: AHQUAubUNM9L5qIsp8NcTNXJRxual0ogPmk6xQuRwGsKJJr7AjoicFwC N5oWGx6QS+weHJazgVK8EWtrQ+pdVu7o0QgPrK4= X-Google-Smtp-Source: AHgI3IZnFE8jNj8alpFuoOL9HoL7ZmwhFSgSVjegjRzYj03JDS1kFBac/Ype44JnbSx8/xYVeZFJdp9KZ44U2D4CbPw= X-Received: by 2002:ac2:551d:: with SMTP id j29mr1873228lfk.143.1548954197834; Thu, 31 Jan 2019 09:03:17 -0800 (PST) In-Reply-To: <83lg30zs5d.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:154933 Archived-At: --000000000000bc43830580c400aa Content-Type: text/plain; charset="UTF-8" On Thu, Jan 31, 2019 at 11:52 AM Eli Zaretskii wrote: > > So if you start "emacs -Q", then disable the tool bar, perhaps you can > reproduce the problem without your elaborate setup? > No, I cannot. As I mentioned earlier, I cannot reproduce the issue with my whole config if I comment out just the desktop loading setup. So there's something to do with frame restoring that the desktop does that messes up something? Here's my entire desktop setup: https://ptpb.pw/Z8TC/elisp - The "(setq desktop-restore-frames nil)" bit doesn't get evaluated as emacs version is >= 25.0. - The only other desktop/frame related setup that I have is "(setq desktop-restore-forces-onscreen nil)" (changing from the default t to nil). And then I basically call this 1 second after my init.el finishes loading: (desktop-save-mode 1) (desktop-read) > (gdb) p FRAME_IMAGE_CACHE (s->f)->used > > (gdb) p FRAME_IMAGE_CACHE (s->f)->images[0] > > > > (gdb) p FRAME_IMAGE_CACHE (s->f)->used > > $2 = 2 > > (gdb) p FRAME_IMAGE_CACHE (s->f)->images[0] > > $3 = (struct image *) 0x0 > > OK, so something sets the image in the cache to NULL. When you > reproduce this, is there just one frame, or more than one? > There's always one frame only. I never work with multiple frames. You can see the saved frame info in my earlier message in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34256#17. --000000000000bc43830580c400aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Jan 31, 2019 at 11:52 AM Eli Zaretskii <eliz@gnu.org> wrote:

So if you start "emacs -Q", then disable the tool bar, perhaps yo= u can
reproduce the problem without your elaborate setup?
No, I cannot.

As I mentioned earlier,= I cannot reproduce the issue with my whole config if I comment out just th= e desktop loading setup.

So there's something = to do with frame restoring that the desktop does that messes up something?<= /div>

Here's my entire desktop setup: https://ptpb.pw/Z8TC/elisp

- The "(setq desktop-restore-frames nil)" bit doesn't g= et evaluated as emacs version is >=3D 25.0.
- The only other d= esktop/frame related setup that I have is "(setq desktop-restore-force= s-onscreen nil)" (changing from the default t to nil).
<= br>
And then I basically call this 1 second after my init.el fini= shes loading:

(desktop-save-mode 1)
(desktop-re= ad)

>=C2=A0 =C2=A0 (gdb) p FRAME_IMAGE_CACHE (s->f)->used
>=C2=A0 =C2=A0 (gdb) p FRAME_IMAGE_CACHE (s->f)->images[0]
>
>=C2=A0 (gdb) p FRAME_IMAGE_CACHE (s->f)->used
> $2 =3D 2
> (gdb) p FRAME_IMAGE_CACHE (s->f)->images[0]
> $3 =3D (struct image *) 0x0

OK, so something sets the image in the cache to NULL.=C2=A0 When you
reproduce this, is there just one frame, or more than one?
=

There's always one frame only. I never work with mu= ltiple frames. You can see the saved frame info in my earlier message in https://= debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34256#17.
--000000000000bc43830580c400aa--