morefigs / pymba

Python wrapper for Allied Vision's Vimba C API
MIT License
105 stars 84 forks source link

High framerates cause Python crash #117

Closed jakove closed 4 years ago

jakove commented 4 years ago

Hi, I am using a Mako USB-Cam and it is working fine at Framerates under 150. At round about 150 - 200 fps Python crashes and I have to reboot my computer if I want to use camera.open or even Vimba 3.0. My testprogram is similar to the Example: opencv_acquire_streaming_images.py. Python Crashes with the Error: Illegal instruction (core dumped)

jakove commented 4 years ago

I made some tests and found out through pythons faulthandler that the crash is caused during camera.close(). It seems like you have to wait a few seconds, before you can close the camera after calling stop_frame_acquisition(). If I wait 2 seconds I can handle max fps without problems