[Zotero 7 Beta] Memory leak from loading a single PDF file in the Reader

edited June 7, 2024
The PDF file of this article cannot load in the PDF Reader:
https://doi.org/10.1038/s41578-024-00684-z [PDF file sent to support@zotero.org]

It is first able to load the first 3 pages. But when I reach page 4, it is stuck at:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/cmzy62bsm65xflm3jupq.png

None of the later pages are able to load. If I scroll down to the end of the PDF, and go back to the top, all the pages are now in this permanent loading state. I have waited for 10 minutes, but it stays in this state. So the PDF Reader for that tab died on page 4.

The memory rises up steadily over time, up to the saturation of the RAM:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/m1vjvnmkphu4l94qqatm.png

After around 10 minutes, the first page appears again, and the RAM drops to 500 Mb. I can also see page 4... But then it starts rising up again... And I cannot see page 5, which keeps loading again...

Debug ID D1696815872

Some of what I can see in the Error Console:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/qsie5xjchingvmkslww8.png
https://s3.amazonaws.com/zotero.org/images/forums/u265723/seokbo8356m33k2vlxly.png

I can also reproduce in Troubleshooting mode:
https://s3.amazonaws.com/zotero.org/images/forums/u265723/1ecuttq835xpk3zme1f5.png

I was not patient enough to wait for the "out of memory" error...
https://s3.amazonaws.com/zotero.org/images/forums/u265723/lf2ixwzvp66ndy9b5ry1.png

I have tried also restarting the computer, and running only Zotero. -> Same problem.

When I close the PDF Reader tab, the memory drops to a normal level. So the leak is only caused by the PDF file.

The PDF file loads fine in the original PDF.js version https://mozilla.github.io/pdf.js/web/viewer.html, so the problem is coming from Zotero.

The problem is similar to my earlier report, but this time triggered by a very simple scrolling into a single PDF file.
https://forums.zotero.org/discussion/114993/zotero-7-beta-switching-tabs-delays-the-loading-of-zotero

Anyone can reproduce?

Zotero 7.0.0-beta.84+71f83c0a3 (64-bit)
Windows 10
Sign In or Register to comment.