-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
System: Ubuntu 25.0
Compiled from source with prefix = /opt/Snake
How to reproduce:
- run the game with gdb
- exit.
You get:
NFO: TEXTURE: [ID 15] Texture loaded successfully (64x64 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 16] Texture loaded successfully (64x64 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 17] Texture loaded successfully (64x64 | R8G8B8A8 | 1 mipmaps)
INFO: TEXTURE: [ID 2] Unloaded texture data from VRAM (GPU)
INFO: SHADER: [ID 3] Default shader unloaded successfully
INFO: TEXTURE: [ID 1] Default texture unloaded successfully
INFO: Window closed successfully
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff78eff60 in ?? ()
(gdb) where
#0 0x00007ffff78eff60 in ?? ()
#1 0x000055555558d656 in rlUnloadTexture (id=15) at /home/giupo/projects/Snake/build/_deps/raylib-src/src/rlgl.h:3575
#2 0x000055555566aeea in UnloadTexture (texture=...) at /home/giupo/projects/Snake/build/_deps/raylib-src/src/rtextures.c:4298
#3 0x0000555555579fc5 in FoodRender::~FoodRender (this=0x5555561bc350) at /home/giupo/projects/Snake/source/render/private/RenderFood.cpp:57
#4 0x000055555557a042 in FoodRender::~FoodRender (this=0x5555561bc350) at /home/giupo/projects/Snake/source/render/private/RenderFood.cpp:60
#5 0x0000555555565f1e in std::default_delete<FoodRender>::operator() (this=0x7fffffffd950, __ptr=0x5555561bc350) at /usr/include/c++/15/bits/unique_ptr.h:92
#6 0x0000555555564771 in std::unique_ptr<FoodRender, std::default_delete<FoodRender> >::~unique_ptr (this=0x7fffffffd950)
at /usr/include/c++/15/bits/unique_ptr.h:398
#7 0x000055555555fd95 in Game::~Game (this=0x7fffffffd910) at /home/giupo/projects/Snake/source/app/Game/Game.cpp:209
#8 0x000055555555f49f in main () at /home/giupo/projects/Snake/source/app/main.cpp:37
Maybe it's the unique_ptr in the Game class that try to unload a texture when the OpenGL is already gone.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels