From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28955 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: SlyFox Newsgroups: gmane.text.pandoc Subject: Re: errors converting to PDF ["can't allocate region"] Date: Sun, 1 Aug 2021 11:16:10 -0700 (PDT) Message-ID: <264288c6-47ab-4d1f-9d4f-070860bdac82n@googlegroups.com> References: <274588F4-8776-42E2-A982-3B8FAA3472C2@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_8064_1864976052.1627841770549" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21144"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQZJRE2YQBBB26JTOEAMGQEERZJGNA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 01 20:16:14 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f60.google.com ([209.85.210.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mAG0T-0005JW-UE for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 01 Aug 2021 20:16:13 +0200 Original-Received: by mail-ot1-f60.google.com with SMTP id m19-20020a9d6ad30000b02904b7c1fa2d7csf6917255otq.16 for ; Sun, 01 Aug 2021 11:16:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=OLmxAMd4OJB0SRmY2f8SaMt8KXQ9avMFfoY++QG8xI4=; b=sBRtlOaEUJQIEtzzAiQoh1n0PZWe49O6liNIqbtEvWnBnqzosk2LzEDyf/Ny2cLwly 3X2Zv9oQJUcLp5EKfqFGwYB75h2byIQKHHtF216hBWZ4e01LtvOoduPLPlIDba3AtLqw t6YpVbRKVmebjNyrFXYg7XrJ5PqKlwRXmofuvEZhUd+zGGgoBkQ8zD1jIhUJziBULfEn hJ7OO/VyCLcQi3jR7ZIE3WMwWp/OE2/4NkIXkChcqnI8EpXstsw8kZXZQALOH1owHuNh kHOOZ+fHm362/R0I/PmHM+5Z9XfrYSsZ5xT9i5u9LfB4cXJFh7EthHrN8C+scl4ZHvew vUjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=OLmxAMd4OJB0SRmY2f8SaMt8KXQ9avMFfoY++QG8xI4=; b=tr6rWMdYBehs6ecKCXHj6EWT85cFuuxKm6Q3Jq7hRgAEi6p6B4wnpnAxTcUn+mkh33 MRyFCHgdt3rK6Qzm42pXVBDlmMhe+Nn4jGANqGlqvhXkThpnoFKhrgWG5dPHVcA5Sil/ pwC7cXhiABJXpSCliJT6jAx4p/RzgYN/dHtKKBAvv3949haJsHcbSkpe17pd9yrXm/tC APELK1LrSy63ALCbQMKR/LOaKVua4BTPTFntx48kI8IhUCIr5n8ihKvVRq/D1ksumvtV ANkARbOCnXxVe4ZPK5dVbuEGh47qltUYSjrZw5F9kJ9+FCc8+hq8CalTrm1POKCVLEXC vD+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=OLmxAMd4OJB0SRmY2f8SaMt8KXQ9avMFfoY++QG8xI4=; b=cZvddmzL+6rR2zuQYdaHn93R79rUT6rO/CqVHGTdq2iZhws/Vwrb7eCuyL2jhEiZz6 JGxMkutwz3togwqxPk1waoqkqn9YWGPZJIaYY5MQDvotEUQ84/skvYsPYfx4i+v9bVJC Rk2WDKZcoZqAZBF5HG0ChbtlvpXN5GATg7ObowCi4/FV959IbGfpct4v0BE/X90MNwL5 DfVLG6ov+6x/xMnMDYHRNS6AGeHusgt3Wr4/3iTgNqtWsXQ3Hsj6oBycybrB37A+C8o1 gWChUx9HXWHaM+Eng6NFay5CRgLv27XhLk/ha/oR/VIBDmJa0YlaLL9mYBEUB3cHAMz6 RfUg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531fGv5LRN1eNQZiTutWc57wCXQO+1651b+ht5BBLoTvZ1NcXUZE 7NO2DJAD+CYK9NLoA5rHi18= X-Google-Smtp-Source: ABdhPJwCCbXQpMTFmwPvRfIFStgV/VIDGEV6UuhLIjVh49IpVQ4yRNo9QpXqR8Zi/A97YEunGGOu+Q== X-Received: by 2002:aca:c0c3:: with SMTP id q186mr6619535oif.39.1627841772918; Sun, 01 Aug 2021 11:16:12 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:19aa:: with SMTP id bj42ls1647780oib.6.gmail; Sun, 01 Aug 2021 11:16:11 -0700 (PDT) X-Received: by 2002:aca:1206:: with SMTP id 6mr8121243ois.148.1627841771417; Sun, 01 Aug 2021 11:16:11 -0700 (PDT) In-Reply-To: X-Original-Sender: ivan.clinical-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:28955 Archived-At: ------=_Part_8064_1864976052.1627841770549 Content-Type: multipart/alternative; boundary="----=_Part_8065_1183683262.1627841770549" ------=_Part_8065_1183683262.1627841770549 Content-Type: text/plain; charset="UTF-8" M1 Mac. I tried this:for f in *.md; do pandoc "$f" -o "${f%.md}.pdf"; done But I get an error: pandoc(45574,0x207810e00) malloc: *** set a breakpoint in malloc_error_break to debug pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource exhausted (Cannot allocate memory) On Sunday, July 25, 2021 at 7:22:06 PM UTC+4 instan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > I appreciate this isn't the simple solution that you might be hoping for, > but I've had success in getting pandoc to run reliably in a docker > container. > > I'm using it to build my thesis, and I created a template project here > https://github.com/instantiator/markdown-thesis-builder which contains a > sample Dockerfile, and the build script that uses pandoc. > > I hope it's helpful - I found it's the only way to reliably run pandoc on > my M1 Mac. > > On Friday, 23 July 2021 at 15:53:16 UTC+1 allank...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >> Great to find this posting. >> >> I've been having this problem ever since I got a M1 MacBook Air with >> BigSur at the start of the year. >> >> I couldn't find any references when I encountered it and put it down to >> something to do with BigSur and ARM. >> I've reinstalled Pandoc and PdfLatex several time but never resolved. >> I've just don't another reinstall and then stumbled on John's fix which >> works for me - thanks! >> >> Something I noticed in the process: a really small file will process >> correctly: >> >> # Hello world >> >> ## Hello world >> >> ### Hello world >> >> Hello world >> >> pandoc hello.txt -o hello.pdf >> >> Works. >> You can add a few more paragraphs (approx 5) to hello.txt before I get >> the error - which hints that there is some actual resource exhausted >> happening. But why would that be fixed by specifying the path? Dunno. >> >> Thanks for the fix, hope we can find a solution before long >> >> allan >> >> >> On Wednesday, 9 June 2021 at 16:40:37 UTC+1 John MacFarlane wrote: >> >>> "Jason Davies" writes: >>> >>> > Hi folks, >>> > >>> > I just tried to convert three short Word files one at a time; one >>> worked >>> > fine but two gave errors like this: >>> > >>> > pandoc(24405,0x209984e00) malloc: can't allocate region >>> > :*** mach_vm_map(size=1048576, flags: 100) failed (error >>> code=268435465) >>> > pandoc(24405,0x209984e00) malloc: *** set a breakpoint in >>> > malloc_error_break to debug >>> > pandoc: pdflatex: createProcess: runInteractiveProcess: exec: resource >>> > exhausted (Cannot allocate memory) >>> > >>> >>> I just got an M1 mac, and I ran into this same error. >>> >>> I found that if I fully specify the pdflatex path, it works: >>> >>> pandoc -o my.pdf --pdf-engine=/Library/TeX/texbin/pdflatex >>> >>> It's a bit mysterious why this should be needed, since >>> `which pdflatex` returns this path! >>> And running pandoc with --verbose shows that the PATH is >>> correctly passed through to the process running pdflatex. >>> >>> Anyone have any ideas? AT least this gives a workaround... >>> >> -- 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/264288c6-47ab-4d1f-9d4f-070860bdac82n%40googlegroups.com. ------=_Part_8065_1183683262.1627841770549 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable M1 Mac. 

I tried this:for f in *.md; do pandoc= "$f" -o "${f%.md}.pdf"; done

But I get an error:<= /div>

pandoc(45574,0x207810e00) malloc: *** set a breakp= oint in malloc_error_break to debug

pandoc: pdflat= ex: createProcess: runInteractiveProcess: exec: resource exhausted (Cannot = allocate memory)

On Sunday, July 25, 2021 at 7:22:06 PM UTC+4 instan.= ..@gmail.com wrote:
I appreciate this isn't the simple solution that you might = be hoping for, but I've had success in getting pandoc to run reliably i= n a docker container.

I'm using it to build my= thesis, and I created a template project here=C2=A0https= ://github.com/instantiator/markdown-thesis-builder=C2=A0which contains = a sample Dockerfile, and the build script that uses pandoc.

<= /div>
I hope it's helpful - I found it's the only way to reliab= ly run pandoc on my M1 Mac.

On Friday, 23 July 2021 at 15:53:16 UTC+1 allank...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
Great to find this post= ing.

I've been having this problem ever since = I got a M1 MacBook Air with BigSur at the start of the year.

=
I couldn't find any references when I encountered it and put= it down to something to do with BigSur and ARM.
I've reinsta= lled Pandoc and PdfLatex several time but never resolved.
I'v= e just don't another reinstall and then stumbled on John's fix whic= h works for me - thanks!

Something I noticed in th= e process: a really small file will process correctly:

=
# Hello world

## Hello world

### Hello world

Hell= o world

pandoc hello.txt -o hello.pdf

Works.
You can add a few more pa= ragraphs (approx 5) to hello.txt before I get the error - which hints that = there is some actual resource exhausted happening. But why would that be fi= xed by specifying the path? Dunno.

Thanks for the = fix, hope we can find a solution before long

allan=


On Wednesday, 9 June 2021 at 16:40:37 UTC+1 John MacFar= lane wrote:
"Jaso= n Davies" <ophi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> Hi folks,
>
> I just tried to convert three short Word files one at a time; one = worked=20
> fine but two gave errors like this:
>
> pandoc(24405,0x209984e00) malloc: can't allocate region
> :*** mach_vm_map(size=3D1048576, flags: 100) failed (error code=3D= 268435465)
> pandoc(24405,0x209984e00) malloc: *** set a breakpoint in=20
> malloc_error_break to debug
> pandoc: pdflatex: createProcess: runInteractiveProcess: exec: reso= urce=20
> exhausted (Cannot allocate memory)
>

I just got an M1 mac, and I ran into this same error.

I found that if I fully specify the pdflatex path, it works:

pandoc -o my.pdf --pdf-engine=3D/Library/TeX/texbin/pdflatex

It's a bit mysterious why this should be needed, since
`which pdflatex` returns this path!
And running pandoc with --verbose shows that the PATH is
correctly passed through to the process running pdflatex.

Anyone have any ideas? AT least this gives a workaround...

--
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/264288c6-47ab-4d1f-9d4f-070860bdac82n%40googlegroups.= com.
------=_Part_8065_1183683262.1627841770549-- ------=_Part_8064_1864976052.1627841770549--