From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KFHODX3FtWAl3AAAgWs5BA (envelope-from ) for ; Tue, 01 Jun 2021 07:28:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SM0OCX3FtWCWEgAAB5/wlQ (envelope-from ) for ; Tue, 01 Jun 2021 05:28:29 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BA1811403A for ; Tue, 1 Jun 2021 07:28:27 +0200 (CEST) Received: from localhost ([::1]:45834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnwwz-00070G-T8 for larch@yhetil.org; Tue, 01 Jun 2021 01:28:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnwwD-000705-Cl for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 01:27:37 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:41520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnwwA-0004Pw-DQ for emacs-orgmode@gnu.org; Tue, 01 Jun 2021 01:27:37 -0400 Received: by mail-lf1-x132.google.com with SMTP id v8so19848654lft.8 for ; Mon, 31 May 2021 22:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alumni.nd.edu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fzn1/7mk92kniWAkg23Jy/0429FhuGtQr5oohJKr8uw=; b=RBWcXZy+m4Ybo7BA2+UQ+EmW4St9sQg9WyJopjZYDNSXaYt82TaDxpfRSBLV7EC+Cz nHw/r6XK8jRwiyYwwZlS+4YE5RJq+VcpBgqpbuey+Hz/bae4halpHRT9NimadOGd7LFt PxL7FKIqDNVH7fHEugcvhkfQziBWtPijnxblPPhBO54P79wKAh4Jz6fyNaNkOQs0AFBz guBtNufgUU070jXKXno/x3WQTdOJeHkJnEKM1x6FmbXn3konIbmxFe2tZnztpD9Md/Vk o9+yYQDbgTKTDt4AhKGI2lzwPsjzJ1x02zN566cVppCf8b3KCx6yqVWIK+Sgl8i5WP0b LJtw== 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=Fzn1/7mk92kniWAkg23Jy/0429FhuGtQr5oohJKr8uw=; b=Z6p/9zpc7fnGseEWHr+86POcD2CxC63xYkhl8Cc+1M6rp3IeqXNSooV9DmBMVYtIMt LGOcZ6dlZ6a9PZwjV+7fQ6KYfgaVf6ttqLWbsjwdHmVMAGYRBkt4lSAFjUVU3182y+r0 TOWKzx6TISb4izm8cydiMdTw7L27Wbiu4RX7neLqbRhySkSqHzYXK4qg6eS06ApKO8y6 jG3nnjSiiNtZsvBn3qbsnyLcYUJCtrob0QINCUPShs2J9LNXjmvpO/LzRQPGxw9q8nf0 +/Fsp8+fMAGeoMor2OlUSD8PA27hYliIQLpOP6496ySvklpts2rAwYRLWKP7T3jVxHxu mFYg== X-Gm-Message-State: AOAM5325pAYFOM9XKa7+q9uFe4DIvrywnHoZnJaG5dPdzzlkVL6gE4mx kPebE5mgysOYtlmXakKH/Ee1WbxVjFTP9mCo48SGhg== X-Google-Smtp-Source: ABdhPJxhLGfrWuffsks1ABl+WKLts7kaUfbd22un+ipE90suYR0yKgD/s7Tq5XOAx61rkBrQJlsCDGfyNhKqlQc9YN0= X-Received: by 2002:ac2:44a8:: with SMTP id c8mr17533374lfm.232.1622525251193; Mon, 31 May 2021 22:27:31 -0700 (PDT) MIME-Version: 1.0 References: <271B66BA-8CC7-4DB2-A838-D49983D7CF66@hxcore.ol> <878s46q4eb.fsf@localhost> In-Reply-To: <878s46q4eb.fsf@localhost> From: Aaron Rea Date: Tue, 1 Jun 2021 00:27:21 -0500 Message-ID: Subject: Re: Bug: Failed to render org file during first load on buffer emacs 27.1 windows binaries [9.3 (release_9.3 @ c:/ProgramFilesh/emacs-27.1-x86_64/share/emacs/27.1/lisp/org/)] To: Ihor Radchenko Content-Type: multipart/alternative; boundary="0000000000003ca15005c3ad996a" Received-SPF: pass client-ip=2a00:1450:4864:20::132; envelope-from=area@alumni.nd.edu; helo=mail-lf1-x132.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "bzg@gnu.org" , "Shibu N.V" , "emacs-orgmode@gnu.org" , "palakmathur@gmail.com" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622525308; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Fzn1/7mk92kniWAkg23Jy/0429FhuGtQr5oohJKr8uw=; b=M0piUWahcdkF8BW+js0a81DwV0lRT3Lgds+Nbx0YSMblxAHfq6emEmSDB87+mQxpkg6mce 87db1Epf6ag7wN+Uq5z1bE0VrHuskPUrt7VcGtkUay4qo1pzIyIHihvNT1PPWnxLJT3SuV T2k1/zduq/wVH5eGXHVoFVsLH89UDnJi6pajHShvZTm4TCEyL/cXA1/sg/rrQLIjvccAas G75DVkluVVWLeSLpMnyILWCbhIMTiGKLH8m1H/FGMAL5R3xfQx9TtUO8uzmicONySYeDke NPEBi6lXYGr0EyNXP4XSKeBweC2Hf5gcQje6kRhmcEnyVeRvYplpw4rIVab3kQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622525308; a=rsa-sha256; cv=none; b=T8Doyccrp1JUj7ZPIiLjOuGj8kqe/cKuWBJoRgbxgxirZEZ9TgktxJYU/TRReo2kRuIaBp oUWBPgL1BcxNRDFlfY5HksdUCykJFDnuIDiyUheSgWldQOmBXBvXqkT/JYDIe3maqTI+Nk 2e7cpGm3zpdtcOZzL7D0DRGNDUanYsqSsx5gntlAjGuw7mYxXZij6L71JqrdI0so2m9c2A 5u4430ItzgPbA/qlrhOttQhQhzPes0LAykn4LvjFdRbQcJ7WuWGpFxKtg9Cf4Czbj+kykR c/8fQWXIWeTRjjWsCbotpFMsrBNJbocXJIICd41CIo39eIasIDkJSXgBW2UCCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alumni.nd.edu header.s=google header.b=RBWcXZy+; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.33 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=alumni.nd.edu header.s=google header.b=RBWcXZy+; dmarc=fail reason="SPF not aligned (relaxed)" header.from=nd.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: BA1811403A X-Spam-Score: -1.33 X-Migadu-Scanner: scn0.migadu.com X-TUID: g6pCbTnJZyrq --0000000000003ca15005c3ad996a Content-Type: text/plain; charset="UTF-8" Hello everyone, I wanted to thank you guys for your guidance. I was able to trace the issue through the debugger this far (27.2 binaries): * org-mode() * apply(#f(compiled-function () (interactive nil) #) nil) * #f(compiled-function () (interactive nil) #) nil) () * org-load-modules-maybe() * require(ol-docview) * byte-code("\300\301!\210\300\302!\210\303\304\305\306\307\310\311\312&\7\207" [require doc-view ol org-link-set-parameters "docview" :follow org-docview-open :export org-docview-export :store org-docview-store-link] 8) * require(doc-view) * byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314\315\316\315\317\315\320\321\322&\17\210\323\324\325\326\327DD\330\331\332\313\333&\7\210..." [require cl-lib dired image-mode jka-compr custom-declare-group doc-view nil "In-buffer viewer for PDF, PostScript, DVI, and DJV..." :link (function-link doc-view) :version "22.2" :group applications data multimedia :prefix "doc-view-" custom-declare-variable doc-view-ghostscript-program funcall function #f(compiled-function () #) "Program to convert PS and PDF files to PNG." :type file "27.1" doc-view-pdfdraw-program #f(compiled-function () #) "Name of MuPDF's program to convert PDF files to PN..." "24.4" doc-view-pdftotext-program-args #f(compiled-function () #) "Parameters to give to the pdftotext command." (repeat string) doc-view-pdf->png-converter-function #f(compiled-function () #) "Function to call to convert a PDF file into a PNG ..." (radio (function-item doc-view-pdf->png-converter-ghostscript :doc "Use ghostscript") (function-item doc-view-pdf->png-converter-mupdf :doc "Use mupdf") function) doc-view-ghostscript-options #f(compiled-function () #) "A list of options to give to ghostscript." (repeat string) doc-view-ghostscript-device #f(compiled-function () #) "Output device to give to ghostscript." string doc-view-resolution #f(compiled-function () #) ...] 16) Once I got that far, it started evaluating too quickly for me to catch the "shell command succeeded with no output". I was able to create a workaround by adding (require 'ol-docview) to my .emacs though so everything is at least functional again. I'll probably try to learn more about debugging to see if I can pinpoint the exact spot that's acting up but if anyone sees this again I think the workaround should do fine. All good things, Aaron On Sat, May 22, 2021 at 8:29 AM Ihor Radchenko wrote: > Aaron Rea writes: > > As for the org version, I hit this issue even when running it out of the > > box. > > I recall exactly same issue reported some time ago on Reddit. It appears > to be very rare and hard to debug from our side. > > > Is there perhaps a different set of windows binaries I should be > > using? > > I believe that you should have no problem if you use Linux subsystem and > install Linux version of Emacs there. > > > Or is there a way to run a stack trace on the entire emacs session? > > It's not running into any actual error so debug isn't yielding anything. > > If you are willing to debug it, I suggest running > 1. M-x debug-on-entry org-mode > 2. Opening the file (first time) > 3. Stepping through debugger to figure out what part of the org-mode > startup is triggering the problem. See 19.1.8 Debugger Commands > section of the Emacs manual for guide how to use the debugger. > > Hope it helps. > > Best, > Ihor > --0000000000003ca15005c3ad996a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello everyone,

I wanted to thank you g= uys for your guidance.
I was able to trace the issue through the = debugger this far (27.2 binaries):
=C2=A0 =C2=A0 =C2=A0* org-mode= ()
=C2=A0 =C2=A0 =C2=A0* apply(#f(compiled-function () (interactive nil)= #<bytecode 0x24511a1>) nil)
=C2=A0 =C2=A0 =C2=A0* #f(compiled-fun= ction () (interactive nil) #<bytecode 0x24511a1>) nil) ()
=C2=A0 = =C2=A0 =C2=A0* org-load-modules-maybe()
=C2=A0 =C2=A0 =C2=A0* require(ol= -docview)
=C2=A0 =C2=A0 =C2=A0* byte-code("\300\301!\210\300\302!\2= 10\303\304\305\306\307\310\311\312&\7\207" [require doc-view ol or= g-link-set-parameters "docview" :follow org-docview-open :export = org-docview-export :store org-docview-store-link] 8)
=C2=A0 =C2=A0 =C2= =A0* require(doc-view)
=C2=A0 =C2=A0 =C2=A0* byte-code("\300\301!\2= 10\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314\3= 15\316\315\317\315\320\321\322&\17\210\323\324\325\326\327DD\330\331\33= 2\313\333&\7\210..." [require cl-lib dired image-mode jka-compr cu= stom-declare-group doc-view nil "In-buffer viewer for PDF, PostScript,= DVI, and DJV..." :link (function-link doc-view) :version "22.2&q= uot; :group applications data multimedia :prefix "doc-view-" cust= om-declare-variable doc-view-ghostscript-program funcall function #f(compil= ed-function () #<bytecode 0x27ff6cd>) "Program to convert PS and= PDF files to PNG." :type file "27.1" doc-view-pdfdraw-progr= am #f(compiled-function () #<bytecode 0x27ff6e5>) "Name of MuPDF= 's program to convert PDF files to PN..." "24.4" doc-vie= w-pdftotext-program-args #f(compiled-function () #<bytecode 0x27ff6f1>= ;) "Parameters to give to the pdftotext command." (repeat string)= doc-view-pdf->png-converter-function #f(compiled-function () #<bytec= ode 0x27ff709>) "Function to call to convert a PDF file into a PNG = ..." (radio (function-item doc-view-pdf->png-converter-ghostscript = :doc "Use ghostscript") (function-item doc-view-pdf->png-conve= rter-mupdf :doc "Use mupdf") function) doc-view-ghostscript-optio= ns #f(compiled-function () #<bytecode 0x27ff719>) "A list of opt= ions to give to ghostscript." (repeat string) doc-view-ghostscript-dev= ice #f(compiled-function () #<bytecode 0x27ff729>) "Output devic= e to give to ghostscript." string doc-view-resolution #f(compiled-func= tion () #<bytecode 0x27ff739>) ...] 16)

= Once I got that far, it started evaluating too quickly for me to catch the = "shell command succeeded with no output".

I was able to create a workaround by adding (require 'ol-docview) to = my .emacs though so everything is at least functional again.
I= 9;ll probably try to learn more about debugging to see if I can pinpoint th= e exact spot that's acting up but if anyone sees this again I think the= workaround should do fine.

All good things,
=
Aaron

On Sat, May 22, 2021 at 8:29 AM Ihor Radchenko <yantar92@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">Aaron Rea <area@alumni.nd.edu> writ= es:
> As for the org version, I hit this issue even when running it out of t= he
> box.

I recall exactly same issue reported some time ago on Reddit. It appears to be very rare and hard to debug from our side.

> Is there perhaps a different set of windows binaries I should be
> using?

I believe that you should have no problem if you use Linux subsystem and install Linux version of Emacs there.

> Or is there a way to run a stack trace on the entire emacs session? > It's not running into any actual error so debug isn't yielding= anything.

If you are willing to debug it, I suggest running
1. M-x debug-on-entry <RET> org-mode <RET>
2. Opening the file (first time)
3. Stepping through debugger to figure out what part of the org-mode
=C2=A0 =C2=A0startup is triggering the problem. See 19.1.8 Debugger Command= s
=C2=A0 =C2=A0section of the Emacs manual for guide how to use the debugger.=

Hope it helps.

Best,
Ihor
--0000000000003ca15005c3ad996a--