Skip to content

Enabling TileMapLayer debug collision visibility leaks memory #109718

@Rubonnek

Description

@Rubonnek

Tested versions

  • master branch at 0c51ede - Can reproduce.
  • 4.4.1 stable - Cannot reproduce.

System information

Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 15 Aug 2025 16:04:43 +0000 on X11 - X11 display driver, Single-window, 1 monitor - OpenGL 3 (Compatibility) - AMD Radeon RX 6900 XT (radeonsi, navi21, LLVM 20.1.8, DRM 3.64, 6.16.1-arch1-1) - AMD Ryzen 9 5950X 16-Core Processor (32 threads) - 62.68 GiB memory

Issue description

Running a project with the TileMapLayer debug collision visibility enabled will leak memory.

Steps to reproduce

  • Run the MRP.
  • Check the console. You should see the following:
ERROR: 4 RID allocations of type 'N5GLES34MeshE' were leaked at exit.
ERROR: Buffer with GL ID of 34: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 35: leaked 16 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 36: leaked 12 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 37: leaked 64 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 38: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 39: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 40: leaked 16 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 41: leaked 12 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 42: leaked 64 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 43: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 44: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 45: leaked 16 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 46: leaked 12 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 47: leaked 64 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 48: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 49: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 50: leaked 16 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 51: leaked 12 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 52: leaked 64 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)
ERROR: Buffer with GL ID of 53: leaked 32 bytes.
   at: ~Utilities (drivers/gles3/storage/utilities.cpp:108)

Minimal reproduction project (MRP)

TileMapLayerDebugCollisionLeak.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Bad

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions