Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt runtime error on Freescale / same code works on other systems



  • Hi,

    I have a Qt application that is running fine on a MIPs-based Ingenics JZ4740 processor. This same Qt application runs fine on Linux (Ubuntu), in Eclipse or stand-alone. (All systems are using Qt 4.6.2).

    However, when I try to run the same application on a Freescale MX28 system, I encounter the following run-time errors:

    @
    QObject: Cannot create children for a parent that is in a different thread.
    (Parent is Pandora::PandoraView(0xc56ba0), parent's thread is QThread(0xb6fa00), current thread is QThread(0xbcebc8)
    QObject: Cannot create children for a parent that is in a different thread.
    (Parent is Pandora::TestRequester(0xcc49f8), parent's thread is QThread(0xbcebc8), current thread is QThread(0xb730f0)
    @
    The problem looks like a Qt-level problem, not a HW issue.

    However, the same Qt app that works on the other two systems with Qt 4.6.2 should also work on the Freescale system with Qt 4.6.2

    It is possible that we have made a mistake when configuring Qt for the Freescale system; the settings we're using are:

    @
    ./configure -embedded -xplatform qwsnux-arm-g++ -embedded arm -little-endian -no-largefile -no-accessibility -no-qt3support -no-multimedia -no-audio-backend -no-phonon -depths 4,8,16,32 -qt-gif -qt-libpng -qt-zlib -qt-libmng -qt-libjpeg -qt-gfx-transformed -no-cups -little-endian -confirm-license -qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslibb -openssl -no-feature-CURSOR
    @

    Does anyone know why we would be getting the "QObject: Cannot create children for a parent that is in a different thread." errors on one system, and not the other two?

    Or have any pointers as to what to investigate?

    Thanks in advance-

    GG

    [EDIT: code formatting for log output and configure, please wrap in @-tags, Volker]



  • This error (obviously) points towards threads. Are you using any threads? And if yes is it possible you are handling them different across the platforms?


Log in to reply