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

Crash in Anaglyph Rendering example

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.7.0 RC
    • Fix Version/s: 5.7.0
    • Component/s: Qt3D
    • Labels:
      None
    • Environment:
      Win7, OSX 10.11.4
    • Commits:
      8bf76e51119aa49e745b078ceed3ffa67a89aea1

      Description

      Anaglyph rendering example crashes randomly at start when running the application in OSX or in Windows. Issue cannot be reproduced if ran under debugger.

      Caught two different crash stacks from OSX, both basically indicate that the reallocated memory area is larger than there is available memory in the os -> the pointer to the reallocated struct is garbage:

      Thread 17 Crashed:: Thread (pooled)
      0   libsystem_platform.dylib      	0x00007fff8efdc6ff _platform_memmove$VARIANT$Nehalem + 415
      1   Qt3DRender_debug              	0x000000010189a456 QVector<Qt3DRender::Render::RenderStateNode*>::reallocData(int, int, QFlags<QArrayData::AllocationOption>) + 598 (qvector.h:559)
      2   Qt3DRender_debug              	0x000000010189a088 QVector<Qt3DRender::Render::RenderStateNode*>::append(Qt3DRender::Render::RenderStateNode* const&) + 216 (qvector.h:639)
      3   Qt3DRender_debug              	0x0000000101899e06 Qt3DRender::Render::RenderStateCollection::renderStates(Qt3DRender::Render::RenderStateManager*) const + 310 (renderstatecollection.cpp:70)
      4   Qt3DRender_debug              	0x0000000101819a58 Qt3DRender::Render::addToRenderStateSet(Qt3DRender::Render::RenderStateSet*, Qt3DRender::Render::RenderStateCollection const*, Qt3DRender::Render::RenderStateManager*) + 40 (renderviewjobutils.cpp:398)
      5   Qt3DRender_debug              	0x0000000101704d10 Qt3DRender::Render::RenderView::buildDrawRenderCommands(Qt3DRender::Render::Entity*, Qt3DRender::Render::Plane const*) + 944 (renderview.cpp:575)
      6   Qt3DRender_debug              	0x0000000101704319 Qt3DRender::Render::RenderView::buildRenderCommands(Qt3DRender::Render::Entity*, Qt3DRender::Render::Plane const*) + 281 (renderview.cpp:525)
      7   Qt3DRender_debug              	0x0000000101818d41 Qt3DRender::Render::RenderViewJob::run() + 1345 (renderviewjob.cpp:137)
      8   Qt3DCore_debug                	0x0000000101fe35fe Qt3DCore::AspectTaskRunnable::run() + 78 (task.cpp:91)
      9   QtCore_debug                  	0x0000000102dc53a7 QThreadPoolThread::run() + 135 (qthreadpool.cpp:99)
      10  QtCore_debug                  	0x0000000102dcd4e8 QThreadPrivate::start(void*) + 872 (qthread_unix.cpp:345)
      11  libsystem_pthread.dylib       	0x00007fff9e33599d _pthread_body + 131
      12  libsystem_pthread.dylib       	0x00007fff9e33591a _pthread_start + 168
      13  libsystem_pthread.dylib       	0x00007fff9e333351 thread_start + 13
      
      Thread 16 Crashed:: Thread (pooled)
      0   libsystem_kernel.dylib        	0x00007fff8b52cf06 __pthread_kill + 10
      1   libsystem_pthread.dylib       	0x00007fff9e3384ec pthread_kill + 90
      2   libsystem_c.dylib             	0x00007fff8f9be6e7 abort + 129
      3   QtCore_debug                  	0x00000001039adee8 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 24
      4   QtCore_debug                  	0x00000001039b01be QMessageLogger::fatal(char const*, ...) const + 446 (qlogging.cpp:792)
      5   QtCore_debug                  	0x00000001039a62b2 qt_assert(char const*, char const*, int) + 82 (qglobal.cpp:3063)
      6   Qt3DRender_debug              	0x00000001024ab946 QVector<Qt3DRender::Render::RenderStateNode*>::reallocData(int, int, QFlags<QArrayData::AllocationOption>) + 1622 (qvector.h:615)
      7   Qt3DRender_debug              	0x00000001024ab178 QVector<Qt3DRender::Render::RenderStateNode*>::append(Qt3DRender::Render::RenderStateNode* const&) + 216 (qvector.h:639)
      8   Qt3DRender_debug              	0x00000001024aaf4b Qt3DRender::Render::RenderStateCollection::renderStates(Qt3DRender::Render::RenderStateManager*) const + 171 (renderstatecollection.cpp:69)
      9   Qt3DRender_debug              	0x000000010242ac28 Qt3DRender::Render::addToRenderStateSet(Qt3DRender::Render::RenderStateSet*, Qt3DRender::Render::RenderStateCollection const*, Qt3DRender::Render::RenderStateManager*) + 40 (renderviewjobutils.cpp:398)
      10  Qt3DRender_debug              	0x0000000102315ee0 Qt3DRender::Render::RenderView::buildDrawRenderCommands(Qt3DRender::Render::Entity*, Qt3DRender::Render::Plane const*) + 944 (renderview.cpp:575)
      11  Qt3DRender_debug              	0x00000001023154e9 Qt3DRender::Render::RenderView::buildRenderCommands(Qt3DRender::Render::Entity*, Qt3DRender::Render::Plane const*) + 281 (renderview.cpp:525)
      12  Qt3DRender_debug              	0x0000000102429f11 Qt3DRender::Render::RenderViewJob::run() + 1345 (renderviewjob.cpp:137)
      13  Qt3DCore_debug                	0x0000000102bee5fe Qt3DCore::AspectTaskRunnable::run() + 78 (task.cpp:91)
      14  QtCore_debug                  	0x00000001039cd3a7 QThreadPoolThread::run() + 135 (qthreadpool.cpp:99)
      15  QtCore_debug                  	0x00000001039d54e8 QThreadPrivate::start(void*) + 872 (qthread_unix.cpp:345)
      16  libsystem_pthread.dylib       	0x00007fff9e33599d _pthread_body + 131
      17  libsystem_pthread.dylib       	0x00007fff9e33591a _pthread_start + 168
      18  libsystem_pthread.dylib       	0x00007fff9e333351 thread_start + 13
      

        Attachments

        For Gerrit Dashboard: QTBUG-53783
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            seanharmer Sean Harmer
            Reporter:
            e0150566 Janne Koskinen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes