Playscii crashes when trying to display thumbnail for particular image

Issue #58 resolved
Mark Wonnacott
created an issue

image here: https://drive.google.com/open?id=0B4DQtKdSqie2NDVvSkZKMjByYjQ

[2017-03-31 @ 21:20:41.860] [launch/native] err: Traceback (most recent call last):
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "playscii.py", line 1026, in <module>
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "playscii.py", line 703, in main_loop
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "playscii.py", line 734, in update
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "input_handler.py", line 233, in handle_input
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "ui.py", line 576, in wheel_moved
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "ui_chooser_dialog.py", line 406, in handle_input
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "ui_chooser_dialog.py", line 217, in set_selected_item_index
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "ui_chooser_dialog.py", line 245, in position_preview
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "ui_chooser_dialog.py", line 237, in set_preview
[2017-03-31 @ 21:20:41.861] [launch/native] err:   File "ui_file_chooser_dialog.py", line 254, in get_preview_texture
[2017-03-31 @ 21:20:41.862] [launch/native] err:   File "site-packages\PIL\Image.py", line 844, in convert
[2017-03-31 @ 21:20:41.862] [launch/native] err:   File "site-packages\PIL\ImageFile.py", line 226, in load
[2017-03-31 @ 21:20:41.862] [launch/native] err: OSError: image file is truncated (7 bytes not processed)

Comments (1)

  1. JP LeBreton repo owner
    • fix issue #58: PIL crashes loading some images! fail gracefully when this happens. if an image convert fails, give a useful error. if an export fails, show it on the message line too.
    • tidy up better when an import fails, ie don't leave a blank art sitting round

    → <<cset 877555df4c07>>

  2. Log in to comment