Blog

xiAPI: USB events processing thread ended abnormally!

USB events processing thread ended abnormally!

The problem is from the underlying layers in the API . It seems that enabling -pg for gprof profiling at the compilation time causes an error in USB events processing in the layers below xiAPI in the middle of the run time process.

Ximea Camera and the situation

I'm using Ximea USB 2.0 camera for a long time. Always, everything was ok for capturing frames from the camera with or without the HW trigger. Someday, I had noticed that sometimes in the middle of the process, capturing frames from the camera was not possible and it resulted to  time out. At first it happened rarely, and after restarting the process everything seemed good. but later it happened a lot and some times restarting the process did not change the situation.

XiAPI trouble shouting

After a lot of checking, logging and replacing the cameras I have found out that before that this problem happens, camera writes a warning on the consol:

WorkerThread is down

xiAPI: USB events processing thread ended abnormally!

I have doubt about a lot of things specially because I had switched to a new 64 bit machine with an upgraded Linux OS, Upgraded Ximea API but nothing was changed in the code itself.

I had finally found out that enabling gprof at the compilation time causes this error in the middle of the run time process.

I had enabled it to make some test on function execution times and speed optimization but it seems that something below the xiAPI is not comfortable with this change!

 

0 Comments :

Comment