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