-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Distribution
Linux Mint 22.1 Xia
Package version
4.2.6
Frequency
Always
Bug description
If a PDF has more than 1500 pages, then the last page you read is not remembered.
Steps to reproduce
I'm attaching two PDF files: one with 1500 empty pages and one with 1501.
- Open the file with 1501 pages.
- Scroll to the second page.
- Close xreader.
- Open the file again.
xreader opens the file at the first page. This doesn't happen if you do the same with the file with 1500 pages.
Expected behavior
The last page I read should be remembered, no matter how many pages the file has.
Additional information
If I open the file with 1501 pages from the terminal, I see this error when I close the file:
(xreader:3173652): Gtk-CRITICAL **: 12:31:32.369: gtk_widget_get_visible: assertion 'GTK_IS_WIDGET (widget)' failed
Another hint that might be relevant is this line:
xreader/shell/ev-sidebar-thumbnails.c
Line 50 in 4682832
| #define MAX_ICON_VIEW_PAGE_COUNT 1500 |
It seems like an "IconView" is not created when the file has more than 1500 pages, which might be the root cause of the problem (or not, what do I know).