plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
Other
1.18k stars 86 forks source link

Saving epub on long page just sits there spinning #316

Closed uqs closed 7 months ago

uqs commented 9 months ago

What device and app version are you using

Describe the bug No epub is getting created, though it's a slightly bit non-deterministic

To Reproduce

  1. Go to https://slatestarcodex.com/2014/07/30/meditations-on-moloch/
  2. Save to Epub (either existing or new, doesn't matter)
  3. The progress spinner comes up and stays forever, but nothing much else happens.
  4. Tapping anywhere on the app just makes the progress spinner disappear.

Expected behavior Many, many articles on that website do properly save as epub, so I suspect it has something to do with the length of that particular blog post.

Now, I did manage to actually save this article as a chapter on a different epub, once, but I can't reproduce it. While the spinner/progress is showing, I think I hit the "reader mode" button and then after a while the "what app do you wan to open the epub with" dialog came up. But I can no longer get this to work at all :(

plateaukao commented 9 months ago

The page is too long and there are many images in it. It takes time to download all images. It should work if you're willing to wait long enough.

plateaukao commented 9 months ago

you could try to scroll to the bottom of the page, or switch to reader mode before saving it as epub. This might helps.

uqs commented 9 months ago

Thanks for the response!

So how can the progress spinner be made to stick around to better indicate that things are still churning?

plateaukao commented 9 months ago

it's working in background, so hopefully it should continue making epub if you close the dialog. currently there's no way to profile the behavior, because most of the websites either generate epub immediately, or just cannot work. For long page like this, I will check what happened when I can access my computer.

uqs commented 7 months ago

Still can't repro the actual issue in the Emulator, so I'm opting for adding more telemetry and logs to see what'll happen to a Release build on my actual phone :/

See https://github.com/uqs/einkbro/commits/fixes/ for what I have in mind and leave some comments on whether that direction is acceptable, thanks!