Crashes when trying to open HTML document in plugins.picture.

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

Bug Description

Where moving around in a picture folder with the latest SVN snapshot and came across a HTML document. Tried to open it and this happened:
[[BR]]

Exception in thread Thread-1:
Traceback (most recent call last):
  File "threading.py", line 442, in __bootstrap
    self.run()
  File "threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/deferred_image.py", line 58, in main_loop
    img = image.Image(action[0], action[2])
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/image.py", line 63, in __init__
    self._generate_thumbnail(self._original_filename, self._used_full_path)
  File "/usr/lib/python2.4/site-packages/elisa-0.1.2-py2.4.egg/elisa/core/plugins/skins/image.py", line 110, in _generate_thumbnail
    thumb = self._pil_open(image_path)
  File "/usr/lib/python2.4/site-packages/pgm/form/image.py", line 68, in _pil_open
    img = pil.open(picture_path)
  File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1916, in open
    raise IOError("cannot identify image file")
IOError: cannot identify image file

28/12/2006 21:36:32.279 INFO Showing picture file:///media/disk/pictures/Test2/Test2.html
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 213, 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 32, in __init__
    self._image = self._pil_open(filename)
  File "/usr/lib/python2.4/site-packages/pgm/form/image.py", line 68, in _pil_open
    img = pil.open(picture_path)
  File "/usr/lib/python2.4/site-packages/PIL/Image.py", line 1916, in open
    raise IOError("cannot identify image file")
exceptions.IOError: cannot identify image file

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

Can you try with [1253] ?

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

Tried and it workt fine, closes #180 to. :o)

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

Oops i meant #181.

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

Other bug subscribers

Related questions

Remote bug watches

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