I found a way to reproduce this after a full rebuild (rm -rf build/) on r3366:
ulimit -c unlimited; mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/ --auto-test=1,, --verbose 2>&1 | tee ~/.megaglest/stdouterr.log
What matters here is the --auto-test=1,, option which makes the game cycle through scenarios, switching to the next scenario after just one second. Here, when the game switches after the second or third scenario, it will crash with:
Game ending with stats:
-----------------------
Description: Tough Duel
Faction count: 2
Game duration (mins): 0
Max Concurrent Units: 18
Total EndGame Concurrent Unit Count: 18
player #0 tomreyn (Human) faction: Magic Team: 0 victory: 0 # kills: 0 # enemy kills: 0 # deaths: 0
# units produced: 0 # resources harvested: 0
player #1 CPU (Ultra) (CPU (Ultra) x 1.5) faction: Tech Team: 1 victory: 0 # kills: 0 # enemy kills: 0 # deaths: 0
# units produced: 0 # resources harvested: 0
-----------------------
In [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/platform_util.cpp::getStackTrace Line: 180]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 355]
Error saved to logfile [/home/tomreyn/.megaglest/error.log]
terminate called after throwing an instance of 'Shared::Platform::megaglest_runtime_error'
what(): OpenGL error #1281 [0x501] : [invalid value] at file: [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp], line: 7316
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x9b9d56] line: 246
mk/linux/megaglest() [0x5deae9] address [0x5deae9]
mk/linux/megaglest:Glest::Game::Renderer::reset3dMenu() address [0x5e8ed3] line: 570
mk/linux/megaglest:Glest::Game::BattleEnd::render() address [0x659642] line: 130
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x668e84] line: 411
mk/linux/megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool) address [0x657755] line: 407
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6491df] line: 4620
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6535e6] line: 4751
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fd24c70a76d] line: 0
mk/linux/megaglest() [0x4b56f9] address [0x4b56f9]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 368] program = 0xe2a450 gameInitialized = 1 msg [OpenGL error #1281 [0x501] : [invalid value] at file: [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp], line: 7316
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x9b9d56] line: 246
mk/linux/megaglest() [0x5deae9] address [0x5deae9]
mk/linux/megaglest:Glest::Game::Renderer::reset3dMenu() address [0x5e8ed3] line: 570
mk/linux/megaglest:Glest::Game::BattleEnd::render() address [0x659730] line: 165
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x668e84] line: 411
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6500d4] line: 4571
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6535e6] line: 4751
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fd24c70a76d] line: 0
mk/linux/megaglest() [0x4b56f9] address [0x4b56f9]
]
[2012-05-28 14:01:13] *ERROR* In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 369] [OpenGL error #1281 [0x501] : [invalid value] at file: [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/graphics/renderer.cpp], line: 7316
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x9b9d56] line: 246
mk/linux/megaglest() [0x5deae9] address [0x5deae9]
mk/linux/megaglest:Glest::Game::Renderer::reset3dMenu() address [0x5e8ed3] line: 570
mk/linux/megaglest:Glest::Game::BattleEnd::render() address [0x659730] line: 165
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x668e84] line: 411
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6500d4] line: 4571
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6535e6] line: 4751
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fd24c70a76d] line: 0
mk/linux/megaglest() [0x4b56f9] address [0x4b56f9]
] gameInitialized = 1, program = 0xe2a450
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 374]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 383]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 392]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 398]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 401]
In [/home/tomreyn/SCM/megaglest-trunk/source/glest_game/main/main.cpp::handleRuntimeError Line: 403]
In [/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/platform/sdl/platform_util.cpp::getStackTrace Line: 180]
Note that this is --verbose output already. Would a debug log be good to have?
Is anyone else able to reproduce this?