Comments (11)
It might be no enough memory and your browser stop running the script, but please also tell me your browser, extension info and debug logs on console if possible.
from e-hentai-downloader.
I'm using the latest version of Firefox with the following addons:
DownThemAll
EagleGet Browser Extension
GreaseMonkey
ReloadEvery
The error being shown is "Error: Bug : can't construct the Blob".
from e-hentai-downloader.
Hmm......thought I don't know what's wrong with in it, I think it might be possible to detect if it construct successfully. I'll check it tomorrow.
BTW, what's your RAM size and usage percentage now?
from e-hentai-downloader.
I tried closing a program that was using a decent amount of RAM but the issue still occurred.
from e-hentai-downloader.
It seems that the error message was from JSZip. JSZip throw the error if browser cannot create a Blob object, but most browsers are supported Blob constructor. So it might be a bug of JSZip, but I'm not sure. I've tried the gallery you provided, but it worked fine. I'm not sure how to fix it, the thing I can do for that is to detect if the Zip file (Blob) generates successfully.
from e-hentai-downloader.
I've got this issue few times, but that was when i download a couple of galleries at the same time, or when the uptime of FF was too high, normally if I restart FF and try again just the gallery alone it works fine.
Oh, when the gallery has too many files (or too many errors like mime 403 etc), even if not huge in size it's high the chance of this bug, but it's difficult to reproduce. It's more easy to cut the gallery in half and download the 2nd half later.
from e-hentai-downloader.
@iShyboy If you mean "can't construct the Blob", I don't know how to solve it. But from your comments, I think it mostly caused by no enough memory or Blob Storage space (800MB, from FileSaver.js), then Firefox stop running the script. The way to solve it now is do not download some galleries at the same time and use Pages Range (has been mentioned in README.md, auto-scale is in plan, but doesn't work on it).
For 403 error, I pushed 1.19 yesterday to enhanced fixing it, now it'll fetch image URL only when it's needed, instead of fetching all the URLs at the first time. If it not working, please let me know.
BTW, here is a node-webkit version, porting by my friend. It will download images to HDD, instead of storing in RAM and ziping them. If you are interested in it, check it out: https://github.com/8qwe24657913/E-Hentai-Downloader-NW.js
from e-hentai-downloader.
Right, should be this, dunno. It's hard to reproduce, the bug never happened on chrome for me, must be the blob space for FF.
from e-hentai-downloader.
You reminded me. I thought it would be a bug of Firefox before, but just now I think the bug "can't construct the Blob" would probably because of no enough free memory (or Blob Storage). Then I tested it, and this bug was confirmed.
The error is thrown from JSZip when a Blob object cannot be construct. I separated it to a function arrayBuffer2Blob
, and create a Array Buffer object which size is 100 MB:
var abdata = new ArrayBuffer(100*1024*1024);
Then construct it into a Blob object with arrayBuffer2Blob
:
var blob = arrayBuffer2Blob(abdata);
When I constructing the 20th Blob object (my RAM is 8 GB, but it seems that the Blob Storage would probably larger than 800 MB), it threw the error Bug : can't construct the Blob.
, and the error message that caught in try-catch
was NS_ERROR_OUT_OF_MEMORY
.
So it's clear now, instead of giving a fake Blob object (Chrome), Firefox throw an error to inform that there is no enough space to create Blob object.
I tried to detect and solve it in 1.18.7, but I'm not sure it would work correctly because I couldn't reproduce it at that time. Now I'll continue working on it, and if it works, the issue would be closed.
from e-hentai-downloader.
Now it can be detected if browser throw an error. When you see this dialog, that means you don't have enough memory to handle it, tried to close some tabs or programs to free your memory, then try again.
For more information, I'll write a wiki page tomorrow.
from e-hentai-downloader.
The wiki page has been created here: https://github.com/ccloli/E-Hentai-Downloader/wiki/Can't-make-Zip-file-successfully
from e-hentai-downloader.
Related Issues (20)
- when I exceed my viewing quota download doesn't stop automatically HOT 5
- jpg file when downloading png file HOT 3
- Are there some impossible to download gallery? HOT 1
- Is there a way to perfectly emulate manual downloads?
- Pages Range输入数字后,点击 Download Archive会下载所有图片 HOT 3
- How to save metadata/info for use with LANraragi HOT 1
- Download, extract, copy or save image file name
- 儅提示該畫廊在經過上傳后已經經過了太長時間建議不要下載原始圖檔時,我該如何修改設定以下載壓縮圖檔? HOT 4
- 64G RAM,下载4.3G的gallery,下载成功,但是生成zip时一直卡在最后几张png HOT 4
- 在EX的uconfig.php上修改Image Size Settings為2400x后,點擊下載畫廊會使該項自動跳到1280x HOT 4
- bug report 1.35.2 HOT 1
- features HOT 1
- GP Limit Exceeded? HOT 5
- Easier rename? HOT 1
- Please Help. HOT 1
- 在剩余点数充足时遇到多个下载错误 (包括 Wrong MIME 和 Network Error) HOT 6
- Safari下载完成后不能生成Zip文件 HOT 7
- 解析到被屏蔽的H@H域名后无法自动修正更新导致无法下载 HOT 5
- bug使用数字编号图像选项不起作用
- 最近插件突然看不到了,前几天还有的,是我的问题吗 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from e-hentai-downloader.