From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32815 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Morey Newsgroups: gmane.text.pandoc Subject: Re: Pandoc error 10 when compiling document and fetching from fonts.gstatic.com Date: Wed, 14 Jun 2023 03:50:27 -0700 (PDT) Message-ID: <7d99685a-9f0c-419e-905f-6455dcc4a4ffn@googlegroups.com> References: <336872A1-2E6F-4BCB-801B-1230E2455ED3@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_400_1602820774.1686739827934" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34745"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC33VNGTVQPRB5VWU2SAMGQEC5N6JDY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 14 12:50:34 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oa1-f62.google.com ([209.85.160.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1q9O5B-0008u1-GS for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 14 Jun 2023 12:50:33 +0200 Original-Received: by mail-oa1-f62.google.com with SMTP id 586e51a60fabf-1a68ea38be2sf2942396fac.0 for ; Wed, 14 Jun 2023 03:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1686739832; x=1689331832; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=Qn/U+dwgBKEkMAn8Etjuf/jGQI/S+/u5NGRRFcnsP0I=; b=eO3YwmVw3G0Y4caf720yy9/3A0gTbYnUmlC6a//LMgXqrvL+zpb5FHQKNZ7f2UWUEr 9GAV+3jmeYsXkVyX8S9ugOE7CQ2VhopkCBz0CqULSAZZ0wixse8vqSmR90tWHVHI4La7 GlAgvHp4uuCFKLWZWjn0BqEgQN7YoDhnSo2YchgFb8wjSz7owCoru6f8wn5PqdTY2Zif qOaW6fzHoW3Yax2pKCioq2E0W0QiWXUxBv27YZBUCMJY5e3GDpRDnCEaDQydjYuyvGrO EpRUXi0jP54QNJcNywozP/s5jgJk7URwteiYObz4khLXk1VC9a0RMoBTtTZTPPfCLOob Ww1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686739832; x=1689331832; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=Qn/U+dwgBKEkMAn8Etjuf/jGQI/S+/u5NGRRFcnsP0I=; b=VwBlc5mQygoSbZGw5FRy5EfMcWk1cCXdFS2RvZx7VSVM5tWbL/qbw0i5vOkbWpOrkb LFreYFwiEvEscIxkVD6c3Pm0cmjoBadBfZ3X/kRraVhPp5jKPq5asTgjTBbnhRoccpa5 /4XkD58ZP4QsD0q0uehsupspr9Vuv0eeavs70e/2JfovhxqDk9AnI0sb3ZiD7c1t9IcU 5UXy17B3+En92jWstVB6XiWJZ2d+OoPm1PRD1PvuZrI4FgX7lxzBy8uazN3laE1XyRGM rkk6DwInT/F4T8Rr66DDKWkLtu0D0RAhhyazp+aI9IDYZs1CpNmneQYN9sOG5XEY0cJd Yr0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686739832; x=1689331832; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=Qn/U+dwgBKEkMAn8Etjuf/jGQI/S+/u5NGRRFcnsP0I=; b=KSKmaWx7SAeY8dakYjR4uk89HbPJTXU7OcZqQot0/KSxGFYzpmig0ofWq8LmwkitUz 1ap4mPvjvTTG79hsSZB7KlhT/W9Lrxk64CFc1mme1/a6jXGn/c6DgleNQ8+p0kLtvltD 64P0fHgPqUNxd0PkRVWENASU8SxY1b+NK+fYRNn4sUGLX52LHJr5TUsGLFTBpAM0DJio K+Ag5fCNVLHMZoqNCohuayKeUMnSB5H9q/4z5+rOyOAUnr3LrM3XjA6PwpMlYfz6fkq2 muST0qLLUG6HV1pnMabu5EY9nsCDPLEx6aBVFPaqRRWpmmPLKD Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDwlwDtCOraxdmihdvWIVmspBqEspxYct3bmXjgnqnBIJwrxWOhV amQF18G4ENTuYsc64Xb2cOE= X-Google-Smtp-Source: ACHHUZ716zweOdr/nCxFKeMwt+ZNAMUvCD1nNySEuFvcydMI4KsHhCLQ7tzFrUB6O+5b/U+AOJJzxw== X-Received: by 2002:a05:6870:a2c1:b0:19f:2fa3:396a with SMTP id w1-20020a056870a2c100b0019f2fa3396amr10615583oak.54.1686739832244; Wed, 14 Jun 2023 03:50:32 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:a444:0:b0:555:458b:d30d with SMTP id w4-20020a4aa444000000b00555458bd30dls554191ool.0.-pod-prod-05-us; Wed, 14 Jun 2023 03:50:28 -0700 (PDT) X-Received: by 2002:aca:be46:0:b0:39a:3c1d:7da2 with SMTP id o67-20020acabe46000000b0039a3c1d7da2mr3398574oif.2.1686739828635; Wed, 14 Jun 2023 03:50:28 -0700 (PDT) In-Reply-To: X-Original-Sender: richarddmorey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32815 Archived-At: ------=_Part_400_1602820774.1686739827934 Content-Type: multipart/alternative; boundary="----=_Part_401_1254594234.1686739827934" ------=_Part_401_1254594234.1686739827934 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Update - this was caused by https://github.com/jgm/pandoc/issues/8779 (the= =20 10 is "bus error: 10"), and solved by installing the (non-homebrew) release= =20 of pandoc. On Tuesday, June 13, 2023 at 9:06:18=E2=80=AFPM UTC+1 Richard Morey wrote: > Thanks, everyone, for your help. I've finally managed a (nearly) 100%=20 > reproducible version that shows the mysterious "pandoc error 10" with=20 > minimal code and posted an issue at rstudio/rmarkdown:=20 > https://github.com/rstudio/rmarkdown/issues/2495 > > Best, > Richard > > On Saturday, June 10, 2023 at 4:15:37=E2=80=AFPM UTC+1 John MacFarlane wr= ote: > >> I've searched the code base and there's nowhere we return a 10 error=20 >> code...=20 >> >> > On Jun 10, 2023, at 1:48 AM, Richard Morey =20 >> wrote:=20 >> >=20 >> > It is the output from an R system() call to pandoc, which returns the= =20 >> pandoc error code. One thing I did check was that it wasn't a 1 with a 0= =20 >> concatenated on the end through a missing \n or something silly like tha= t.=20 >> It does seem to be a return code from pandoc, but I will check with=20 >> rmarkdown too. It is frustrating because I can't reliably reproduce it,= =20 >> probably because it something network-related.=20 >> >=20 >> > On Friday, June 9, 2023 at 6:25:31=E2=80=AFPM UTC+1 BPJ wrote:=20 >> > It seems from the cited error message like it is rmarkdown (Rmarkdown)= =20 >> which exits with code 10, so probably not a Pandoc issue at all.=20 >> >=20 >> > Den fre 9 juni 2023 17:34John MacFarlane skrev:= =20 >> > That's rather strange because we don't emit error code 10:=20 >> > https://pandoc.org/MANUAL.html#exit-codes=20 >> > But it's a bit hard to diagnose these issues that involve external=20 >> code. If you can reproduce the issue with pandoc by itself, that would b= e=20 >> helpful. Also it could be useful to know what pandoc version is being us= ed.=20 >> >=20 >> >=20 >> > > On Jun 9, 2023, at 1:41 AM, Richard Morey =20 >> wrote:=20 >> > >=20 >> > > I've posted this on StackOverflow here but have not gotten any=20 >> interest in several days, so I'm posting here.=20 >> > >=20 >> > > I'm having trouble consistently compiling a particular document with= =20 >> rmarkdown::render. I cannot reproduce the issue reliably, unfortunately = (it=20 >> happens roughly 1/3 of the time; consostent with it being a network erro= r,=20 >> maybe?), but when it fails, I get the error:=20 >> > >=20 >> > > pandoc document conversion failed with error 10=20 >> > > from rmarkdown. The "10" is the return code from the system command= =20 >> that runs pandoc here.=20 >> > >=20 >> > > When I set pandoc to give debugging information with --verbose the= =20 >> following lines are the last ones in stderr:=20 >> > >=20 >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSKmu1aB.woff2...=20 >> >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSumu1aB.woff2...=20 >> >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSOmu1aB.woff2...=20 >> >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSymu1aB.woff2...=20 >> >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTS2mu1aB.woff2...=20 >> >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSCmu1aB.woff2...=20 >> >> > > [INFO] Fetching=20 >> https://fonts.gstatic.com/s/opensans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbO= bj2OVTSGmu1aB.woff2...=20 >> >> > > Error : pandoc document conversion failed with error 10=20 >> > > The last line varies, but it always seems to be one of these fonts= =20 >> that is the last thing pandoc reports before the error (there are 24 of= =20 >> these font fetches in this particular document, as shown by the output i= n a=20 >> successful compile).=20 >> > >=20 >> > > This leads me to believe that there is a problem in fetching one of= =20 >> these fonts, but there's no output that says what the problem actually i= s,=20 >> and Error 10 does not seem to be a valid error code from pandoc: pandoc= =20 >> error codes.=20 >> > >=20 >> > > I'm sort of stuck debugging until I figure this out.=20 >> > >=20 >> > > I also note there is a similar issue here: NYTimes and 538 Themes=20 >> Give Pandoc Error 10 - as a bonus, it even seems to be related to=20 >> fonts.gstatic.com, but that out seems to be more specific, including a= =20 >> [WARNING] that I don't see in mine.=20 >> > >=20 >> > > In case they are helpful, I've put the logs of a failure and success= =20 >> and the pandoc command that was run in a gist here: logs=20 >> > >=20 >> > > I'd appreciate any insights into what could cause this and how to fi= x=20 >> it.=20 >> > >=20 >> > > Best,=20 >> > > Richard=20 >> > >=20 >> > >=20 >> > > --=20 >> > > You received this message because you are subscribed to the Google= =20 >> Groups "pandoc-discuss" group.=20 >> > > To unsubscribe from this group and stop receiving emails from it,=20 >> send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/ec43be1c-e46d-4323-a70e= -c97a90e670f0n%40googlegroups.com.=20 >> >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/336872A1-2E6F-4BCB-801B= -1230E2455ED3%40gmail.com.=20 >> >> >=20 >> > --=20 >> > You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group.=20 >> > To unsubscribe from this group and stop receiving emails from it, send= =20 >> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org=20 >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/d229eff4-6162-4a3b-9604= -4361230cceabn%40googlegroups.com.=20 >> >> >> --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/7d99685a-9f0c-419e-905f-6455dcc4a4ffn%40googlegroups.com. ------=_Part_401_1254594234.1686739827934 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Update - this was caused by https://github.com/jgm/pandoc/issues/8779 (the = 10 is "bus error: 10"), and solved by installing the (non-home= brew) release of pandoc.

On Tuesday, June 13, 2023 at 9:06:18=E2=80=AFPM = UTC+1 Richard Morey wrote:
Thanks, everyone, for your help. I've finally manage= d a (nearly) 100% reproducible version that shows the mysterious "pand= oc error 10" with minimal code and posted an issue at rstudio/rmarkdow= n: https://github.com/rstudio/rmarkdown/issues/2495

<= div>Best,
Richard

On Saturday, June 10, 2023 at 4:15:37=E2=80= =AFPM UTC+1 John MacFarlane wrote:
I've searched the code base and there's nowhere we ret= urn a 10 error code...

> On Jun 10, 2023, at 1:48 AM, Richard Morey <richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>=20
> It is the output from an R system() call to pandoc, which returns = the pandoc error code. One thing I did check was that it wasn't a 1 wit= h a 0 concatenated on the end through a missing \n or something silly like = that. It does seem to be a return code from pandoc, but I will check with r= markdown too. It is frustrating because I can't reliably reproduce it, = probably because it something network-related.
>=20
> On Friday, June 9, 2023 at 6:25:31=E2=80=AFPM UTC+1 BPJ wrote:
> It seems from the cited error message like it is rmarkdown (Rmarkd= own) which exits with code 10, so probably not a Pandoc issue at all.
>=20
> Den fre 9 juni 2023 17:34John MacFarlane <f= iddlo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
> That's rather strange because we don't emit error code 10:
> https= ://pandoc.org/MANUAL.html#exit-codes
> But it's a bit hard to diagnose these issues that involve exte= rnal code. If you can reproduce the issue with pandoc by itself, that would= be helpful. Also it could be useful to know what pandoc version is being = used.
>=20
>=20
> > On Jun 9, 2023, at 1:41 AM, Richard Morey <richar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> >=20
> > I've posted this on StackOverflow here but have not gotte= n any interest in several days, so I'm posting here.
> >=20
> > I'm having trouble consistently compiling a particular do= cument with rmarkdown::render. I cannot reproduce the issue reliably, unfor= tunately (it happens roughly 1/3 of the time; consostent with it being a ne= twork error, maybe?), but when it fails, I get the error:=20
> >=20
> > pandoc document conversion failed with error 10
> > from rmarkdown. The "10" is the return code from th= e system command that runs pandoc here.
> >=20
> > When I set pandoc to give debugging information with --verbos= e the following lines are the last ones in stderr:
> >=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSKmu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSumu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSOmu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSymu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTS2mu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSCmu1aB.woff2...=20
> > [INFO] Fetching https://fonts.gstatic.com/s/open= sans/v34/memvYaGs126MiZpBA-UvWbX2vVnXBbObj2OVTSGmu1aB.woff2...=20
> > Error : pandoc document conversion failed with error 10
> > The last line varies, but it always seems to be one of these = fonts that is the last thing pandoc reports before the error (there are 24 = of these font fetches in this particular document, as shown by the output i= n a successful compile).
> >=20
> > This leads me to believe that there is a problem in fetching = one of these fonts, but there's no output that says what the problem ac= tually is, and Error 10 does not seem to be a valid error code from pandoc:= pandoc error codes.
> >=20
> > I'm sort of stuck debugging until I figure this out.
> >=20
> > I also note there is a similar issue here: NYTimes and 538 Th= emes Give Pandoc Error 10 - as a bonus, it even seems to be related to fonts.gstatic.com, but that out seems to be more s= pecific, including a [WARNING] that I don't see in mine.
> >=20
> > In case they are helpful, I've put the logs of a failure = and success and the pandoc command that was run in a gist here: logs
> >=20
> > I'd appreciate any insights into what could cause this an= d how to fix it.
> >=20
> > Best,
> > Richard
> >=20
> >=20
> > --=20
> > You received this message because you are subscribed to the G= oogle Groups "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from= it, send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org= .
> > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ec43be1= c-e46d-4323-a70e-c97a90e670f0n%40googlegroups.com.
>=20
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit ht= tps://groups.google.com/d/msgid/pandoc-discuss/336872A1-2E6F-4BCB-801B-1230= E2455ED3%40gmail.com.
>=20
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/d229eff4-6= 162-4a3b-9604-4361230cceabn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/7d99685a-9f0c-419e-905f-6455dcc4a4ffn%40googlegroups.= com.
------=_Part_401_1254594234.1686739827934-- ------=_Part_400_1602820774.1686739827934--