From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28907 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Allan Kelly Newsgroups: gmane.text.pandoc Subject: Re: errors converting to PDF ["can't allocate region"] Date: Fri, 23 Jul 2021 07:53:16 -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_872_1662537081.1627051996624" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21371"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCE2VWHK4QJBBXNP5ODQMGQEZJ5ZO5Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jul 23 16:53:22 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m6wYD-0005Nh-UG for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 23 Jul 2021 16:53:21 +0200 Original-Received: by mail-ot1-f57.google.com with SMTP id m19-20020a9d6ad30000b02904b7c1fa2d7csf1260174otq.16 for ; Fri, 23 Jul 2021 07:53:21 -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=IaISL5lydSb6hKGjDKHb+7q9ogZHgVcS2/3W1DW2DVw=; b=kP67XfrZUQE+tcen7gvNRLD36NHbCq2OZpFcsKTnFWwyey7iQJAStUmbt9ADDMCC6g 5+FYc0elFAuQw/+2RGl6W85tJUVtQdtab+EK6e4DC/spwocNz7uFVvlLkeotI4/rzOq8 p0TrBFrytm8Azy7vFmT4tKHGpbrkDxS+VTwQIiijfLTIRz3ZOtiKpESYqy5GssveDp2k nde1tGC3cptOCN7SQlmMzHt82z2eIgjRVCmfcLDSwsN3e3tSS8lPFIrQTGkZe7uth8dq /2EjXj5TR7pQwgcDspI8DoBhaO0cyPtMc0+PjR6KOrAXoSk1gxJikpfcDqwK8TMTQ6py b64Q== 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=IaISL5lydSb6hKGjDKHb+7q9ogZHgVcS2/3W1DW2DVw=; b=gvU1pJkSmY/+K+ILjoIVBk8Q7DgRYweU1Mh5+sADQxRgZ+Xgnyu1guJ0Pdvio7s7jk vgMFMMElzZaZ6l7X3zfKjBx2Rxyr2wrnDhvbSzdQ22h7odN5Z3uyD8o1/TOnNOq8bs1E dD0uFP/SdOhR0pjXmVqerONKyP3+Lrhf5SMqWOJyTrkehFeP1QarT8pp+uQr6BTOByty DFJs2CYSagfeW7OU/MEifv7ICBw4Rd92SQaH4nbIlaerWUd8nYXFCe3YRgTZVfpBp6SF gYeQXer2FHl1cJUpyEHuUbOeBHPJpgYhwCsJyBMRkAzltAPnD7ZQJbxRC5MBF49nZW5z ffOQ== 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=IaISL5lydSb6hKGjDKHb+7q9ogZHgVcS2/3W1DW2DVw=; b=gC9fLGEOeQ20rXGArJyckks+JQAgQ/5WL9M61cKjSTdOHM4H+kZUq8z/UZ3DjORFbA V9qJcNYtd8/H4Rjnk6eW1vE949XKrtoImKCn/1QvgQw9Dhihsn9IHWQlhjXgcphTbFUf Yj3cAjgnJpgdeSzqObm4Xw79i0G1DJH8JYaQfCReDH/30OGY/DDEfdLysDfTIgyJ1FwU bpkHtrVj7RezdmwI/wlmHQpyGMzDXkiBuPECGxYB/Nbwna7R3YoQlCAZm+yEN20WmD0j qbQ6oBzpk+LczNE6PnHKRendyRcXmiRixMtySo8lPZxXTXMP76+NLmcK/Y8a9qFkdTY6 Dk1g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533JrSy9HJFtb3uGi6hBlhBvn6iQUhItHdwPlegoxm0Q666AI4wP /fM4YOeWTQYeSZkL28RxAVU= X-Google-Smtp-Source: ABdhPJwmEXigIHP3/C7+kNqCD5SrFhjswfA8MOr5ZpE657Fgq4+1HbQ8lM4hNksOioWmIlr+yM52aw== X-Received: by 2002:a05:6820:161f:: with SMTP id bb31mr2957657oob.44.1627051998887; Fri, 23 Jul 2021 07:53:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a4a:4cca:: with SMTP id a193ls680582oob.1.gmail; Fri, 23 Jul 2021 07:53:17 -0700 (PDT) X-Received: by 2002:a4a:d686:: with SMTP id i6mr2930489oot.40.1627051997235; Fri, 23 Jul 2021 07:53:17 -0700 (PDT) In-Reply-To: X-Original-Sender: allankellynet-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:28907 Archived-At: ------=_Part_872_1662537081.1627051996624 Content-Type: multipart/alternative; boundary="----=_Part_873_301927132.1627051996625" ------=_Part_873_301927132.1627051996625 Content-Type: text/plain; charset="UTF-8" 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/c6639d65-1825-47b2-861e-f946d55aaf9en%40googlegroups.com. ------=_Part_873_301927132.1627051996625 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 en= countered it and put it down to something to do with BigSur and ARM.
<= div>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 i= n 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 mor= e paragraphs (approx 5) to hello.txt before I get the error - which hints t= hat there is some actual resource exhausted happening. But why would that b= e fixed by specifying the path? Dunno.

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

a= llan


On Wednesday, 9 June 2021 at 16:40:37 UTC+1 John Ma= cFarlane 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/c6639d65-1825-47b2-861e-f946d55aaf9en%40googlegroups.= com.
------=_Part_873_301927132.1627051996625-- ------=_Part_872_1662537081.1627051996624--