Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when generating huge random world #33

Closed
hartmark opened this issue May 19, 2024 · 2 comments
Closed

Crash when generating huge random world #33

hartmark opened this issue May 19, 2024 · 2 comments

Comments

@hartmark
Copy link
Contributor

Perhaps it's too early for these kinds of bug reports. But the game crashes if I try to generate a huge world.

1 markus@bernard ~/code/glsmac (git)-[issues/issue-31-arch-build] % gdb --args ./build/bin/GLSMAC --smacpath /data/lutris/sid-meiers-alpha-centauri/drive_c/GOG\ Games/Sid\ Meier\'s\ Alpha\ Centauri/
GNU gdb (GDB) 14.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./build/bin/GLSMAC...
(gdb) r
Starting program: /home/markus/code/glsmac/build/bin/GLSMAC --smacpath /data/lutris/sid-meiers-alpha-centauri/drive_c/GOG\ Games/Sid\ Meier\'s\ Alpha\ Centauri/

This GDB supports auto-downloading debuginfo from the following URLs:
  <https://debuginfod.archlinux.org>
Enable debuginfod for this session? (y or [n]) y
Debuginfod has been enabled.
To make this setting permanent, add 'set debuginfod enabled on' to .gdbinit.
Downloading separate debug info for /lib64/ld-linux-x86-64.so.2
Downloading separate debug info for system-supplied DSO at 0x7ffff7fc7000                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libfreetype.so.6                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libGLEW.so.2.2                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libEGL.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libGL.so.1                                                                                                                                                                                                                     
Downloading separate debug info for /usr/lib/libGLU.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libOpenGL.so.0                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libSDL2-2.0.so.0                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libSDL2_image-2.0.so.0                                                                                                                                                                                                         
Downloading separate debug info for /usr/lib/libossp-uuid.so.16                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/libyaml-cpp.so.0.8                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/libm.so.6                                                                                                                                                                                                                      
Downloading separate debug info for /usr/lib/libc.so.6                                                                                                                                                                                                                      
[Thread debugging using libthread_db enabled]                                                                                                                                                                                                                               
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Downloading separate debug info for /usr/lib/libz.so.1
Downloading separate debug info for /usr/lib/libbz2.so.1.0                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/libpng16.so.16                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libharfbuzz.so.0                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libbrotlidec.so.1                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libGLdispatch.so.0                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/libGLX.so.0                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libjxl.so.0.10                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libjpeg.so.8                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libtiff.so.6                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libavif.so.16                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/libwebpdemux.so.2                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libwebp.so.7                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libglib-2.0.so.0                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libgraphite2.so.3                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libbrotlicommon.so.1                                                                                                                                                                                                           
Downloading separate debug info for /usr/lib/libX11.so.6                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libjxl_cms.so.0.10                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/libhwy.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libbrotlienc.so.1                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libzstd.so.1                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/liblzma.so.5                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libjbig.so.2.1                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libdav1d.so.7                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/librav1e.so.0.7                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libSvtAv1Enc.so.2                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libaom.so.3                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libyuv.so                                                                                                                                                                                                                      
Downloading separate debug info for /usr/lib/libsharpyuv.so.0                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libpcre2-8.so.0                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libxcb.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libXau.so.6                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libXdmcp.so.6                                                                                                                                                                                                                  
[New Thread 0x7fffed0006c0 (LWP 102233)]                                                                                                                                                                                                                                    
<Thread::(MAIN)#72> Starting thread
[New Thread 0x7fffec6006c0 (LWP 102234)]
<Input::SDL2::#12> Initializing SDL2
<Thread::(NETWORK)#73> Starting thread
<Thread::(NETWORK)#73> Thread started, entering main loop
[New Thread 0x7fffebc006c0 (LWP 102235)]
<Thread::(GAME)#74> Starting thread
<Game::#29> Starting thread
<Util::Random::#75> State set to 2584066819:224870502:3269041242:3806834173
<Thread::(GAME)#74> Thread started, entering main loop
Downloading separate debug info for /usr/lib/libdbus-1.so.3
Downloading separate debug info for /usr/lib/libsystemd.so.0                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libcap.so.2                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libgcrypt.so.20                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/liblz4.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libgpg-error.so.0                                                                                                                                                                                                              
<Graphics::OpenGL::#13> Initializing SDL2                                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libXext.so.6
Downloading separate debug info for /usr/lib/libXcursor.so.1                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libXrender.so.1                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libXfixes.so.3                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libXi.so.6                                                                                                                                                                                                                     
Downloading separate debug info for /usr/lib/libXrandr.so.2                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libXss.so.1                                                                                                                                                                                                                    
<Graphics::OpenGL::#13> Creating window                                                                                                                                                                                                                                     
Downloading separate debug info for /usr/lib/libGLX_mesa.so.0
Downloading separate debug info for /usr/lib/libglapi.so.0                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/libdrm.so.2                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libxcb-glx.so.0                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libX11-xcb.so.1                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libxcb-dri2.so.0                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libXxf86vm.so.1                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libxcb-shm.so.0                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libexpat.so.1                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/libxshmfence.so.1                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libxcb-randr.so.0                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libxcb-dri3.so.0                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libxcb-present.so.0                                                                                                                                                                                                            
Downloading separate debug info for /usr/lib/libxcb-sync.so.1                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libxcb-xfixes.so.0                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/dri/radeonsi_dri.so                                                                                                                                                                                                            
Downloading separate debug info for /usr/lib/libLLVM-17.so                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/libsensors.so.5                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libdrm_radeon.so.1                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/libelf.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libdrm_amdgpu.so.1                                                                                                                                                                                                             
Downloading separate debug info for /usr/lib/libdrm_nouveau.so.2                                                                                                                                                                                                            
Downloading separate debug info for /usr/lib/libdrm_intel.so.1                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libffi.so.8                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libedit.so.0                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libncursesw.so.6                                                                                                                                                                                                               
Downloading separate debug info for /usr/lib/libxml2.so.2                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libpciaccess.so.0                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libicuuc.so.75                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libicudata.so.75                                                                                                                                                                                                               
[New Thread 0x7fffe8a006c0 (LWP 102250)]                                                                                                                                                                                                                                    
[New Thread 0x7fffe20006c0 (LWP 102251)]
[New Thread 0x7fffe16006c0 (LWP 102252)]
[New Thread 0x7fffe0c006c0 (LWP 102253)]
[New Thread 0x7fffcfc006c0 (LWP 102254)]
[New Thread 0x7fffcf2006c0 (LWP 102255)]
[New Thread 0x7fffce8006c0 (LWP 102256)]
[New Thread 0x7fffcde006c0 (LWP 102257)]
[New Thread 0x7fffcd4006c0 (LWP 102258)]
[Thread 0x7fffcd4006c0 (LWP 102258) exited]
[Thread 0x7fffcde006c0 (LWP 102257) exited]
[Thread 0x7fffce8006c0 (LWP 102256) exited]
<Graphics::OpenGL::#13> Initializing OpenGL
[New Thread 0x7fffce8006c0 (LWP 102259)]
[New Thread 0x7fffcde006c0 (LWP 102260)]
[New Thread 0x7fffcd4006c0 (LWP 102261)]
Downloading separate debug info for /usr/lib/libEGL_mesa.so.0
Downloading separate debug info for /usr/lib/libgbm.so.1                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libwayland-client.so.0                                                                                                                                                                                                         
Downloading separate debug info for /usr/lib/libwayland-server.so.0                                                                                                                                                                                                         
<Graphics::OpenGL::#13>                                                                                                                                                                                                                                                     
GL Vendor            : AMD
GL Renderer          : AMD Radeon RX 7800 XT (radeonsi, navi32, LLVM 17.0.6, DRM 3.57, 6.9.1-arch1-1)
GL Version (string)  : 4.6 (Compatibility Profile) Mesa 24.0.7-arch1.3
GL Version (integer) : 4.6
GLSL Version         : 4.60
<ShaderProgram::Orthographic::#14> Adding shaders
<ShaderProgram::OrthographicData::#15> Adding shaders
<ShaderProgram::Simple2D::#16> Adding shaders
<ShaderProgram::Font::#17> Adding shaders
[New Thread 0x7fffc7e006c0 (LWP 102262)]
<Graphics::OpenGL::#13> Created FBO FBO::#108
<Audio::SDL2::#21> Initializing SDL2
Downloading separate debug info for /usr/lib/libpulse.so.0
Downloading separate debug info for /usr/lib/pulseaudio/libpulsecommon-17.0.so                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libsndfile.so.1                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libasyncns.so.0                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libogg.so.0                                                                                                                                                                                                                    
Downloading separate debug info for /usr/lib/libvorbisenc.so.2                                                                                                                                                                                                              
Downloading separate debug info for /usr/lib/libFLAC.so.12                                                                                                                                                                                                                  
Downloading separate debug info for /usr/lib/libopus.so.0                                                                                                                                                                                                                   
Downloading separate debug info for /usr/lib/libmpg123.so.0                                                                                                                                                                                                                 
Downloading separate debug info for /usr/lib/libmp3lame.so.0                                                                                                                                                                                                                
Downloading separate debug info for /usr/lib/libvorbis.so.0                                                                                                                                                                                                                 
[New Thread 0x7fffc6e006c0 (LWP 102263)]                                                                                                                                                                                                                                    
[New Thread 0x7fffeb3ff6c0 (LWP 102264)]
[New Thread 0x7fffc64006c0 (LWP 102265)]
<UI::Default::#25> Creating UI
<Graphics::OpenGL::#13> Adding scene [Scene::(UIScene::Simple2D)#110]
<Routine::Overlay::#19> Scene [Scene::(UIScene::Simple2D)#110] added
<Graphics::OpenGL::#13> Adding scene [Scene::(UIScene::Ortho)#112]
<Routine::World::#20> Scene [Scene::(UIScene::Ortho)#112] added
<Graphics::OpenGL::#13> Adding scene [Scene::(UIDebug)#118]
<Routine::Overlay::#19> Scene [Scene::(UIDebug)#118] added
<Scheduler::Simple::#30> Starting task [Task::DebugOverlay::#32]
<Scheduler::Simple::#30> Starting task [Task::Common::#34]
<Loader::FontLoader::FreeType::#9> Loading font "arialnb.ttf:18"
<Loader::TextureLoader::SDL2::#10> Loading texture "interface.pcx"
<Loader::FontLoader::FreeType::#9> Loading font "arialnb.ttf:16"
<Loader::SoundLoader::SDL2::#11> Loading sound "ok.wav"
<Loader::FontLoader::FreeType::#9> Loading font "arialn.ttf:18"
<Loader::TextureLoader::SDL2::#10> Loading texture "Jackal.pcx"
<Loader::FontLoader::FreeType::#9> Loading font "arialnb.ttf:20"
<Loader::FontLoader::FreeType::#9> Loading font "arialnb.ttf:17"
<Loader::TextureLoader::SDL2::#10> Loading texture "Icons.pcx"
<Scheduler::Simple::#30> Starting task [Task::Intro::#66]
<Loader::TextureLoader::SDL2::#10> Loading texture "logo.pcx"
<Thread::(MAIN)#72> Thread started, entering main loop
<Util::Random::#564> State set to 1260883332:2561757668:248277936:2656902014
<Scheduler::Simple::#30> Removing task Task::Intro::#66
<Scheduler::Simple::#30> Stopping task [Task::Intro::#66]
<Scheduler::Simple::#30> Adding task Task::MainMenu::#543
<Scheduler::Simple::#30> Starting task [Task::MainMenu::#543]
<Account::#582> Loaded local account 261be037-0110-4d64-9525-ee829fa95f82
<Loader::TextureLoader::SDL2::#10> Loading texture "openinga.pcx"
<Loader::SoundLoader::SDL2::#11> Loading sound "opening menu.wav"
<Loader::FontLoader::FreeType::#9> Loading font "arialnb.ttf:14"
<Loader::TextureLoader::SDL2::#10> Loading texture "palette.pcx"
<Loader::TextureLoader::SDL2::#10> Loading texture "console_x.pcx"
<Loader::SoundLoader::SDL2::#11> Loading sound "menu out.wav"
<Loader::TextureLoader::SDL2::#10> Loading texture "S2L2C2.pcx"
<Audio::SDL2::#21> Adding sound actor Entity::Actor::Sound::(UI::SoundEffect)#621
<Audio::SDL2::#21> Adding sound actor Entity::Actor::Sound::(UI::SoundEffect)#909
<Audio::SDL2::#21> Removing sound actor Entity::Actor::Sound::(UI::SoundEffect)#909
<Audio::SDL2::#21> Adding sound actor Entity::Actor::Sound::(UI::SoundEffect)#50104
<Audio::SDL2::#21> Removing sound actor Entity::Actor::Sound::(UI::SoundEffect)#50104
<Audio::SDL2::#21> Adding sound actor Entity::Actor::Sound::(UI::SoundEffect)#83923
<Audio::SDL2::#21> Removing sound actor Entity::Actor::Sound::(UI::SoundEffect)#83923
<Audio::SDL2::#21> Adding sound actor Entity::Actor::Sound::(UI::SoundEffect)#105529
<Audio::SDL2::#21> Removing sound actor Entity::Actor::Sound::(UI::SoundEffect)#105529
<Audio::SDL2::#21> Adding sound actor Entity::Actor::Sound::(UI::SoundEffect)#113965
<Audio::SDL2::#21> Removing sound actor Entity::Actor::Sound::(UI::SoundEffect)#113965
<State::#575> adding player: Player
<State::#575> adding CID 0 for slot 0
<Account::#122670> Loaded local account 261be037-0110-4d64-9525-ee829fa95f82
<Scheduler::Simple::#30> Starting task [Task::Game::#122883]
<Loader::TextureLoader::SDL2::#10> Loading texture "ter1.pcx"
<Util::Random::#122993> State set to 1503289919:4201350284:3298487233:2456604306
<Game::#29> Initializing game
<Game::#29> Game seed: 2584066819:224870502:3269041242:3806834173
<Loader::TextureLoader::SDL2::#10> Loading texture "texture.pcx"
<Util::FS> Writing file: /home/markus/.local/share/glsmac/debug/lastmap.seed
<Map::#123380> Generating map of size [ 180 90 ]
<Tiles::#123465> Initializing tiles ( 180 x 90 )
<MapGenerator::SimplePerlin::#123463> Generating elevations ( 180 x 90 )
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 1750
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 1313
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 875
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 765
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 765
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Setting land amount to 0.400000
<MapGenerator::SimplePerlin::#123463> Raising all tiles by 656
<MapGenerator::SimplePerlin::#123463> Checking/fixing extreme slopes
<MapGenerator::SimplePerlin::#123463> Multiplying all tiles by 1.000000
<MapGenerator::SimplePerlin::#123463> Generating details ( 180 x 90 )
<MapGenerator::SimplePerlin::#123463> Adding fungus to 5649 tiles
<MapGenerator::SimplePerlin::#123463> Adding moisture to 2806.500000 tiles
<MapGenerator::SimplePerlin::#123463> Final land amount: 0.233704
<MapGenerator::SimplePerlin::#123463> Final elevations range: -3500 3500
<MapGenerator::SimplePerlin::#123463> Final fungus amount: 0.750000
<MapGenerator::SimplePerlin::#123463> Final moisture amount: 0.750000
<Map::#123380> Map generation took 1106ms
<Map::#123380> Saving map to /home/markus/.local/share/glsmac/debug/lastmap.gsm
<Util::FS> Writing file: /home/markus/.local/share/glsmac/debug/lastmap.gsm
<Tiles::#123465> Validating map
<Map::#123380> Initializing map
<MapState::#132771> Linking tile states
<Map::#123380> Loading 8100 tiles
<Map::#123380> Fixing normals
<Task::Game::#122883> Initializing game
<Graphics::OpenGL::#13> Adding scene [Scene::(Game)#160570]
<Routine::World::#18> Scene [Scene::(Game)#160570] added
<Task::Game::#122883> Sprites count: 12
<Task::Game::#122883> Sprites instances: 325
<Task::Game::#122883> Creating instanced sprite actor: MineralsBonusLand [ 304 316 ]
<Task::Game::#122883> Creating instanced sprite actor: NutrientBonusSea [ 1 253 ]
<Task::Game::#122883> Creating instanced sprite actor: EnergyBonusSea [ 102 379 ]
<Task::Game::#122883> Creating instanced sprite actor: NutrientBonusSea [ 103 253 ]
<Task::Game::#122883> Creating instanced sprite actor: NutrientBonusLand [ 203 253 ]
<Task::Game::#122883> Creating instanced sprite actor: NutrientBonusLand [ 304 253 ]
<Task::Game::#122883> Creating instanced sprite actor: EnergyBonusLand [ 304 379 ]
<Task::Game::#122883> Creating instanced sprite actor: EnergyBonusSea [ 1 379 ]
<Task::Game::#122883> Creating instanced sprite actor: MineralsBonusLand [ 203 316 ]
<Task::Game::#122883> Creating instanced sprite actor: EnergyBonusLand [ 203 379 ]
<Task::Game::#122883> Creating instanced sprite actor: MineralsBonusSea [ 102 316 ]
<Task::Game::#122883> Creating instanced sprite actor: MineralsBonusSea [ 1 316 ]
<Loader::TextureLoader::SDL2::#10> Loading texture "console2_A.pcx"
<Loader::TextureLoader::SDL2::#10> Loading texture "console_x2_a.pcx"
<Loader::SoundLoader::SDL2::#11> Loading sound "amenu2.wav"
<Loader::SoundLoader::SDL2::#11> Loading sound "mmenu.wav"
<Loader::FontLoader::FreeType::#9> Loading font "arialn.ttf:14"
<Loader::FontLoader::FreeType::#9> Loading font "arialnb.ttf:15"
<Loader::TextureLoader::SDL2::#10> Loading texture "space_sm.pcx"
<Loader::FontLoader::FreeType::#9> Loading font "arialn.ttf:28"
<Loader::SoundLoader::SDL2::#11> Loading sound "CPU please don't go.wav"
<UIObject::UIContainer::#162020> Setting overflow limits for UIObject::UIContainer::Panel::#162021
<UIObject::UIContainer::UI::MiddleAreaPage::Toolbar::#162216> Selecting tool: Elevations
<UIObject::UIContainer::UI::MiddleAreaPage::Toolbar::#162216> Selecting brush: Dot
<UIObject::UIContainer::UI::Menu::GameMenu::#164680> Creating side menu
<UIObject::UIContainer::UI::Menu::EditMapMenu::#164747> Creating side menu
<UIObject::UIContainer::UI::Menu::LeftMenu::#164677> Creating side menu
<UIObject::UIContainer::UI::Menu::RightMenu::#164861> Creating side menu
<Scene::(Game)#160570> Setting 3 world instances
<Task::Game::#122883> Requesting minimap texture
<Entity::Actor::Mesh::(MapTerrain)#160575> Requesting capture-to-texture
<Scene::(Game)#160570> Setting 3 world instances
<Task::Game::#122883> Canceling minimap texture request
<Task::Game::#122883> Requesting minimap texture
<Entity::Actor::Mesh::(MapTerrain)#160575> Requesting capture-to-texture
<Scheduler::Simple::#30> Removing task Task::MainMenu::#543
<Scheduler::Simple::#30> Stopping task [Task::MainMenu::#543]
<Audio::SDL2::#21> Removing sound actor Entity::Actor::Sound::(UI::SoundEffect)#621
<Graphics::OpenGL::#13> FATAL: Error loading texture
terminate called after throwing an instance of 'std::runtime_error'
  what():  Error loading texture

