Albireo icon indicating copy to clipboard operation
Albireo copied to clipboard

IOError: image file is truncated

Open lordfriend opened this issue 6 years ago • 2 comments

https://sentry.io/nyasoft/albireo-scheduler-prod/issues/546320403/

IOError: image file is truncated
  File "utils/image.py", line 18, in get_dominant_color
    (r, g, b) = color_thief.get_color(quality=quality)
  File "dist-packages/colorthief.py", line 50, in get_color
    palette = self.get_palette(5, quality)
  File "dist-packages/colorthief.py", line 63, in get_palette
    image = self.image.convert('RGBA')
  File "PIL/Image.py", line 842, in convert
    self.load()
  File "PIL/ImageFile.py", line 204, in load
    raise IOError("image file is truncated")

image file is truncated

lordfriend avatar May 05 '18 18:05 lordfriend

Is there a problem with the picture?

kslr avatar May 06 '18 09:05 kslr

Not sure, because it is totally asynchronized. the stack trace didn't provide too much useful information. I don't know which image cause this error. But by searching the error message through the StackOverflow. got some hints about the usage of PIL.

Anyway, this is not a very critical issue. The failure of extract image dominant color is tolerable.

lordfriend avatar May 06 '18 10:05 lordfriend