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

Adding a material to an entity crashes the renderer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Duplicate
    • Affects Version/s: 5.6.0 Beta
    • Fix Version/s: 5.7.0 RC
    • Component/s: Qt3D
    • Environment:
      windows 7, 64bit, Intel HD 4600 GPU. Qt3D 5.6 branch, SHA: d3952b92157f6b56ed08ced5cd491f1f117c64eb

      Description

      Application crashes if I add a new QPhongMaterial component to an entity that previously didn't have a material. If the material is added before anything is rendered, it works, but if the material is added later, it crashes.

      Shadow-map-qml example also crashes at startup with a similar stack trace, so it probably suffers from the same issue:

      1	RegisterProcTableCallback	ig75icd64		0x7fee07ead40	
      2	RegisterProcTableCallback	ig75icd64		0x7fee07ed5d1	
      3	DrvSetLayerPaletteEntries	ig75icd64		0x7fee09ec986	
      4	DrvSetLayerPaletteEntries	ig75icd64		0x7fee0986575	
      5	DrvSetLayerPaletteEntries	ig75icd64		0x7fee09ed14a	
      6	DrvSetLayerPaletteEntries	ig75icd64		0x7fee09ed691	
      7	QOpenGLFunctions_4_3_Core::glDrawElementsBaseVertex	qopenglfunctions_4_3_core.h	1942	0x7fee2475c50	
      8	Qt3DRender::Render::GraphicsHelperGL4::drawElements	graphicshelpergl4.cpp	113	0x7fee1617296	
      9	Qt3DRender::Render::GraphicsContext::drawElements	graphicscontext.cpp	662	0x7fee15ed11f	
      10	Qt3DRender::Render::Renderer::executeCommands	renderer.cpp	926	0x7fee152cb65	
      11	Qt3DRender::Render::Renderer::submitRenderViews	renderer.cpp	701	0x7fee152dd43	
      12	Qt3DRender::Render::Renderer::doRender	renderer.cpp	536	0x7fee152baf3	
      13	Qt3DRender::Render::Renderer::render	renderer.cpp	530	0x7fee152baca	
      14	Qt3DRender::Render::RenderThread::run	renderthread.cpp	93	0x7fee15234b1	
      15	QThreadPrivate::start	qthread_win.cpp	369	0x66e433f8	
      16	_callthreadstartex	threadex.c	376	0x7fee1a7a105	
      17	_threadstartex	threadex.c	359	0x7fee1a7a357	
      18	BaseThreadInitThunk	kernel32		0x777859dd	
      19	RtlUserThreadStart	ntdll		0x779ba631	
      

        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:
              e0348803 Miikka Heikkinen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes