supertuxkart / stk-code

The code base of supertuxkart
Other
4.4k stars 1.03k forks source link

Segment fault on Exit #5091

Open andreluizgit opened 1 month ago

andreluizgit commented 1 month ago

Get "segment fault" on Exit for release and preview versions.

(Debian in WSL)

Alayan-stk-2 commented 1 month ago

Can't reproduce it with a normal Linux version.

supercatking commented 1 week ago

some finding: build with OpenGL, every is fine. build with GLESv2, see "seg fault" on exit from game. On munu of: options -> graphics -> select_new_resolution -> apply_resolution can also reproduce issue. Root cause: glXXX function is called after SDL_EGL_UnloadLibrary, this means stk is trying to call glXXX functions after shared libraries is unloaded.

Alayan-stk-2 commented 6 days ago

@supercatking Should be fixed with https://github.com/supertuxkart/stk-code/pull/5118 I think?