Thread 2 "GLSMAC" received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffed0006c0 (LWP 102233)]
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;                                                                                                                                                                                     
(gdb) bt
#0  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1  0x00007ffff74a8eb3 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78
#2  0x00007ffff7450a30 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#3  0x00007ffff74384c3 in __GI_abort () at abort.c:79
#4  0x00007ffff7697b0c in __gnu_cxx::__verbose_terminate_handler () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/vterminate.cc:95
#5  0x00007ffff76adf1a in __cxxabiv1::__terminate (handler=<optimized out>) at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:48
#6  0x00007ffff769750a in std::terminate () at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_terminate.cc:58
#7  0x00007ffff76ae1d6 in __cxxabiv1::__cxa_throw (obj=<optimized out>, tinfo=0x55555598bf80 <typeinfo for std::runtime_error@GLIBCXX_3.4>, dest=0x7ffff76c4c10 <std::runtime_error::~runtime_error()>) at /usr/src/debug/gcc/gcc/libstdc++-v3/libsupc++/eh_throw.cc:98
#8  0x00005555556ae8f1 in graphics::opengl::OpenGL::LoadTexture (this=0x7fffffffcda0, texture=0x7fffd8a04e90) at /home/markus/code/glsmac/src/graphics/opengl/OpenGL.cpp:467
#9  0x0000555555696298 in graphics::opengl::Mesh::LoadTexture (this=0x7fffe4b13520) at /home/markus/code/glsmac/src/graphics/opengl/actor/Mesh.cpp:123
#10 0x00005555556a1ab1 in graphics::opengl::Scene::Update (this=0x7fff9c186080) at /home/markus/code/glsmac/src/graphics/opengl/Scene.cpp:139
#11 0x000055555568bb87 in graphics::opengl::routine::World::Iterate (this=0x5555559b5000) at /home/markus/code/glsmac/src/graphics/opengl/routine/World.cpp:31
#12 0x00005555556aca85 in graphics::opengl::OpenGL::Iterate (this=0x7fffffffcda0) at /home/markus/code/glsmac/src/graphics/opengl/OpenGL.cpp:207
#13 0x00005555555840a3 in base::Thread::Run (this=0x555555a43ee0) at /home/markus/code/glsmac/src/base/Thread.cpp:84
#14 0x0000555555586452 in std::__invoke_impl<void, void (base::Thread::*)(), base::Thread*> (__f=@0x5555559b4ea0: (void (base::Thread::*)(class base::Thread * const)) 0x555555583d28 <base::Thread::Run()>, __t=@0x5555559b4e98: 0x555555a43ee0)
    at /usr/include/c++/13.2.1/bits/invoke.h:74
#15 0x00005555555863b1 in std::__invoke<void (base::Thread::*)(), base::Thread*> (__fn=@0x5555559b4ea0: (void (base::Thread::*)(class base::Thread * const)) 0x555555583d28 <base::Thread::Run()>) at /usr/include/c++/13.2.1/bits/invoke.h:96
#16 0x0000555555586321 in std::thread::_Invoker<std::tuple<void (base::Thread::*)(), base::Thread*> >::_M_invoke<0ul, 1ul> (this=0x5555559b4e98) at /usr/include/c++/13.2.1/bits/std_thread.h:292
#17 0x00005555555862da in std::thread::_Invoker<std::tuple<void (base::Thread::*)(), base::Thread*> >::operator() (this=0x5555559b4e98) at /usr/include/c++/13.2.1/bits/std_thread.h:299
#18 0x00005555555862be in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (base::Thread::*)(), base::Thread*> > >::_M_run (this=0x5555559b4e90) at /usr/include/c++/13.2.1/bits/std_thread.h:244
#19 0x00007ffff76e0c84 in std::execute_native_thread_routine (__p=0x5555559b4e90) at /usr/src/debug/gcc/gcc/libstdc++-v3/src/c++11/thread.cc:104
#20 0x00007ffff74a6ded in start_thread (arg=<optimized out>) at pthread_create.c:447
#21 0x00007ffff752a0dc in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
(gdb) 

@hartmark
Copy link
Contributor Author

hartmark commented May 19, 2024

I did think I have had this issue before :) And then I realized it's reported in #21

I have however a new GPU.

% lspci | grep -i vga                                                                                                               
0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 32 [Radeon RX 7700 XT / 7800 XT] (rev c8)

@afwbkbc
Copy link
Owner

afwbkbc commented May 20, 2024

Duplicate of #21

@afwbkbc afwbkbc marked this as a duplicate of #21 May 20, 2024
@afwbkbc afwbkbc closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants