From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28957 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:19:59 -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_4879_1762051390.1627841999305" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39331"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQZJRE2YQBBBUGLTOEAMGQEHXMKHJA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Aug 01 20:20:02 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mAG4A-0009zU-6l for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 01 Aug 2021 20:20:02 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id a16-20020a0568300090b02904bbc3b57656sf6952150oto.9 for ; Sun, 01 Aug 2021 11:20:02 -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=Ffl4oP7JrN+PicZqbeZqvPwDH5qAL2rNamLi7WtgCFM=; b=gR91e4oNjJ5OyLHGLahzVijMes1+1TIOH2iX0/ykQgAm2ZFhsm7UW9EWkkHkRSJEKt k1crCW2sK3OZ56KQv3GI86aDGugKBBgrrp63Rh1tdz4dxoYilbpya6JyTgdShHd+3jEH 4jX3StW+WxnitYU2WdudMIAwHyV5zZcdgcVjFEl3QyobjhdgYI5NuwEVv8OW3aPmDQPr 5PnirgoNSL/Ls4genSVYXEt4qyLGcvnGDidx3QKGmksehWzd8RHOXSOHHQ5K43Idtv2c LChuCPVV00xHJ1Rptqrn1Lc/uGKjmwzUEiBSuVKszuXtn0ByxxWNI8qTupHjR+FGwvhR 0ONQ== 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=Ffl4oP7JrN+PicZqbeZqvPwDH5qAL2rNamLi7WtgCFM=; b=K6NISzdHS8oDYD21UuNwwB1PZTjnX2Xe8lpZoBB1oqy5pGXhLjlmw7oLHKXXdwDA88 Zyc/5e2m+uOhn9yRYxFxulPGSktSBXgRk+d2ZRod8wfJQmIwSsDpOWrwLYO+ELIx6OIX X1gQZuZjjBPMVeKUaOw7MpPMMnEEGn0aDj35PlhWaYRfz55c2es7IfiGNqp1wnI1i2sY fKyYd2qBBaTsavRhzf0z5k0XHWCm8GggMPIeO9nXBINK+bsSGiSw1g0KVGjLaWYGsrCA HN2JMGEBWKHVxAdj3WXQQQOfxnv6uClHR0vXvSdxwejvOvoEN8rbc3YDcX83WpmC5Wsh HJmA== 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=Ffl4oP7JrN+PicZqbeZqvPwDH5qAL2rNamLi7WtgCFM=; b=ujkoRVd7X3RpVAix9rjBT1zAS9/V0O87ACXg4tSdm1BAWl/2snHbyun0yXtVJdgLnz Wi8/vUksIROvWTSWbOx6HfHjGdd4sLsZ+lShMKK6yYx3DDNCtC4YiGVVo/JLaXnwQha+ lLAwrse3+UQdu2d4jFvnjC6oOP0pjELeUeEpCsO6ebGOsBzN4orLr/ZPNfkHequfa7DQ 8ta/OIrxLXXeHpL2ZsTKwvmST3KGIfdpQcYuZy08RcUlxCuZTmIC02w59wbDxYI/nqQa dN9yZglJh8NJacmi4/FP0jO/GmVudUkVk8awJSt0PGVKQKy0NU6oU1i99tkixOIC84Ci ynHw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533A9oK5fesUQH9xBPgm1ellUfp/dL0+0lPbTfJytWbjr0rhZ2x6 SkdKv+bBS8xKUFNw4Z3KLbo= X-Google-Smtp-Source: ABdhPJxM0B+/4axBSSIdc66fQ2BJoLq27sijUpy3L1o+FfVQVZGijTpirUFAj8KcMnVKA/XbSPurbQ== X-Received: by 2002:aca:c005:: with SMTP id q5mr8070470oif.153.1627842001237; Sun, 01 Aug 2021 11:20:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:1687:: with SMTP id k7ls1699495otr.10.gmail; Sun, 01 Aug 2021 11:20:00 -0700 (PDT) X-Received: by 2002:a05:6830:43a3:: with SMTP id s35mr9091129otv.262.1627842000051; Sun, 01 Aug 2021 11:20:00 -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:28957 Archived-At: ------=_Part_4879_1762051390.1627841999305 Content-Type: multipart/alternative; boundary="----=_Part_4880_400576163.1627841999305" ------=_Part_4880_400576163.1627841999305 Content-Type: text/plain; charset="UTF-8" So how do you combine the two commands to batch convert? for f in *.md; do pandoc "$f" -s -o "${f%.txt}.pdf"; done --pdf-engine=/Library/TeX/texbin/pdflatex On Wednesday, June 9, 2021 at 7:40:37 PM UTC+4 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/c70c1da4-1ec9-4d34-aed3-7abf1c689adan%40googlegroups.com. ------=_Part_4880_400576163.1627841999305 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable So how do you combine the two commands to batch convert?

for f in *.md; do pandoc "$f" -s -o "${f%.txt}.pdf"; done

--pdf-engine=3D/Library/TeX/texbin/pdflatex

On Wednesday, June= 9, 2021 at 7:40:37 PM UTC+4 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/c70c1da4-1ec9-4d34-aed3-7abf1c689adan%40googlegroups.= com.
------=_Part_4880_400576163.1627841999305-- ------=_Part_4879_1762051390.1627841999305--