Double free or corruption error on removeAllWidgets()

Started by SpaceKotik, 06 May 2020, 01:17:01

SpaceKotik

Hi there, I'm getting "double free or corruption (out)" error after trying to call removeAllWidgets() or close the program. The code is absolutely like the minimal code in tutorial with adding a single button.
Also I get these warning while compiling:
/usr/bin/ld: warning: libsfml-graphics.so.2.4, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libtgui.so, may conflict with libsfml-graphics.so.2.5
/usr/bin/ld: warning: libsfml-window.so.2.4, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libtgui.so, may conflict with libsfml-window.so.2.5
/usr/bin/ld: warning: libsfml-system.so.2.4, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libtgui.so, may conflict with libsfml-system.so.2.5

texus

It seems like TGUI links to some SFML libraries installed on your pc, but you are using different SFML libraries in your project. I'm guessing you installed TGUI from the PPA?
If you don't need SFML 2.5 and would be able to use SFML 2.4 then maybe it is enough to uninstall the 2.5 libraries.
Alternatively, you should probably uninstall the TGUI package and build TGUI yourself (so that it uses the same SFML libraries as you use in your project)