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

Scene3DRenderer crashes when Scene3DItem is destroyed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.9.0, 5.9.2, 5.9.3, 5.10.0
    • Fix Version/s: 5.9.4
    • Component/s: Qt3D
    • Labels:
      None
    • Environment:
      MSVC 2015 (64 bits) / Windows 8.1 / Windows 10

      Description

      Unloading Scene3D from Loader cause that app crashs (sometime).

      I've investigated the problem in Qt Source and I found that the problem occurs in Scene3DRenderer  (function "render()").

      The Scene3DItem (m_item) is destroyed but the pointer is not set to nullptr. So when Scene3DRenderer try to "render", it crashs at line "const QSize boundingRectSize = m_item->boundingRect().size().toSize();" because m_item points to bad adress memory.

       

      When Scene3DItem  is destroyed, it will be good to stop render thread. I hope my above explanations whill help you to solve this problem.

        Attachments

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

          Activity

            People

            • Assignee:
              mkrus Mike Krus
              Reporter:
              joffreycousin Joffrey Cousin
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes