SingleFile icon indicating copy to clipboard operation
SingleFile copied to clipboard

SingleFile error: allocation size overflow on lengthy static page

Open ThinkWithPbody opened this issue 3 months ago • 2 comments

Describe the bug The error appears to be "SingleFile error: allocation size overflow" It happened when I was trying to download a relatively long but certainly not excessive page. It's one section of a short white paper that one would expect to be downloaded successfully. The page in question can be accessed here.

Screenshots Image

Environment

  • OS: Win10
  • Browser: Firefox
  • Version: 145.0.2, 64 bit

Additional context It does not seem to be the same issue as #1190 so I'm posting an individual issue here. I do apologize if the underlying cause is the same. Thanks for your attention.

ThinkWithPbody avatar Dec 07 '25 05:12 ThinkWithPbody

Thank you for the bug report. I have already encountered this problem, but I confirm there is no corresponding (open) report today. (edit: it's a duplicate of https://github.com/gildas-lormeau/SingleFile/issues/1438 actually but it wasn't very clear).

The page and its resources weights more than 512MB. That's why it's failing. Currently, browsers cannot support strings, i.e. HTML strings, larger to this limit. In this particular case, there are a lot of images and they are quite large.

So, to circumvent this issue, I will add in the next version an "image size reduction factor" option to reduce the weight of images. This will will also offer a solution for https://github.com/gildas-lormeau/SingleFile/issues/1435. In your case, your will have to set the factor to approx. 3.0 or more.

The size of attachments is limited on GitHub so I have attached the saved page with a factor of 10.0, if that can be useful in the meantime.

Reimagining Long-Term Care Architecture in Post-Pandemic Ontario—and Beyond (Part I) | Daniels (08_12_2025 23:28:47).html

gildas-lormeau avatar Dec 08 '25 23:12 gildas-lormeau

Hi gildas-lormeau, thanks for your timely response. This is a great solution to this issue and it really elevates the plug-in. The attachment works flawlessly. I appreciate the work you've put in - looking forward to the next update!

ThinkWithPbody avatar Dec 09 '25 02:12 ThinkWithPbody

You're welcome! The version 1.22.92 is available on the Mozilla store, so I'm closing the issue.

gildas-lormeau avatar Dec 13 '25 02:12 gildas-lormeau

Unfortunately, the feature is not working in Firefox. I've just fixed this particular issue, the fix will be available in the next version (1.22.93).

gildas-lormeau avatar Dec 14 '25 00:12 gildas-lormeau