From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28959 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: Mon, 2 Aug 2021 01:31:05 -0700 (PDT) Message-ID: <90890444-d6c0-43e3-a8be-9c005c750e4dn@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_6112_836357918.1627893065162" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19790"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDQZJRE2YQBBBSW2T2EAMGQEHB5NF5Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Aug 02 10:31:09 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f55.google.com ([209.85.161.55]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mATLp-0004xr-KP for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 02 Aug 2021 10:31:09 +0200 Original-Received: by mail-oo1-f55.google.com with SMTP id z25-20020a4ad1b90000b029023bbaaddcbbsf6974103oor.13 for ; Mon, 02 Aug 2021 01:31: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=ojNZh7nJynKX43vDPqYl9N9Kuhek/hpEMZxEkFqw6jk=; b=mxcnZ8hh9nq/YXKhIgmx1Byn5/+Rc1hTTyxp5n/nYZ6bnS1P1lIoYJbme1Eok8Ogaj Al7EXfx0oOz3aI5IJEjIkrSufcmLG7DP/Eb1GXEgFsHHNzmxEECbrMsQfDpYFBiq9XiC mmcji19PyvYtX1ZMV+awsCS32JYQByz0AxJIJe6PqjTrigOn5HNK5vjK/YzEpY6JKDeY Zh0/fdGdw6SRYmHMDRyGeb98r7RxymOkEG+pkiEhRSlAE6lhdbPOAGEY+lkRfVgLeuBv BsROAWQi/gnzIrX0engEyuFB+9egmtTSyM9e1PFtKqCFUF63nxz3NY3r3TaAtOIWBCtk 9tsg== 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=ojNZh7nJynKX43vDPqYl9N9Kuhek/hpEMZxEkFqw6jk=; b=YX959iz79Z669PPSM9XzQILcXL4/ppo+nh40j5qbsnpk1DaMbWYJnMvU6hU78tDNJo unDDA+1P0Bvac/EbFDyTzMdtDj9YKPQbeNLPuzAgFnMa6YWiElCf3V4I7Ep6DfewzDpu tm3vf126u+RVeoA5dEeUB9QK+OjSnYE5uH0RLPhrxFsH6TXMulNfNrY5K7HsuQ1wcgJD g5DyJBGfSTfgJQPxT6hvS0+fD1kIMzSh0JSBrtxPP3oRW8gIGSmA5Yz3eg00EaByy+7f tvsT2v0I/eIBTs+H/EIBU9umWWLu92PPm1kZTtjSJS11JaTMryJj4JVWa7lsQzQtmQYf ZEug== 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=ojNZh7nJynKX43vDPqYl9N9Kuhek/hpEMZxEkFqw6jk=; b=E1x5Ksrr17RNHaojU3+cFlOimVAI9pckcEoVhSoGCvPq4mzCTmE7YKN/zYCm0P2zEh bwyNWCP2YtnRK8l5PTJTK0+putdBSCj7Vp0fO+8XHdYZrixgEVSHqVJ9vYP8E693LM3f LMqcLBAGZcxdwCjVS5dSK35Z2lENGPe6DwKMfK3uhBfD4taBfLgIDezE5J6r02THfVgN dsnC8wkMZ4da0vPq6ahjbA4v8pL97GZkCm+d8HTdRF59jvAPB6HsUp9S0tYV+/Rns1C3 rHLcoUu9FsmxQmejKMCHoLFO7u6wj3Yq0oN02HJ/OE8/+Zo5Gb2KZ+LkJpVjWQLvVu8D rynA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531qzdqMS8kBfxsIGyj8bcVmoyJczE3cx/jYBEDPq9vVepXB3rj4 IRhnCqaAaVOd9SKYrJ4WEqM= X-Google-Smtp-Source: ABdhPJzMifx11AOWiew9c5cgfIr1IAs7J/Zoc4ysEb8jZlXO95GMfCbR5RbCvQQnYYDs6jrAqnTzUA== X-Received: by 2002:a05:6830:1db9:: with SMTP id z25mr11004473oti.39.1627893067585; Mon, 02 Aug 2021 01:31:07 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:352:: with SMTP id 76ls2126680otv.0.gmail; Mon, 02 Aug 2021 01:31:06 -0700 (PDT) X-Received: by 2002:a9d:748e:: with SMTP id t14mr696669otk.126.1627893065837; Mon, 02 Aug 2021 01:31:05 -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:28959 Archived-At: ------=_Part_6112_836357918.1627893065162 Content-Type: multipart/alternative; boundary="----=_Part_6113_820167640.1627893065162" ------=_Part_6113_820167640.1627893065162 Content-Type: text/plain; charset="UTF-8" This works! Thank you! On Monday, August 2, 2021 at 2:15:33 AM UTC+4 John MacFarlane wrote: > > for f in *.md; do pandoc --pdf-engine=/Library/TeX/texbin/pdflatex "$f" -s > -o "${f%.txt}.pdf"; done > > SlyFox writes: > > > 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-discus...-/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 > . > -- 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/90890444-d6c0-43e3-a8be-9c005c750e4dn%40googlegroups.com. ------=_Part_6113_820167640.1627893065162 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This works! Thank you!

On Monday, August 2, 2021 at 2:15:33 AM UTC+4 John Mac= Farlane wrote:
ivan.c...@gmail.c= om> writes:

> So how do you combine the two commands to batch convert?
>
> for f in *.md; do pandoc "$f" -s -o "${f%.txt}.pdf&= quot;; done
>
> --pdf-engine=3D/Library/TeX/texbin/pdflatex
>
> On Wednesday, June 9, 2021 at 7:40:37 PM UTC+4 John MacFarlane wro= te:
>
>> "Jason Davies" <ophi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > Hi folks,
>> >
>> > I just tried to convert three short Word files one at a t= ime; one worked=20
>> > fine but two gave errors like this:
>> >
>> > pandoc(24405,0x209984e00) malloc: can't allocate regi= on
>> > :*** mach_vm_map(size=3D1048576, flags: 100) failed (erro= r code=3D268435465)
>> > pandoc(24405,0x209984e00) malloc: *** set a breakpoint in= =20
>> > malloc_error_break to debug
>> > pandoc: pdflatex: createProcess: runInteractiveProcess: e= xec: resource=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...
>>
>
> --=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..= .@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c70c= 1da4-1ec9-4d34-aed3-7abf1c689adan%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/90890444-d6c0-43e3-a8be-9c005c750e4dn%40googlegroups.= com.
------=_Part_6113_820167640.1627893065162-- ------=_Part_6112_836357918.1627893065162--