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

Qt3D crashes when adding layer component to entity dynamically

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.2, 5.13.1, 5.14.0 Alpha
    • 5.12
    • Qt3D
    • None
    • 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

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

          Activity

            People

              dragly Svenn-Arne Dragly
              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