Opened 12 years ago
Closed 12 years ago
#83 closed defect (fixed)
LibUCA/UFO does not properly stoping
Reported by: | Suren A. Chilingaryan | Owned by: | Matthias Vogelgesang |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | libuca | Version: | |
Keywords: | ufo camera | Cc: | Matthias Vogelgesang |
Description
The uca_ufo_camera_grab does not return after stop_recording is called. This results in segmentation fault during ufo-gui termination and problems restarting grabbing.
The reason is PCILIB_TIMEOUT_INFINITE timeout passed to the pcilib_get_next_event. If you stop recording while waiting for camera to deliver frame (after pcilib_trigger), you will wait forever. Also, camera some times ignoring trigger signal. Because of this uca-gui some times stopping updating the image.
Just set some reasonable timeout and re-try if the frame is not received within timeout.
Attachments (0)
Change History (3)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
The units are microseconds. The reasonable duration depends on exposure time. I guess if you do exposure_time plus about 50ms it should work fine.
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
I put it to
PCILIB_TIMEOUT_INFINITE
in the first place, because I couldn't figure out what a "reasonable" timeout could be. Thepcilib_timeout_t
is just a typedef to a 64-bit integer and there is no documentation what time unit this type represents.