Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
5.14.0, 6.4.2
-
-
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)