Closed Stuermer closed 5 years ago
This should be fixed in the latest commit. Python passes arguments to “extension functions” as a string that must be converted to the corresponding c-type. It was told to parse the camera handle as a 32 bit integer, while the variable holding the handle was only 16-bit. On Linux, GCC's smash checking was triggered by the error in several places.
I can confirm that the latest commit fixes the problems (at least for all the functions I tried so far).
Hi, several functions seem to cause a driver crash. In particular the cam.close() function: Here is my minimal example showing the issue:
The last line causes the script to crash and it seems also the driver with the following error message:
*** stack smashing detected ***: /home/xxxxxxxxx/anaconda3/bin/python terminated
The corresponding logfiles can be found here: PVCAM_USB: http://paste.ubuntu.com/p/7pP6nD9HPc/ PVCAM_CORE: http://paste.ubuntu.com/p/Fs7wc9kZbj/ PVCAM_DDI: http://paste.ubuntu.com/p/JZTprCRGqR/
Similar problems occur with cam.stop_live().