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

REG->5.14 [Qt3D] Crash when deleting more than one Text2DEntity due to shared SpriteAtlas font (Qt 5.14)

    XMLWordPrintable

Details

    • Linux/X11

    Description

      Hello,
      For a project I managed to update my current version of Qt. I upgraded from Qt5.12 to Qt5.14. I use different Text2DEntity in a 3D scene and I experienced some crashes.

      After some research I was able to find the source of the problem. In fact the QText2DEntity seems to use a shared SpriteAtlas for the font. When the first QText2DEntity is deleted, the texture of the SpriteAtlas is deleted and when the second one is deleted, the destruction search to delete the same texture of the same SpriteAtlas producing a crash.

      You can reproduce the problem with the shared code, if you build it with Qt5.12 each Text2DEntity has his proper QFont, if you build it with Qt5.14, well you'll encounter my problem. (I didn't test with Qt5.13)

       

      Attachments

        1. main.cpp
          2 kB
          Erwan Sénéchal
        2. Qt3D_2.pro
          1 kB
          Erwan Sénéchal

        Activity

          People

            seanharmer Sean Harmer
            erwan Erwan Sénéchal
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: