I think my scanning database got corrupted (I suspect when pressing the recalibrate button in settings, the app crashed once)
when trying to scan or recalibrate my scanner (Brother ADS-1700W) Paperwork only crashes.
The logfiles seem to indicate libinsane crashing in background
Where are the configurations for the scanners located and will they simply be restored when deleted?
Backtrace when trying to calibrate (scanner scans the document, then paperwork fails, when loading the scan in claibration menu):
[WARNING] [openpaperwork_core.promise ] === caught exception in promise ===
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/openpaperwork_core/promise.py", line 235, in _threaded_do
our_r = self.func(*args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paperwork_gtk/settings/scanner/calibration.py", line 277, in _scan
for (idx, img) in enumerate(img_generator):
File "/usr/lib/python3.11/site-packages/paperwork_backend/docscan/libinsane.py", line 306, in _scan
img = raw_to_img(scan_params, image.get_image())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/paperwork_backend/docscan/libinsane.py", line 79, in raw_to_img
return PIL.Image.frombuffer(mode, (w, h), img_bytes, "raw", mode, 0, 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/site-packages/PIL/Image.py", line 3027, in frombuffer
return frombytes(mode, size, data, decoder_name, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/site-packages/PIL/Image.py", line 2969, in frombytes
im.frombytes(data, decoder_name, args)
File "/usr/lib64/python3.11/site-packages/PIL/Image.py", line 825, in frombytes
d.setimage(self.im)
ValueError: tile cannot extend outside image
Backtrace when trying to scan (scanner scans, documents starts to apperar as a new document, then Paperwork displays an Error box, but the scan document shortly appears and then stays blank):
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/openpaperwork_gtk/mainloop/glib.py", line 160, in decorator
func(*args, **kwargs)
File "/usr/lib/python3.11/site-packages/openpaperwork_core/work_queue/default.py", line 30, in _on_error
raise exc
File "/usr/lib/python3.11/site-packages/openpaperwork_core/promise.py", line 235, in _threaded_do
our_r = self.func(*args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/openpaperwork_core/pillow/img.py", line 58, in url_to_img_size
with self.core.call_success("fs_open", file_url, mode='rb') as fd:
TypeError: 'NoneType' object does not support the context manager protocol
After three error boxes (1 with the same as the first backtrace, then 2 the same as the second backtrace) the loading symbol says Loading Page 1/2…, but never finishes
Before trying to calibrate the scaner already worked, but had too long pages