cannot read interlaced PNG files

Bug #232741 reported by Filip Palm (helmut)
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Medium
Philippe Normand

Bug Description

Elisa hangs when trying to open the attached picture.
[[BR]]

Traceback (most recent call last):
  File "/usr/bin/elisa", line 7, in ?
    sys.exit(
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/application.py", line 344, in start
    reactor.run()
  File "/usr/lib/python2.4/site-packages/twisted/internet/gtk2reactor.py", line 175, in run
    self.__run()
  File "/usr/lib/python2.4/site-packages/twisted/internet/gtk2reactor.py", line 216, in simulate
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.4/site-packages/twisted/internet/base.py", line 555, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/application.py", line 293, in refresh
    self._window.dispatch_events(additional_events=additional_events)
  File "/usr/lib/python2.4/site-packages/pgm/layout/window.py", line 155, in dispatch_events
    self._do_event(event)
  File "/usr/lib/python2.4/site-packages/pgm/layout/window.py", line 222, in _do_event
    self._do_key_press_event(_event)
  File "/usr/lib/python2.4/site-packages/pgm/layout/window.py", line 260, in _do_key_press_event
    getattr(self, signal_name).emit(_event)
  File "/usr/lib/python2.4/site-packages/pgm/message/signal.py", line 97, in emit
    receiver(*data, **kw)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/default/skin.py", line 138, in keypress_cb
    getattr(self, action)()
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/default/skin.py", line 185, in activate
    activated = manager.activate_current_menu_item()
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/menu_manager.py", line 136, in activate_current_menu_item
    menu_item.fire_action()
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/menu.py", line 352, in fire_action
    self.fire_callback('action', *args)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/menu.py", line 339, in fire_callback
    callback(*args)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/pictures.py", line 219, in show_picture
    appli.load_image_uri(target_path, in_slideshow=in_slideshow)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/application.py", line 231, in load_image_uri
    self.get_skin().display_image(uri, in_slideshow=in_slideshow)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/default/skin.py", line 360, in display_image
    img = image.Image(uri)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/image.py", line 67, in __init__
    pgm_image.Image.__init__(self, self._used_full_path)
  File "/usr/lib/python2.4/site-packages/pgm/form/image.py", line 36, in __init__
    self._pixels = self._image.tostring('raw', self._image.mode, 0, 1)
  File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 455, in tostring
    self.load()
  File "/usr/lib/python2.4/site-packages/PIL/ImageFile.py", line 155, in load
    self.load_prepare()
  File "/usr/lib/python2.4/site-packages/PIL/PngImagePlugin.py", line 337, in load_prepare
    raise IOError("cannot read interlaced PNG files")
exceptions.IOError: cannot read interlaced PNG files

Revision history for this message
Filip Palm (helmut) (bugzilla-helmut) wrote :

File to big, if you need it i can mail it to you.

Revision history for this message
Philippe Normand (philn) wrote :

This is a PIL issue, I'm afraid I can't do anything except catch the exception and push upstream author to add interlaced png support to PIL

Revision history for this message
Filip Palm (helmut) (bugzilla-helmut) wrote :

Replying to [comment:2 philn]:
> This is a PIL issue, I'm afraid I can't do anything except catch the exception and push upstream author to add interlaced png support to PIL

Do they have a bug tracker so i can track the progress? And if i find something similar in the future i can file bugreports myself. Couldn't find any information about a bug tracker on there homepage.

Revision history for this message
Philippe Normand (philn) wrote :

There's no bugtracker i know of on Python Imaging Library... however the developers provide some support through the Image SIG: http://mail.python.org/mailman/listinfo/image-sig

Revision history for this message
Philippe Normand (philn) wrote :

(In [1259])
        * docs/coding_style.txt:
        * po/elisa.po:
        i18n related notes and sample elisa.po file

        * elisa/core/plugins/skins/default/skin.py:
        * elisa/core/plugins/skins/deferred_image.py:
        * elisa/core/plugins/skins/image.py:
        When a picture fails to load, swap it with the 'unknown'
        icon. When the user want to display such a failed picture, notify
        him of the error, fixes #186

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.