peircej / jbrout

Automatically exported from code.google.com/p/jbrout
0 stars 0 forks source link

Backtrace with corrupted image thumbnail #179

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open in jbrout a directory with files with corrupted thumbnail
2. get such file to be shown (scroll to it if necessary)
3.

What is the expected output? What do you see instead?
none on stderr is expected, but I see a traceback:
Traceback (most recent call last):
  File "/usr/share/jbrout/jbrout/db.py", line 644, in getThumb
    i=Img(thumb=self.file)
  File "/usr/share/jbrout/jbrout/commongtk.py", line 301, in __init__
    data=img.getThumbnailData()[1]
IndexError: list index out of range

What version of the product are you using? On what operating system?
jbrout-0.3.323-0.svn323.3.noarch (SVN checkout)
pyexiv2-0.3.0-1.fc15.x86_64
exiv2-0.21-1.fc15.x86_64

Please provide any additional information below.

Original issue reported on code.google.com by matej.c...@gmail.com on 4 Jan 2011 at 12:09

Attachments:

GoogleCodeExporter commented 8 years ago
Also, when jbrout is not run from the command line, it throws this error in a 
dialogbox:

Traceback (most recent call last):
   File "/usr/share/jbrout/jbrout/listview.py", line 140, in __load_thumbnails_bg
    self.get_thumb(idx)
   File "/usr/share/jbrout/jbrout.py", line 346, in get_thumb
    Buffer.images[node.file]=node.getThumb()
   File "/usr/share/jbrout/jbrout/db.py", line 652, in getThumb
    print >>sys.stderr,'-'*60
 IOError: [Errno 5] Input/Output Error

Original comment by matej.c...@gmail.com on 4 Jan 2011 at 2:45

GoogleCodeExporter commented 8 years ago
Suggested patch

Original comment by matej.c...@gmail.com on 4 Jan 2011 at 3:01

Attachments:

GoogleCodeExporter commented 8 years ago
Resolved in r328 (patch applied)

Original comment by r...@wallace.gen.nz on 16 Jan 2011 at 12:59