From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28916 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lewis Westbury Newsgroups: gmane.text.pandoc Subject: Re: errors converting to PDF ["can't allocate region"] Date: Sun, 25 Jul 2021 08:22:06 -0700 (PDT) Message-ID: 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_2690_1020578759.1627226526158" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39480"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDAKP6NV5YLBBH4D62DQMGQEYBLMASA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Jul 25 17:22:09 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m7fxB-000A2L-Bd for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 25 Jul 2021 17:22:09 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id 30-20020a9d0da10000b02904cd320591a0sf4127981ots.18 for ; Sun, 25 Jul 2021 08:22:09 -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=ioGZpFq7wu6KXz1OzTNhemfrvev8CsyIGDYllngnPMQ=; b=RCdD2SGgZbDcDIJoQuV7I3GQJUFIlZX6ifWto6a+7yifOcK4oQhZuwK03PSwHYwtE3 frq+rQHJymsDynual85lcDMhv1UZhteMB+2VgEJq+HdsQZWXhdcHvu1BV6gbplZrD/M6 uspnwFuFkkVd7bp8zV0vcOMNrR6zpWBZafGIhmvp09hb8re+yBF6fPjaGwZliLi26wn1 SxIj2hcDWbAD2dKZSqrpXFa5ju2ny/CqeDkmO0Mngu+Xkfr7R7e7SI337McXb7GNm3fy Z1lzWfUDlGb9dwYO0TV3vlxoWtsMe5KMXaazkYRwrI+2tdmaQjx1LowGdi1JCD/SpyOs 7RQQ== 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=ioGZpFq7wu6KXz1OzTNhemfrvev8CsyIGDYllngnPMQ=; b=e9tj0tOWWZBXTpCGFLphj1pjhWBHEl0kJVLshc36McVppzJ+SOm5R3+gfnzJX5JXgL Tzv3MwHsuQ6H5lVpAHa3PjnYZ5SHkHdzCupx8HEfkiQfiWjrHCommw2zpTK5KAWG0ojm qWWDLCvnL4saXp2k97s0rInE4KhJdBqZbRmjkDl52CBufQ7Eoz8HnZxt/CPh6W0nhuQ8 vUCgtaBVnqmnlvzxpUDh6MTYo723aL+aKm5pYHXTtM2IJFkeLVFUGj4UAlu6SyMkhSiE QF5f4l9DiSNO7i91j/uze+wlhARzkDMQKYZTCHUA00cG0POLguILpmBN5SANhBWhYQnY mcug== 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=ioGZpFq7wu6KXz1OzTNhemfrvev8CsyIGDYllngnPMQ=; b=PRTjqIUCtwSSJ7d3QFlYTmkxmYrjbnvSBerYBmjFYQUwYUywe6v/60x45u1bwGnFNO XEzQYyF++jAv2DOfU0hWaZcYUelXi5hksp7o46dTPtMG2ya3ZEL33y7n+7Sf2b1EZxEH ob3wpvhunOQl72H2OAErTl7t2Bu4lcVIc8Vx4slWupRGMuATk9ZdWDoDN0Ik2VM8nYuc YtAWfLMJj9NLUxQFEG2qbq0q9uG6pEhBr1TZLinlSGkqGY30NhJI6vvbNc4Do1ZGc/Bx xmeGyXRORbaqaI8TIu1NJrOMGUxzSteQkNLd+LENvwL35f8UGgeQdZjR+eGVTkEIjZ6w QEBA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533N6Igq+y7W/Pa8Ftfx2ef5yC//cPTjmqKuZcIVxOPIToIxJ6uY fKnmUt7kx++HV/ZJO0S2nkM= X-Google-Smtp-Source: ABdhPJyoEiEX0NwsGYxa7UfrpfwCUj4WPkZ8ZVonc9pyzEtZmYKvIQWWYVazU4XkIbY5GcohT1AWzQ== X-Received: by 2002:a9d:541:: with SMTP id 59mr9221989otw.169.1627226528376; Sun, 25 Jul 2021 08:22:08 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:4bc9:: with SMTP id y192ls5033601oia.11.gmail; Sun, 25 Jul 2021 08:22:06 -0700 (PDT) X-Received: by 2002:aca:eb03:: with SMTP id j3mr14045023oih.85.1627226526740; Sun, 25 Jul 2021 08:22:06 -0700 (PDT) In-Reply-To: X-Original-Sender: instantiator-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:28916 Archived-At: ------=_Part_2690_1020578759.1627226526158 Content-Type: multipart/alternative; boundary="----=_Part_2691_1066273848.1627226526158" ------=_Part_2691_1066273848.1627226526158 Content-Type: text/plain; charset="UTF-8" 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/d58296d7-cc69-460c-8445-ca359c7f006fn%40googlegroups.com. ------=_Part_2691_1066273848.1627226526158 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I appreciate this isn't the simple solution that you might be hoping f= or, but I've had success in getting pandoc to run reliably in a docker cont= ainer.

I'm using it to build my thesis, and I crea= ted a template project here https://github.com/instantiator/markdown-thesis-b= uilder which contains a sample Dockerfile, and the build script th= at 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 MacB= ook Air with BigSur at the start of the year.

I co= uldn't find any references when I encountered it and put it down to som= ething 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 re= ally small file will process correctly:

# Hello wo= rld

## Hello world

### Hello world

Hello world

pandoc hello.txt -o hello.pdf

Works.
You can add a few more paragraphs (appro= x 5) to hello.txt before I get the error - which hints that there is some a= ctual resource exhausted happening. But why would that be fixed by specifyi= ng the path? Dunno.

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

allan
=

On Wednesday, 9 June 2021 at 16:40:37 UTC+1 John MacFarlane wrote:
=
"Jason 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/d58296d7-cc69-460c-8445-ca359c7f006fn%40googlegroups.= com.
------=_Part_2691_1066273848.1627226526158-- ------=_Part_2690_1020578759.1627226526158--