#6 handling possible exception in pixbuf_new_from_file_at_size

closed-fixed
None
5
2006-09-10
2006-09-10
No

I had a cbr archive which failed to open, and
discovered that it was because
pixbuf_new_from_file_at_size threw an exception when
generating a thumbnail preview for a certain page. I am
not sure why it happens, but I made a fix for it and
now I can open and view the archive.

This is a fix for the version in the ubuntu dapper
archives, by the way:

First, import gobject at the top, then

on the line before this:
if self.preflist[35]:
(on mine it's line 3637)
add
try:

Then, following the if block:

except gobject.GError:
return False

Discussion

  • Pontus Ekberg

    Pontus Ekberg - 2006-09-10

    Logged In: YES
    user_id=1250348

    Hi Kristoffer.

    Thanks for the patch. The code has changed a bit since
    version 2.4.1 though (the one in Dapper). Could you try the
    latest SVN version and see if the problem remains? If you
    still get an error, could you please post the entire error
    message and perhaps attach the file that triggers this
    behaviour?

    If you have svn installed you can download the latest svn
    version by running this in a terminal:

    svn co https://svn.sourceforge.net/svnroot/comix comix

     
  • Pontus Ekberg

    Pontus Ekberg - 2006-09-10
    • assigned_to: nobody --> herrekberg
     
  • Kristoffer Grönlund

    Logged In: YES
    user_id=661952

    Hi!

    I tried the latest version with the file, and now it opens
    fine! It just shows a broken thumbnail on the offending
    jpeg. So disregard this report.

    / Kristoffer

     
  • Pontus Ekberg

    Pontus Ekberg - 2006-09-10

    Logged In: YES
    user_id=1250348

    Thanks, good to know.

     
  • Pontus Ekberg

    Pontus Ekberg - 2006-09-10
    • status: open --> closed-fixed
     

Log in to post a comment.