Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firefox 标签页崩溃 #14

Open
caoli5288 opened this issue Feb 23, 2022 · 8 comments
Open

firefox 标签页崩溃 #14

caoli5288 opened this issue Feb 23, 2022 · 8 comments
Labels
wontfix This will not be worked on

Comments

@caoli5288
Copy link

https://nhentai.net/g/167573/

下载这个就崩溃,试了十几次了,firefox。

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Feb 23, 2022

可能是内存不足

不过按理来说一般人应该够的吧……

我用 chrome 下这种200多页的单行本没有问题,峰值大概也就 2200MB

@caoli5288
Copy link
Author

200+页的下过很多,但这个100%崩溃,试了几十次了,你试试呢?

是在compressing阶段崩溃的。

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Feb 23, 2022

chrome 试过了没事,firefox 确实会崩

可能是因为这个单行本真的很大,每张图都有 3MB 左右,整本有 700+MB,现在一般 200+ 页的也就 100+MB

一共 224 张,压到快结束就崩了,这个应该是 firefox 的问题,我这边就无能为力了……

image

@caoli5288
Copy link
Author

不是很懂js,有支持流式压缩的js库嘛

@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Feb 24, 2022

跟流式关系不大……最终都要拿到 Buffer 生成 Blob 然后才能下载,避免不了要消耗大量内存的

没办法给一个 Stream 给浏览器下载

Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用

@Tsuk1ko Tsuk1ko changed the title 标签页崩溃 firefox 标签页崩溃 Jul 22, 2022
@Tsuk1ko Tsuk1ko added the wontfix This will not be worked on label Jul 22, 2022
@Tsuk1ko
Copy link
Owner

Tsuk1ko commented Aug 19, 2022

Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用

喜报:实现了流式压缩与下载

悲报:在 firefox 上由于不明原因无法使用

image

通过设置 network.cookie.cookieBehavior4 解决后

image

@caoli5288
Copy link
Author

评价为:寄

@IWSR
Copy link

IWSR commented Sep 8, 2022

Edit: 后来发现有流式实现 StreamSaver.js,不过这个方法有点黑科技,有时间研究一下能不能配合 JSZip 用

喜报:实现了流式压缩与下载

悲报:在 firefox 上由于不明原因无法使用

image

通过设置 network.cookie.cookieBehavior4 解决后

image

阿这,简直太搞笑了。没什么用的功能增加了哈哈哈。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants