nvts8a / libros

The new OpenBook firmware
https://github.com/nvts8a/libros/raw/main/releases/libros-LATEST.uf2
Other
13 stars 0 forks source link

bug - Blank pages on loading book #29

Closed DerekCaelin closed 1 year ago

DerekCaelin commented 1 year ago

Upon loading any .txt file, Open Book displays pagination modal, and after process all pages are blank.]

Steps To Reproduce

  1. Be running v0.9.1
  2. Load a book file
  3. Say "yes" to pagination modeal
  4. wait for pagination to finish
  5. See issue

Expected behavior

Load book with text

Actual behavior

See mostly blank page, with a progress bar at the bottom and the correct number of pages. Can go forward and back but don't see any text.

PXL_20230627_014458256

No pagination files appear on the sd card.

Additional context

nvts8a commented 1 year ago

Hey @DerekCaelin I can't seem to reproduce this, I tried on an existing OpenBook that already had a working library running v0.9.0 and then tried a fresh v0.9.1 OpenBook where the only item on the SD card was the book you linked. So currently I'm not sure what issues you might be running into

Current hunches are:

Some things to try:

IMG_8685 IMG_8686 IMG_8689

nvts8a commented 1 year ago

Calling out here as a reminder, Issue #15 we do see issues with parsing Windows file sources sometimes. Hopefully we can solve that soon.

Maybe a tool like this will help in the short term, if you don't have the ability to edit files on anything but a Windows system

DerekCaelin commented 1 year ago

Hi @nvts8a thanks for thinking about this. Here's what happened.

Download and try a short story that I use to test, I use these all the time, seeing if the problem persist or doesn't would help with next steps

This is the resulting home screen: PXL_20230627_015451602 MP

I used the Neil Gaiman short story in the directory you listed. The file displays as {"payload": {'allShortcutsEnabled on the home screen

When I load the file, it asks to paginate, and then loads 25 pages of blank screen.

Download and try a the file you linked from GitHub as a source, rather than the one you have locally, see if the results change

I've done so: It asks to paginate, then loads 330 pages of blank screens.

Take the entire contents of your SD card and zip it up and post it here, that should let me unzip it onto a card and see exactly what as has happened, there's a log file ./_OPENBOOK/openbook.log that might have some details as well

Archive.tar.gz Including the log: openbook.log

I hope this is helpful. Maybe I should just start from scratch. What is the equivalent of doing a factory reset?

nvts8a commented 1 year ago

Very interesting, I'm going to load up your SD contents later and see what I can figure out.

The best way to reset the whole system would be to re-flash the firmware with any version and use a freshly formatted SD card with nothing on it. If it is some sort of hardware issue I might defer to @joeycastillo on that one, I'm not sure how to reflash babel, but I'd love to document that.

Another interesting thing to try might be flash the OpenBook pico with like... version v0.7.4 to see if it was some sort of recent change causing new OpenBooks issues. Worth a shot maybe?

Thanks!

DerekCaelin commented 1 year ago

Thanks for this guidance!

I tested with the original firmware and v0.7.4 and encountered the same issue.

BUT I wiped everything from the SD card except for the test file and I can now view the file.

PXL_20230627_191704999

I appreciate the support for early code and I hope filing a bug was helpful. I hope can contribute to the product in other ways? Closing this issue as resolved.