papermage icon indicating copy to clipboard operation
papermage copied to clipboard

recipe.run("tests/fixtures/papermage.pdf") process keep being killed. OOM?

Open josephj1o4e1 opened this issue 2 months ago • 3 comments

My setting Windows10+WSL can't run:

doc = recipe.run("tests/fixtures/papermage.pdf") It seems to be downloading the 13 pages 100% normally, but then either killed off as a python script, or when in quick_start.ipynb, crashes my VScode. It works for test-uu.pdf since it only have 1 page. But it crashes every time on papermage.pdf for 13 pages. This issue seems to be related to out-of-memory?

I'm not sure if this could be resolved. Should there be a memory limit for using this package that I should be aware of? I think 13 pages is not that much for most pdfs. Is there another way around like processing it single page by single page? However, I'm worried that this is not a good method since it wouldn't be able to fully utilize the features such as doc.pages.

josephj1o4e1 avatar Apr 11 '24 08:04 josephj1o4e1