google-code-export / photivo

Automatically exported from code.google.com/p/photivo
GNU General Public License v3.0
3 stars 0 forks source link

Filemanager freezes Photivo. #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Great work with filemanager! It's a new thing, so there are some problems ... 
(Ubuntu 11.10, .orf and .nef)

When I choose new directory - sometimes Photivo freezes. No segfaults, gdb 
doesn't show any critical errors - just no response. I thought, that's the 
matter of files - it hangs much often when there's more than ~200 files in 
directory. But there's no rule.

Gdb says:

X Error: BadLength (poly request too large or internal Xlib length error) 16
  Extension:    152 (RENDER)
  Minor opcode: 24 (RenderCompositeGlyphs16)
  Resource id:  0x4200062
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    152 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4207d71
X Error: RenderBadPicture (invalid Picture parameter) 174
  Extension:    152 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x120
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x4207d71
X Error: BadLength (poly request too large or internal Xlib length error) 16
  Major opcode: 97 (X_QueryBestSize)
  Resource id:  0x42048c3
[New Thread 0x7fffd8da7700 (LWP 3582)]
[New Thread 0x7fffd3fff700 (LWP 3583)]
[New Thread 0x7fffd95a8700 (LWP 3584)]
[Thread 0x7fffd3fff700 (LWP 3583) exited]
[Thread 0x7fffd8da7700 (LWP 3582) exited]
[Thread 0x7fffd95a8700 (LWP 3584) exited]
[Thread 0x7fffd9fd9700 (LWP 3581) exited]

(no response)

Original issue reported on code.google.com by salvadh...@gmail.com on 28 Oct 2011 at 5:50

GoogleCodeExporter commented 9 years ago
Looks like the problem with X and the threaded thumbnail loading. I had hoped 
we caught that one. :(

Can you say if the hanging only occurs when you choose a new directory while 
the thumbnails in the old one are still loading? I hope that’s the case, 
would make the bug a lot easier to hunt down.

Original comment by brother.john.gm@googlemail.com on 29 Oct 2011 at 3:21

GoogleCodeExporter commented 9 years ago
Well, it's strange.

I've made test - fast and slow run through the directories.

In the fast run I didn't wait for thumbnail for the last file. In scenario 
'click, go back, click another directory, go back', filemanager's survived much 
longer - well, it's hard to say, if it wasn't my fault (too slow click 'back').

In the slow run I've been waiting to the last thumbnails. Then I was able to go 
back, but choosing another directory it was lottery.

Original comment by salvadh...@gmail.com on 29 Oct 2011 at 4:34

GoogleCodeExporter commented 9 years ago
It seems QThread::isRunning() sometimes returns true when it shouldn’t, 
causing an infinite loop. I’m not sure why this happens but pushed a quick 
hack that forces the loop to exit after 500ms. This should take care of the 
hanging and I hope it doesn’t break anything else. Please test!

Original comment by brother.john.gm@googlemail.com on 29 Oct 2011 at 11:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well, 5 minutes of navigating between directories, and no freezes so far :)

Original comment by salvadh...@gmail.com on 30 Oct 2011 at 2:24

GoogleCodeExporter commented 9 years ago
I found a way to reliable reproduce the hang. I’m still not sure of the cause 
(Windows is completely fine btw) but may have found a workaround. Haven’t 
tested Ubuntu but with Fedora it seems to work fine.

Original comment by brother.john.gm@googlemail.com on 30 Oct 2011 at 7:40

GoogleCodeExporter commented 9 years ago
No hangs up since latest patches. Good work!

Original comment by salvadh...@gmail.com on 2 Nov 2011 at 8:34

GoogleCodeExporter commented 9 years ago
:-)

Original comment by m...@mm-log.com on 3 Nov 2011 at 5:01