libmat2.pdf.cairo.MemoryError: out of memory, another exception occurred
% mat2 --version
mat2 0.13.4
% mat2 --inplace --lightweight FILE.pdf
concurrent.futures.process._RemoteTraceback:
"""
libmat2.pdf.cairo.MemoryError: out of memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.12/concurrent/futures/process.py", line 219, in _sendback_result
result_queue.put(_ResultItem(work_id, result=result,
File "/usr/lib/python3.12/multiprocessing/queues.py", line 393, in put
obj = _ForkingPickler.dumps(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/multiprocessing/reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
_pickle.PicklingError: Can't pickle <class 'libmat2.pdf.cairo.MemoryError'>: attribute lookup cairo.MemoryError on libmat2.pdf failed
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/mat2", line 231, in <module>
sys.exit(main())
^^^^^^
File "/usr/bin/mat2", line 226, in main
no_failure &= future.result()
^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
_pickle.PicklingError: Can't pickle <class 'libmat2.pdf.cairo.MemoryError'>: attribute lookup cairo.MemoryError on libmat2.pdf failed