Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-29281

QImage(QString)/QImageReader::read() is not reentrant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.1.0
    • 5.0.0
    • Image formats
    • None
    • Windows 7, MSVC 2012 with november compiler(update 1).
      64 bit build, Ubuntu 12.10 64 bit
    • e28c03cb829c229209090d7939a9aba1af1fdea9

    Description

      The attached program, which simply tries to load several QImages in parallel crashes with the following output:
      ASSERT: "!weakref.load()" in file c:\qt\5.0.0\qtbase\include\qtcore\../../src/corelib/tools/qsharedpointer_impl.h, line 151
      ASSERT: "!weakref.load()" in file c:\qt\5.0.0\qtbase\include\qtcore\../../src/corelib/tools/qsharedpointer_impl.h, line 151
      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      QObject::moveToThread: Current thread (0x111a60) is not the object's thread (0x125710).
      Cannot move to target thread (0x122ee0)

      Attachments

        1. main.cpp
          0.6 kB
        2. qtbug29281.tar
          10 kB
        3. stacktrace_movethreadwarning.txt
          3 kB
        4. stacktrace.txt
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            bgp2000 Björn Piltz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes