Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.2.2, 6.3.1
-
None
Description
The memory usage of a program slowly increase when changing the texture of an object with a TextureMaterial.
An example program with a rotating sphere highlight the issue. The only special thing done is alternating the texture source between two images on each frame.
A valgrind show that some leaks occur with memory allocated in the RHI GL backend.
==30772== 11,782,400 (10,874,304 direct, 908,096 indirect) bytes in 3,132 blocks are definitely lost in loss record 2,169 of 2,169
==30772== at 0x4846DEF: operator new(unsigned long) (vg_replace_malloc.c:342)
==30772== by 0x55DF4F3: QRhiGles2::createShaderResourceBindings() (in /builds/mytoolchain
/usr/lib/libQt6Gui.so.6.3.1)
==30772== by 0x19E9BEC8: ??? (in /builds/mytoolchain/usr/lib/plugins/renderers/librhirenderer.so)