Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt runtime error on Freescale / same code works on other systems

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

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    darkcow
    wrote on last edited by
    #1

    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]

    1 Reply Last reply
    0
    • L Offline
      L Offline
      loladiro
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved