Latest Posts

Topic: LeakSanitizer

Crisis
Avatar
Topic Opener
Joined: 2025-02-20, 17:39
Posts: 13
Ranking
Pry about Widelands
Posted at: Today 18:40

Hello if i start widelands in the terminalconsole it closes with a LeakSanitizer remark. i dont see it here and perhaps its an SDL thing to mention it. And its NOT a big bug.

[01:37:22.788 real] WARNING: DescriptionManager::register_description palm_syargus_tropic_mature: add-on entities should define '__skip_if_exists' or '__replace_if_exists'
[01:37:22.788 real] WARNING: DescriptionManager::register_description palm_syargus_tropic_old: add-on entities should define '__skip_if_exists' or '__replace_if_exists'
[01:37:22.788 real] WARNING: DescriptionManager::register_description palm_syargus_tropic_pole: add-on entities should define '__skip_if_exists' or '__replace_if_exists'
[01:37:22.788 real] WARNING: DescriptionManager::register_description palm_syargus_tropic_sapling: add-on entities should define '__skip_if_exists' or '__replace_if_exists'
[01:37:22.788 real] WARNING: The registry file addons/tropics.wad/immovables/trees/syagruspalm/register.lua
[01:37:22.788 real] WARNING:     defines multiple (4) units: palm_syargus_tropic_mature palm_syargus_tropic_old palm_syargus_tropic_pole palm_syargus_tropic_sapling
[01:37:22.788 real] WARNING:     Defining multiple units in one file is error-prone. Every unit should be defined in a registry directory of its own.
[01:37:22.790 real] WARNING: The registry file addons/tropics.wad/terrains/register.lua
[01:37:22.790 real] WARNING:     defines multiple (18) units: tropics_beach tropics_fen1 tropics_fen2 tropics_forest_mountain1 tropics_forest_mountain2 tropics_forest_mountain3 tropics_mountain1 tropics_mountain2 tropics_mountain3 tropics_rocky_soil1 tropics_rocky_soil2 tropics_soil1 tropics_soil2 tropics_soil3 tropics_soil4 tropics_swamp tropics_water1 tropics_water2
[01:37:22.790 real] WARNING:     Defining multiple units in one file is error-prone. Every unit should be defined in a registry directory of its own.
[01:37:27.513 real] INFO: SoundHandler: Closing 1 time, 22050 Hz, format 32784, 2 channels
[01:37:27.513 real] INFO: SoundHandler: SDL_AUDIODRIVER pulseaudio

=================================================================
==12304==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 160 byte(s) in 1 object(s) allocated from:
    #0 0x7f00cd087a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
    #1 0x7f00cad57d3f  (/lib/x86_64-linux-gnu/libSDL2-2.0.so.0+0xf7d3f)

SUMMARY: AddressSanitizer: 160 byte(s) leaked in 1 allocation(s).


Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 2091
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: Today 19:18

Hi, this leak is known and comes indeed from from internals of SDL or the graphics driver. There's nothing we can do about it in Widelands unfortunately.


Top Quote