Modify

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 Matthias Vogelgesang

I put it to PCILIB_TIMEOUT_INFINITE in the first place, because I couldn't figure out what a "reasonable" timeout could be. The pcilib_timeout_t is just a typedef to a 64-bit integer and there is no documentation what time unit this type represents.

comment:2 Changed 12 years ago by Suren A. Chilingaryan

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 Matthias Vogelgesang

Resolution: fixed
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthias Vogelgesang.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.