Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-3990

Changing effect shader and adding/removing effect from scene crashes editor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt 3D Studio 2.5 BETA3
    • Fix Version/s: Qt 3D Studio 2.6
    • Component/s: Editor Application
    • Labels:
      None
    • Commits:
      fa0c4c3eba5059decce0b5fc9f588403796f91c0, 23146bfe5641cb35eb73235f9dddfba99ebfaf76

      Description

      Create a presentation and add an effect. Add the effect to layer. In external editor, modify shader for the effect. If this does not crash editor, then try removing and readding the effect to layer and edit the shader code between adds/removes. Eventually instance refresh triggered by shader code change causes an out of rangecrash:

       

      1 eastl::AssertionFailureFunctionDefault assert.cpp 108 0x7ff6150560d9
      2 eastl::AssertionFailure assert.cpp 118 0x7ff6150560b5
      3 eastl::vector<qt3ds::render::SEffectContext *,qt3ds::foundation::ForwardingAllocator>::operator[] vector.h 847 0x7ff61585b3de
      4 `anonymous namespace'::SEffectSystem::ReleaseEffectContext Qt3DSRenderEffectSystem.cpp 1785 0x7ff6158682c7
      5 `anonymous namespace'::SEffectSystem::UnregisterEffect Qt3DSRenderEffectSystem.cpp 715 0x7ff61586afdf
      6 qt3ds::studio::STranslation::CreateTranslator StudioRendererTranslation.cpp 1734 0x7ff614f46b51
      7 qt3ds::studio::STranslation::GetOrCreateTranslator StudioRendererTranslation.cpp 1856 0x7ff614f479b4
      8 qt3ds::studio::STranslation::GetOrCreateTranslator StudioRendererTranslation.cpp 1837 0x7ff614f47707
      9 qt3ds::studio::STranslation::MarkDirty StudioRendererTranslation.cpp 2178 0x7ff614f398d3
      10 `anonymous namespace'::SRendererImpl::OnImmediateRefreshInstanceSingle StudioRenderer.cpp 647 0x7ff614f2f26b
      11 CMulticaster<IDataModelListener *>::FireEventSource<void (__cdecl IDataModelListener:: *)(qt3dsdm::Qt3DSDMInstanceHandle),qt3dsdm::Qt3DSDMInstanceHandle> Multicaster.h 124 0x7ff61549858d
      12 CMulticaster<IDataModelListener *>::FireEvent<void (__cdecl IDataModelListener:: *)(qt3dsdm::Qt3DSDMInstanceHandle),qt3dsdm::Qt3DSDMInstanceHandle> Multicaster.h 112 0x7ff6154969e1
      13 CDispatch::FireImmediateRefreshInstance Dispatch.cpp 101 0x7ff615492c34
      14 `anonymous namespace'::CDocEditor::OnProjectDirChanged DocumentEditor.cpp 5420 0x7ff615538536

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jakangas Janne Kangas
              Reporter:
              jakangas Janne Kangas
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes