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

Qt3D crashes when adding layer component to entity dynamically

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.12
    • Fix Version/s: 5.12.2, 5.13.1, 5.14.0 Alpha
    • Component/s: Qt3D
    • Labels:
      None
    • Commits:
      3de900a10c6fd051ba54727be2fd1fe47ed10481 (qt/qt3d/5.12.2)

      Description

      The backend jobs are using node id's, which have not yet been created in the backend. Trying to access these nodes using nodeManagers return nullptr and if the jobs are not checking for this they crash.

      In this use case we are creating new nodes dynamically and some of the nodes are being created(and added to the node managers) while others have not yet been created. In this case it seems that the entity is created first and also the scene change adding layer to the entity is processed, but the layer node is not yet created. Somehow these new entities are processed with the jobs before the layer nodes are created so the jobs crash, updateentitylayerjob in this case. I added nullptr check to the job, after which materialgathererjob also crashed in addParametersForIds.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              dragly Svenn-Arne Dragly
              Reporter:
              anmaatta Antti Määttä
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes