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
    • 4b8b02c20c56f8a0684c056148353e91d9df568a 39e593232f960d8d6e08c97a5a16305524c5fa23 b1a135c547f38db0b2ce6b7bc4c4cccc43ef87d3

    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. Qt3D_2.pro
          1 kB
        2. main.cpp
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            erwan Erwan Sénéchal
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes