PDA

View Full Version : Qt x11 GUI crash if multi-thread



wesley
21st January 2010, 09:06
I am using Qt-4.6 to develop a camera application, which reading the camera raw data from an USB port.
I am create a QThread to read the raw data from USB, and convert the raw data to RGB data in another thread,
after one camera frame got converted, i send an event to the GUI thread(application) to refresh the preview widget
On windows xp platform, every thing is ok.

But on Fedora(linux) platform, the preview widget can got refreshed every time. the problem is the the GUI thread seems crash,..
I click a menu on a QMainWindow, the menu list take long time to show...


any idea ?

Thanks...

/WX

wysota
21st January 2010, 09:11
Please provide a minimal compilable example reproducing the problem.

yogeshm02
21st January 2010, 09:11
First, try to debug your application and check if you can pin-point the cause of crash.