Skip to content

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:

Steps to reproduce:

  1. pacman -S python-pymupdf python-pillow
  2. Run python test.py

Content of test.py:

import pymupdf
from PIL import Image
image1 = Image.open('test.jp2')
image1.save('out.png')

test.jp2

Edited by Christian Heusel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information