Error when opening EPUB file which contains many chapters via Web Interface

Bug #1964742 reported by lifegpc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I have a ebook which contains lots of chapters. When I open it via Web Interface. It consume lots of time to download. And I got lots of network errors. (I am sure that all these requests are just timeout.)
Any idea to improve this? Maybe download epub directly from server and parse it on client side.
Screenshot: https://pic.kanahanazawa.com/uploads/big/8f191cabaf09e95ca81312dca86c4465.png
https://pic.kanahanazawa.com/uploads/big/ef91bd90d0b83bf418d0ea3da505f91c.png (The first request are working well.)

Revision history for this message
lifegpc (lifegpc) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1964742

I'm afraid re-implementing large parts of calibre in JS which is what's needed for
client side conversion to HTML is not something I am willing to do.
There are no limits to viewing large file other than those imposed by
network/browser, so I suggest maybe loading the book ona fast network
at home initially. I cant access your book to test with since launchpad
does like files with non-ascii filenames.

 status wontfix

Changed in calibre:
status: New → Won't Fix
Revision history for this message
lifegpc (lifegpc) wrote :

Maybe just add retry function. Retry these resources if error is represented.

Revision history for this message
lifegpc (lifegpc) wrote :

>>> so I suggest maybe loading the book ona fast network
>>> at home initially.

it's very inconvenient. Because I set a reverse proxy for my server to make sure I can access the server everywhere. If I want to use it in local network, I need change the DNS record. (ISP don't give me a public IP address.)

And the attachment with OneDrive: https://1drv.ms/u/s!Aoq8mAMlVv8UvFz3DwJ7D30rs5Wr?e=byla0K (Password: SFJk6YWBzmC9UQilPNvXp3nV3NulnZXjxlb1xJSwf1V8Y/aJ3tdSgFlje6JAFz6UPBZ4TdynC3mJpdakDZ37aA== )

Revision history for this message
Kovid Goyal (kovid) wrote : Re: [Bug 1964742] Re: Error when opening EPUB file which contains many chapters via Web Interface

On Mon, Mar 14, 2022 at 10:22:00AM -0000, lifegpc wrote:
> Maybe just add retry function. Retry these resources if error is
> represented.

Given the number of failures I highly doubt retrying them will help.
You'll still get failures in the retries and I am not going to spin
endlessly retrying in the hope that they will eventually succeed.

Revision history for this message
lifegpc (lifegpc) wrote :

I notice many requests are send at same time. (https://pic.kanahanazawa.com/uploads/big/fde9dfaf751725c1da2cad7501ead3ba.png)
After some researches, I belive Chrome limit XHR requests count in few times. When limit is reached, Chrome will give net::ERR_INSUFFICIENT_RESOURCES in Network Panel in DevTools.
(Screenshot: https://pic.kanahanazawa.com/uploads/big/ba4f9687f5a6cce05c6e92a364ea14f0.png)
We need limit XHR requests count.

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1964742

I would be amazed if that were the case. Browsers limit
the number of conceurrent connections to a server automatically. Much more likely
is that the error is coming because the disk (or rather however much of
the disk chrome is allowed to use) is full.

Revision history for this message
Kovid Goyal (kovid) wrote :

That said, I will look into the issue when I have some time and test with
your example book.

Revision history for this message
lifegpc (lifegpc) wrote :

I am sure It is not releated to disk. Because there are 400GB available spaces on that disk.

Revision history for this message
lifegpc (lifegpc) wrote (last edit ):

And chrome give website 2400G spaces to store data. (IndexedDb, LocalStorage etc.) https://pic.kanahanazawa.com/uploads/big/43cfde03c4a2e72accc28f9328aefb26.png

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.