LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
78 stars 16 forks source link

Ximea: camera not correctly closed #121

Closed qdolle15 closed 2 months ago

qdolle15 commented 4 months ago

I have an issue happening once I want to run again my crappy program after using the same program before.

The issue rise is: "xiAPI: OpenDeviceUSB30 ERROR opening driver - Flag set - device already opened"

I need to unplug/plug again the camera to run successfully my program.

WeisLeDocto commented 4 months ago

Hi,

Could you please run your script in a way that this bug happens, preferably with the debug=True option set for your Camera Block, and then send me the log file ? Also send the script you're running. The log files should be located at /tmp/crappy/logs.txt on Linux and macOS, and C:\Users\<User>\AppData\Local\Temp\crappy\logs.txt on Windows.

I suspect that the close() method of the XiAPI Camera object is never called for some reason. Might also be that you're using a camera model that requires an extra closing step which wouldn't be implemented in the XiAPI class, although that's less likely.

WeisLeDocto commented 2 months ago

Closing due to inactivity