areaDetector / ADSpinnaker

An EPICS areaDetector driver for cameras from FLIR (formerly Point Grey) using their Spinnaker SDK.
https://areadetector.github.io/areaDetector/ADSpinnaker/ADSpinnaker.html
5 stars 6 forks source link

Driver sometimes crashes when stopping acquisition #12

Closed MarkRivers closed 7 months ago

MarkRivers commented 8 months ago

The driver sometimes crashes when acquisition is stopped. This has been observed on Windows with a USB camera in Continuous mode when setting Acquire to 0 from the OPI screen. It may happen in other circumstances as well.

MarkRivers commented 7 months ago

This only happened on Windows. I found that after acquisition is stopped in Spinnaker any images still on the queue will have an invalid pointer to the data. This is now protected against by checking the value of ADAcquire before trying to process an image. Fix in this commit: https://github.com/areaDetector/ADSpinnaker/commit/916dc850b7d3a966af7e53b9afd152155796c009