Skip to content

Crash when trying to start the game with Huge Random map #21

@tsunamistate

Description

@tsunamistate

Environment:

  • OS: Windows 11, Ubuntu 22.04.2 via WSL
  • Compiler: MSVC 17.7.4, GCC 11.4.0 on WSL

Steps to reproduce:

  1. Start a GLSMAC game with proper path to SMAC resources
  2. In main menu, click "Start Game"
  3. Click "Make Random Map" ⇒ "Huge Planet"
  4. Choose any difficulty
  5. Click "Start with standard rules"
  6. Wait until map generation completes

Actual result:
The game crashes to desktop on both Windows and Linux.

unknown_2023.09.29-22.53.mp4

Linux release build shows the following logs:

terminate called after throwing an instance of 'std::runtime_error'
  what():  OpenGL error occured in render loop, aborting
Aborted

Debug build shows A breakpoint instruction (__debugbreak() statement or a similar call) was executed in GLSMAC.exe.
with call stack pointing to

glGenerateMipmap( GL_TEXTURE_2D );

Debug logs have the following error:

Exception thrown at 0x00007FFE91E84FFC in GLSMAC.exe: Microsoft C++ exception: std::runtime_error at memory location 0x00000069065FEC58.

Expected result:
Game successfully starts with newly generated map

Note: Game only crashes after generating "Huge Planet" map, "Large Planet" and lower don't crash

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions