-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Any book opened just shows a blank page, contents don't load with "TypeError: location is undefined" error #1438
Comments
I noticed it outputs an error when launching it via terminal:
|
Does the table of contents work? If so it's probably because you've previously opened a different book with the same unique identifier and now it's trying to restore the last location but fails. |
This happens no matter which book I open, I have dozens to try. The table of contents does show up, see above screenshot, but clicking any entry doesn't result in a visible change. |
Well, it's possible for dozens of books to have the same unique identifier. Even if that is not the issue, it seems unlikely that all books fail to open with that error. It's most likely either the kind of issue that I've described, or it would be some other bug specific to the books. The situation where truly all books fail to load would most likely be an issue with the WebView itself. If OPDS works, though, then it would almost certainly not be a WebView issue. |
Is this identifier something inside the epub files, like the ISBN? They are from different publishers so I'm not sure why they would share any identifiers. Here's the additional error messages that come up when I click any table of contents entry:
The chapters in the table of contents look correct, so I'm assuming that means it has full filesystem access to the underlying book file or else I wouldn't know how it could possibly list the chapters. |
Some conversion tools would always output the same identifier, or have some other quirks. Anyway, you could check the identifier by clicking on the "About This Book" button (the one next to the title and author of the book on the sidebar, or Ctrl+I). It could also be some other issue with the books themselves. You can perhaps try opening them in https://johnfactotum.github.io/foliate-js/reader.html. If that doesn't work, that would mean that there's some issue with rendering the books themselves. |
I hope some of that information is useful. Let me know if there's something else that might be worth poking. |
Well, you could try removing everything in The you might try opening books from Standard Ebooks or Project Gutenberg. This would rule out that it's an issue specific to the books you have. |
I deleted Then I tested https://standardebooks.org/ebooks/georgette-heyer/these-old-shades/download?format=epub and the content area remains blank as with the others. In the terminal, I see the same error |
@ofaws That looks like a completely different issue. It's probably because the WebKitGTK packaged for the Snap is too old. I will roll back the Snap package for now. |
@ell1e I must say I'm a bit at a loss. Does the "Next" button work? The last button on the navbar (which shows on tap or hover on the bottom of the book area). If it does work, then the issue must be that it's still loading incorrect last location data from somewhere, though I'm not sure how. If that doesn't work, it would be an even more mysterious issue... |
Huh. The zoom level is displayed as "NaN%", but I believe the number comes straight from the WebView's |
I just installed and tested Epiphany Gnome Web, and it worked fine. But I'm using Foliate inside flatpak, so the GTK webview in there might be a slightly different version. But there doesn't seem to be some general issue with running a GTK webview on this system. |
Thanks for the quick action! App started to work well again after the update =) |
It's certainly a strange issue. Maybe try
|
Describe the bug
Any book opened just shows a blank page, the contents don't seem to ever load:
To Reproduce
Steps to reproduce the behavior:
flatpak install flathub com.github.johnfactotum.Foliate
Expected behavior
E-Book opens up fully, page contents show up. This doesn't seem to be the case, the content area remains blank. The close button for the entire window seems to be missing as well.
Screenshots
See above
Version:
Additional context
The text was updated successfully, but these errors were encountered: