Results 1 to 2 of 2

Thread: ASSERT(Failed assertion in Qt == Qt bug)

  1. #1
    Join Date
    Feb 2006
    Posts
    9
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default ASSERT(Failed assertion in Qt == Qt bug)

    This is a general question, as it's the 2nd time it happens to me. I've got a failed assertion in Qt 4.1.1:
    ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread 80651a8. Receiver '' (of type 'MyTestClass') was created in thread 80dee80", file kernel/qcoreapplication.cpp, line 291
    does a failled assertion in Qt imply a Qt bug?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: ASSERT(Failed assertion in Qt == Qt bug)

    Not necessarily. If you use threads, make sure that you create all QObject instances* in run() and that the thread object isn't their parent. Also make sure you don't pass QObjects between threads without invoking QObject::moveToThread().

    * Including instances of all classes derived from QObject, for example QSocket.

Similar Threads

  1. Debug Assertion Failed
    By ^NyAw^ in forum General Programming
    Replies: 5
    Last Post: 28th December 2007, 11:48
  2. setPixmap cause assertion?
    By Equilibrium in forum Qt Programming
    Replies: 3
    Last Post: 23rd October 2007, 00:34
  3. QGLWIdget renderText() assertion...
    By adonel in forum Qt Programming
    Replies: 3
    Last Post: 22nd October 2007, 21:30
  4. QTreeWidget, double-clicks and assertion errors
    By Byngl in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2006, 14:29

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.