GNOME Bugzilla – Bug 786702
Photo library goes blank after scrolling a certain distance through photos
Last modified: 2018-05-10 08:29:43 UTC
Created attachment 358268 [details] Screenshot of white thumbnail window While scrolling through the main photo library, the window containing the thumbnails turns white after reaching a certain distance. It can be fixed by scrolling back up a small amount (with the completely white thumbnail window) changing to a different tab (i.e. 'Last Import') and then changing back. This issue always occurs at the same distance, independent of thumbnail size. With thumbnails 3 wide I can scroll and see photos up to photo 290 but the screen turns white before seeing the next row. With 4 photos wide I can see 408 photos but not the next row. The issue persists after rebooting multiple times and updating from version 0.22 to 0.26. The only work around I have found is making the thumbnails small enough to fit all my photos before reaching the 'whiteout distance'.
On which distribution and distribution version are seeing this?
Also, please provide debug log with running SHOTWELL_DEBUG=1 shotwell in console window and attaching the resulting ~/.cache/shotwell/shotwell.log
I can completely confirm this bug, it drives me crazy! The "blank out" not only appears in the main photo library but in all events that contain enough photos. Since I handle quite some photos (>250'000 in total) this issue appears quite frequently. I'm using version 0.26.4 – “Aachen” (as per Info dialogue) but the bug has been present for a long time now. My system is Ubuntu 16.04 LTS, on a Lenovo Yoga 2 pro - Intel® Core™ i7-4500U CPU @ 1.80GHz × 4 -- Intel Haswell Mobile graphics - 7,7 GiB of RAM, 442,3 GB SDD - screen resolution is 3200x1800 px But the bug occurred on other machines as well. Will attach the .log file soon (first cleaning up my photo library).
Created attachment 366775 [details] log output #1 mouse wheel First logfile output 1. open shotwell 2. use mouse wheel to scroll photos 3. display area goes blank 4. close shotwell
Created attachment 366776 [details] shotwell logfile #2 page down First logfile output 1. open shotwell 2. use keyboard (page down) to scroll content 3. display area goes blank 4. close shotwell
Created attachment 366777 [details] shotwell logfile #2 end First logfile output 1. open shotwell 2. use keyboard (End) to jump to last photos 3. display area goes blank 4. close shotwell
Created attachment 366778 [details] shotwell console output #3 Maybe more informative: console output from trial #3 $>SHOTWELL_DEBUG=1 shotwell >& 20180113T2046-shotwell-output.log (shotwell:9141): Gtk-WARNING **: drawing failure for widget '*': out of memory Hope this helps :-)
How many photos do you have, what is your scale factor and are you running HiDPI?
Can you check with GtkInspector how big the CheckerboardLayout is? you can launch the inspector with export GTK_DEBUG=interactive
(In reply to Jens Georg from comment #8) > How many photos do you have, >> ... quite some photos (>250'000 in total) > what is your scale factor and Systemeinstellungen > Anzeigegeräte Vergrößerungsfaktor für Menü + Titelleisten = 2 (sorry in German) I'm not sure if this is what you wanted to know. > are you running HiDPI? How can I check this?
Created attachment 366782 [details] screenshot incl. GtkInspector (In reply to Jens Georg from comment #9) > Can you check with GtkInspector how big the CheckerboardLayout is? > you can launch the inspector with export GTK_DEBUG=interactive Belegte Größe = 1232 x 17385064 see attachment.
> (In reply to Jens Georg from comment #8) > > How many photos do you have, > > >> ... quite some photos (>250'000 in total) > > > what is your scale factor and > > Systemeinstellungen > Anzeigegeräte > Vergrößerungsfaktor für Menü + Titelleisten = 2 > > (sorry in German) Fine (Passt) > I'm not sure if this is what you wanted to know. > > > are you running HiDPI? > > How can I check this? Sorry, that was a duplicate question, if your scale factor > 1, you're in HiDPI ;) Thanks. I think I have an idea now what happens
gnome bug #769195 and https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1606491 seem similar issues
Not sure for bug 769195, it is missing the "out of memory" messages. But I know that there is a Fedora ticket about the out of memory stuff. I still have problems to fully understand it; my current assumptions that the GridLayout either exceeds some cairo limits or we have a wrap-around in some integer variable
*** Bug 769195 has been marked as a duplicate of this bug. ***
*** Bug 741934 has been marked as a duplicate of this bug. ***
From a launchpad ticket: Sorry, switching my monitor to FullHD (1920x1080) remove the bug. But FullHD on 4k monitor is ugly :'( Thank for attention.
I can confirm that change in behaviour: switching to full-HD makes the "blank out" go away. At my original resolution of 3200x1800 px the bug is back. Experimentally I changed the screen scaling factor for menus and title bars to 1 [one] (instead of 2 [two] for full resolution): I easily can scroll through the full list without the bug in effect. Hope this helps!
Could reproduce with GDK_SCALE=2 on FullHD display.
Created attachment 371237 [details] massif trace from hidpi out of memory case
Created attachment 371238 [details] massif trace from normal use-case
This clearly does not seem to have something to do with really being out of memory. Cairo is bailing out before the peak of the working use-caseThanks for taking the time to report this.
It looks like the first error that happens is an CAIRO_STATUS_INVALID_MATRIX, after that, the _NO_MEMORY is posted. (gdb) bt
+ Trace 238579
Created attachment 371516 [details] [review] checkerboard: Translate coordinates while drawing This prevents that we exceed the translation matrix limits in pixman, the root cause for the Out of memory errors seen on HiDPI displays
Attachment 371516 [details] pushed as 2b2e690 - checkerboard: Translate coordinates while drawing
How can I test? When will it be released?
It's in 0.28.2 and 0.29.1.
updated today to 0.28.2 as per info dialog (Ubuntu 16.04) from http://ppa.launchpad.net/yg-jensge/shotwell/ubuntu unfortunately the screen still goes blank :-(
I've just updated to 0.28.2 on Fedora 28, and the problem still persists.
Oh sorry. It will be in tomorrow's 0.28.3, of course. my bad
I just upgraded to 0.28.3 and yes, it works! No more blank screen. Thanks a lot!