You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from PIL import Image
import cv2
from pillow_heif import register_heif_opener
register_heif_opener()
with Image.open("10003860486.jpg") as img:
img.load()
img.save("2.heic")
Expected Results
No crash
Actual Results
10739 segmentation fault
I am on Mac. Note that if I remove the line import cv2, or if I move it after from pillow_heif import register_heif_opener, then the program runs normally.
Exception occurs in x265 library, somewhere near x265::Search::codeIntraLumaQT. Looks like the only way to understand is to build all libraries in debug mode and trace with Xcode - will try to do that when will have time for this.
Affected only arm64 build for Apple and affected all versions(tested down to 0.8.0). Linux, Windows, macOS Intel - works fine.
Describe the bug
This program will crash on my iMac:
Steps/Code to Reproduce
Expected Results
No crash
Actual Results
I am on Mac. Note that if I remove the line
import cv2
, or if I move it afterfrom pillow_heif import register_heif_opener
, then the program runs normally.Versions
The text was updated successfully, but these errors were encountered: