johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.93k stars 273 forks source link

[Bug] The Library shows only two books #1132

Closed signdo closed 9 months ago

signdo commented 9 months ago

Describe the bug

When I open the first and second books, they appear correctly in the library. But when I open a third book or more, they are not displayed in the library. This doesn't mean that it not save data about those books that have been read, it just doesn't show up in the library. When I reopen a book that wasn't in the library but was read, it shows me the last page I read.

In addition, when I remove a book from the library and then open a book that I have previously read but did not appear in the library, it still does not appear. This means that only one book in the library is now displayed correctly.

Expected behavior

All books that have been read should be displayed in the library.

Version:

Additional context

$ flatpak run com.github.johnfactotum.Foliate 
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-CRITICAL **: 15:49:52.238: The index is not in the allowed range.
setEnd@[native code]
toRange@foliate:///foliate-js/epubcfi.js:308:22
@foliate:///foliate-js/paginator.js:860:21
reader.view.init
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.
Failed to create /home/me/.var/app/com.github.johnfactotum.Foliate/cache for shader cache (No such file or directory)---disabling.

(com.github.johnfactotum.Foliate:2): com.github.johnfactotum.Foliate-CRITICAL **: 15:52:38.382: Argument 1 ('node') to Range.setEnd must be an instance of Node
setEnd@[native code]
toRange@foliate:///foliate-js/epubcfi.js:308:22
@foliate:///foliate-js/paginator.js:860:21
reader.view.init
johnfactotum commented 9 months ago

Probably a duplicate of #435, if I have to guess.

signdo commented 9 months ago

Probably a duplicate of #435, if I have to guess.

Emmm, there's a difference. My library only shows two books at most, and books don't replace showing in the library. But each book that is opened has the same uuid.

johnfactotum commented 9 months ago

If your books have the same unique ID, then yes, it's the same issue.

books don't replace showing in the library

Unlike v2.x, in v3.0, covers are not updated when you re-open a book, which I'm guessing is what you're seeing.

signdo commented 9 months ago

If your books have the same unique ID, then yes, it's the same issue.

books don't replace showing in the library

Unlike v2.x, in v3.0, covers are not updated when you re-open a book, which I'm guessing is what you're seeing.

Oh yes, you're right! When I opened the book that was the only one in the library, it showed the contents of another book. This is so funny! 😂

johnfactotum commented 9 months ago

I will close this as duplicate, then.