Open aaaaaaaaaron opened 2 months ago
I could not reproduce the issue with your code example on Windows, can you post debgging/error message and more info on your system/OS, versioning of any used modules and Python version?
Thank you for testing that out. Here is my output:
Initializing
started
ready for photos...
ending
finishing
Fatal Python error: Segmentation fault
Thread 0x0000ffffbb9b4010 (most recent call first):
File "/usr/lib/python3.9/logging/__init__.py", line 2142 in shutdown
done
The line File "/usr/lib/python3.9/logging/__init__.py", line 2142 in shutdown
changes every time I run it so I don't think that is the issue.
I am using Python 3.9 on an Nvidia Jetson Orin Nano Developer Kit running Jetpack 5.1.2 (Ubuntu 20.04.6 LTS, arm64). Using my same venv I am actually able to run your multithreading example.
I want to stream a single camera in one thread. When I close the stream and join my thread my code crashes with a segmentation fault.
I have reduced my code down to this to replicate the issue
The code runs fine, but when it stops it causes a segmentation fault. I feel like I am doing everything that was in the multithreading_opencv.py example but I keep getting this segmentation fault. Is this a bug? Or am I missing something from that example that would lead to a graceful shutdown?
Thank you!