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

EPUB navigator crashes or hangs with really large resources #122

Open
mickael-menu opened this issue May 6, 2022 · 3 comments
Open

EPUB navigator crashes or hangs with really large resources #122

mickael-menu opened this issue May 6, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@mickael-menu
Copy link
Member

What happened?

The EPUB Code du travail.epub contains very large resources (30k+ lines). When opening it with the Test App, loading these resources takes around 20s and sometimes crashes the app which runs out of memory.

Once opened, turning pages can take ~0.5s, with much of the work done in the web view painting step:

Screenshot 2022-05-06 at 15 14 28

Expected behavior

Slowness in paginating mode is to be expected with such large resources. However, it should be laid out much faster.

Lead

There's a bottle neck in the embedded HTTP server. A simple GET request for such resource takes more than 10s outside of the navigator. We want to remove the HTTP server so this issue might eventually fix itself.

Additional context

Bug initially reported by @llemeurfr on Slack: https://readium.slack.com/archives/C703MSTQU/p1644429978110749

Performances are also bad on Thorium, but alright on iOS.

@mickael-menu mickael-menu added the bug Something isn't working label May 6, 2022
@AlexManCode
Copy link

Any news on this bug yet? Because I'm experiencing the same issue with even longer than 0.5s when turning pages.

@mickael-menu
Copy link
Member Author

Not yet but I'll expect we'll work on removing the HTTP server this year. No ETA though.

@qnga
Copy link
Member

qnga commented Mar 10, 2023

The HTTP server has been removed and, unfortunately, resource loading is still very slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants