Exception: Read Exception `' @ error/png.c/MagickPNGErrorHandler/1630

Bug #1548417 reported by Igor on 2016-02-22
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre v2.48.0 / FreeBSD 10.2

./fb2/331773.fb2
Traceback (most recent call last):
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1266, in set_metadata
    self._set_cover({book_id: cdata})
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1192, in set_cover
    self.backend.set_cover(book_id, path, data)
  File "/usr/local/lib/calibre/calibre/db/backend.py", line 1380, in set_cover
    save_cover_data_to(data, path)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 71, in save_cover_data_to
    img = _data_to_image(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 20, in _data_to_image
    img.load(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/__init__.py", line 135, in load
    return _magick.Image.load(self, data)
Exception: Read Exception `' @ error/png.c/MagickPNGErrorHandler/1630

Igor (arabesc) wrote :
Igor (arabesc) wrote :

./fb2/398570.fb2
Traceback (most recent call last):
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1266, in set_metadata
    self._set_cover({book_id: cdata})
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1192, in set_cover
    self.backend.set_cover(book_id, path, data)
  File "/usr/local/lib/calibre/calibre/db/backend.py", line 1380, in set_cover
    save_cover_data_to(data, path)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 71, in save_cover_data_to
    img = _data_to_image(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 20, in _data_to_image
    img.load(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/__init__.py", line 135, in load
    return _magick.Image.load(self, data)
Exception: Read Exception `' @ error/png.c/MagickPNGErrorHandler/1630

Igor (arabesc) wrote :

./fb2/338788.fb2
Traceback (most recent call last):
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1266, in set_metadata
    self._set_cover({book_id: cdata})
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1192, in set_cover
    self.backend.set_cover(book_id, path, data)
  File "/usr/local/lib/calibre/calibre/db/backend.py", line 1380, in set_cover
    save_cover_data_to(data, path)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 71, in save_cover_data_to
    img = _data_to_image(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 20, in _data_to_image
    img.load(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/__init__.py", line 135, in load
    return _magick.Image.load(self, data)
Exception: Read Exception `' @ error/png.c/MagickPNGErrorHandler/1630

Igor (arabesc) wrote :

./fb2/466221.fb2
Traceback (most recent call last):
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1266, in set_metadata
    self._set_cover({book_id: cdata})
  File "/usr/local/lib/calibre/calibre/db/cache.py", line 1192, in set_cover
    self.backend.set_cover(book_id, path, data)
  File "/usr/local/lib/calibre/calibre/db/backend.py", line 1380, in set_cover
    save_cover_data_to(data, path)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 71, in save_cover_data_to
    img = _data_to_image(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/draw.py", line 20, in _data_to_image
    img.load(data)
  File "/usr/local/lib/calibre/calibre/utils/magick/__init__.py", line 135, in load
    return _magick.Image.load(self, data)
Exception: Read Exception `' @ error/png.c/MagickPNGErrorHandler/1630

Those fb2 files have invalid cover images. That exception will not
prevent the files from being added to calibre.

 status invalid

Changed in calibre:
status: New → Invalid
Igor (arabesc) wrote :

May I suggest that such errors have been reported in a more human friendly way instead of exceptions?

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

Duplicates of this bug

Other bug subscribers