Results 1 to 3 of 3

Thread: Qt x11 GUI crash if multi-thread

  1. #1
    Join Date
    Feb 2008
    Posts
    49
    Thanks
    2
    Thanked 4 Times in 1 Post

    Default Qt x11 GUI crash if multi-thread

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt x11 GUI crash if multi-thread

    Please provide a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jan 2006
    Location
    India
    Posts
    115
    Thanks
    3
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt x11 GUI crash if multi-thread

    First, try to debug your application and check if you can pin-point the cause of crash.

Similar Threads

  1. reading file with multi-thread
    By weixj2003ld in forum Qt Programming
    Replies: 10
    Last Post: 16th April 2009, 03:12
  2. Multi-thread related problem,help me
    By mendynew in forum Qt Programming
    Replies: 2
    Last Post: 3rd November 2008, 04:02
  3. QTcpServer - Multi thread or single?
    By December in forum Qt Programming
    Replies: 3
    Last Post: 8th February 2008, 11:31
  4. Multi-thread vs. Multicore
    By TheGrimace in forum Qt Programming
    Replies: 10
    Last Post: 20th September 2007, 23:17
  5. Multi thread problem
    By sreedhar in forum Qt Programming
    Replies: 5
    Last Post: 26th June 2006, 14:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.