Hi,

I have been trying to enable libjpeg-turbo SIMD in OpenCV. I have tested my 
code on Linux and Windows environment and it works fine but in macOS Arm 
build some tests fails. 

In the one test, it gives segmentation fault. The test is

```
path = cv.utils.fs.getCacheDirectoryForDownloads()
gold_image = np.ones((16, 16, 3), np.uint8)
read_from_file = np.zeros((16, 16, 3), np.uint8)
test_file_name = os.path.join(path, "test." + ext)
try:
    cv.imwrite(test_file_name, gold_image)
     read_from_file = cv.imread(test_file_name)
finally:
os.remove(test_file_name)
```
In the one of the test, it gives error code 133 
<https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiy6IHR5c75AhVmQPEDHfYFDYwQFnoECCUQAw&url=https%3A%2F%2Fugetfix.com%2Fask%2Fhow-to-fix-blue-screen-error-code-133%2F%23%3A~%3Atext%3DThe%2520particular%2520error%2520code%2520133%2Cblue%2520screen%2520error%2520appears%2520again.&usg=AOvVaw3EcmSN2jT0KLjGQbcicnqC>
. 

It works fine without SIMD extension. I do also tested 
with JSIMD_NOHUFFENC=1 flag but did not work out. 

Here is the pull-request: https://github.com/opencv/opencv/pull/22372
Workflow: 
https://github.com/opencv/opencv/runs/7873594686?check_suite_focus=true

What am i doing wrong here?

Thanks in advance,
Best regards

Berke

-- 
You received this message because you are subscribed to the Google Groups 
"libjpeg-turbo User Discussion/Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to libjpeg-turbo-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/libjpeg-turbo-users/e4d7277d-5644-4432-a559-89895c23dd2dn%40googlegroups.com.

Reply via email to