picty icon indicating copy to clipboard operation
picty copied to clipboard

picty freezes when creating hundreds of thumbnails

Open mcepl opened this issue 10 years ago • 4 comments

So, I have started picty now, but the only thing I see on my monitor is frozen app and stderr with hundreds of messages like:

Creating thumbnail for 2012/08/Itálie/Ravenna/p20120823_110128.jpg /home/matej/Obrázky/2012/08/Itálie/Ravenna/p20120823_110128.jpg
Opened with GDK
cached at None

If you insist on doing the thumbnails in background, it should really be in some thread or subprocess or something, otherwise the user experience is awful.

mcepl avatar Jul 05 '14 10:07 mcepl

It is done on a thread... (but threads in python aren't very good because of the GIL)

Is the app really frozen? Sometimes there is a race condition between the main thread and worker thread that causes the app to spin endlessly trying to generate a thumbnail for an image that should be on screen. If you scroll away from that spot it usually resolves itself.

Otherwise what sort of drive are you scanning? Network drive performance is horrible and leads to long freezes (GIL issue, I think)

And yes, logging needs some attention

spillz avatar Jul 05 '14 14:07 spillz

Well, I get the inactive window dialog.

mcepl avatar Jul 05 '14 18:07 mcepl

And not a network drive?

spillz avatar Jul 05 '14 20:07 spillz

No, local (btrfs filesystem, but that shouldn't matter I hope)

mcepl avatar Jul 05 '14 22:07 mcepl