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

QPaintedTextureImage causes SIGSEGV crashes on Release builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.12.1, 5.12.2, 5.12.4, 5.13.0, 5.13.1
    • Fix Version/s: None
    • Component/s: Qt3D
    • Labels:
      None
    • Environment:
      Windows 10 (64bit), MinGW 7.3.0 64-bit
    • Platform/s:
      Windows

      Description

      Debug builds work fine. Issue is present on Release only. Affected official examples: pbr-materials. Apps crash immediately after start.

      pbr-materials

      12:14:24: Starting C:\Qt\Examples\Qt-5.13.0\qt3d\build-pbr-materials-Desktop_Qt_5_13_0_MinGW_64_bit-Release\release\pbr-materials.exe ...
      qml: aspectRatio = 1.3333333730697632
      12:14:26: The program has unexpectedly finished.
      12:14:26: The process was ended forcefully.
      12:14:26: C:/Qt/Examples/Qt-5.13.0/qt3d/build-pbr-materials-Desktop_Qt_5_13_0_MinGW_64_bit-Release/release/pbr-materials.exe crashed.
      

      When compiled with debug info:

      1  Qt3DRender::QPaintedTextureImage::qt_metacall(QMetaObject::Call, int, void * *)                                                                  0x6a179166     
      2  Qt3DRender::Render::ResourceAccessor::ResourceAccessor(Qt3DRender::Render::NodeManagers *)                                                       0x6a018b8d     
      3  Qt3DRender::Render::ResourceAccessor::ResourceAccessor(Qt3DRender::Render::NodeManagers *)                                                       0x6a0170bf     
      4  Qt3DCore::QAbstractAspectPrivate::createBackendNode(QSharedPointer<Qt3DCore::QNodeCreatedChangeBase> const&) const                               0x65b05b71     
      5  Qt3DCore::QAbstractAspectPrivate::setRootAndCreateNodes(Qt3DCore::QEntity *, QVector<QSharedPointer<Qt3DCore::QNodeCreatedChangeBase>> const&)   0x65b056b4     
      6  Qt3DCore::QAspectManager::setRootEntity(Qt3DCore::QEntity *, QVector<QSharedPointer<Qt3DCore::QNodeCreatedChangeBase>> const&)                   0x65b0af7a     
      7  QObject::event(QEvent *)                                                                                                                         0x68aa33aa     
      8  QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                           0x68a75248     
      9  QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *)                                                                         0x68a7bea7     
      10 QEventDispatcherWin32Private::sendTimerEvent(int)                                                                                                0x68ad1577     
      11 USER32!DispatchMessageW                                                                                                                          0x7ffce212ca66 
      12 USER32!DispatchMessageW                                                                                                                          0x7ffce212c582 
      13 QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                      0x68ad0dcb     
      14 Qt3DCore::QAspectManager::exec()                                                                                                                 0x65b0beb4     
      15 Qt3DCore::QAspectManager::exec()                                                                                                                 0x65b0cc87     
      16 QThread::qt_metacall(QMetaObject::Call, int, void * *)                                                                                           0x688a15cb     
      17 KERNEL32!BaseThreadInitThunk                                                                                                                     0x7ffce2577974 
      18 ntdll!RtlUserThreadStart                                                                                                                         0x7ffce2d5a271 
      19 ??           
      

      In applications using custom Material with defined Effect (e.g https://github.com/PacktPublishing/Mastering-Qt-5-Second-Editon/tree/master/Chapter06) stack looks like this:

      1  Qt3DRender::QPaintedTextureImage::qt_metacall(QMetaObject::Call, int, void * *)                                                                  0x6a179166     
      2  Qt3DRender::QTechnique::qt_metacall(QMetaObject::Call, int, void * *)                                                                            0x6a07a61d     
      3  Qt3DRender::QTechnique::qt_metacall(QMetaObject::Call, int, void * *)                                                                            0x6a07a73f     
      4  Qt3DCore::QAbstractAspectPrivate::createBackendNode(QSharedPointer<Qt3DCore::QNodeCreatedChangeBase> const&) const                               0x65b05b71     
      5  Qt3DCore::QAbstractAspectPrivate::setRootAndCreateNodes(Qt3DCore::QEntity *, QVector<QSharedPointer<Qt3DCore::QNodeCreatedChangeBase>> const&)   0x65b056b4     
      6  Qt3DCore::QAspectManager::setRootEntity(Qt3DCore::QEntity *, QVector<QSharedPointer<Qt3DCore::QNodeCreatedChangeBase>> const&)                   0x65b0af7a     
      7  QObject::event(QEvent *)                                                                                                                         0x68aa33aa     
      8  QCoreApplication::notifyInternal2(QObject *, QEvent *)                                                                                           0x68a75248     
      9  QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *)                                                                         0x68a7bea7     
      10 QEventDispatcherWin32Private::sendTimerEvent(int)                                                                                                0x68ad1577     
      11 USER32!DispatchMessageW                                                                                                                          0x7ffce212ca66 
      12 USER32!DispatchMessageW                                                                                                                          0x7ffce212c582 
      13 QEventDispatcherWin32::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)                                                                      0x68ad0dcb     
      14 Qt3DCore::QAspectManager::exec()                                                                                                                 0x65b0beb4     
      15 Qt3DCore::QAspectManager::exec()                                                                                                                 0x65b0cc87     
      16 QThread::qt_metacall(QMetaObject::Call, int, void * *)                                                                                           0x688a15cb     
      17 KERNEL32!BaseThreadInitThunk                                                                                                                     0x7ffce2577974 
      18 ntdll!RtlUserThreadStart                                                                                                                         0x7ffce2d5a271 
      19 ??                                                                                                                                                              
      
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              seanharmer Sean Harmer
              Reporter:
              dcieslik Damian CieĊ›lik
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes