Segmentation fault for converting jp2 file
Description:
I get Segmentation fault (core dumped) python test.py when I run a python script to convert jp2 to png with python-pillow. This only happens if python-pillow and python-pymupdf is installed from Arch repository, does not happen if I install them from pip. Also if I remove import pymupdf or import pymupdf after importing PIL, no error happens.
Stack trace:
Additional info:
- package version(s):
python-pillow 12.0.0-1python-pymupdf 1.26.5-1python-mupdf 1.26.10-1libmupdf 1.26.10-1openjpeg2 2.5.4-1 - config and/or log files:
- link to upstream bug report, if any: https://github.com/python-pillow/Pillow/issues/9267
Steps to reproduce:
pacman -S python-pymupdf python-pillow- Run
python test.py
Content of test.py:
import pymupdf
from PIL import Image
image1 = Image.open('test.jp2')
image1.save('out.png')
Edited by Christian Heusel