Topic: Truncated ERROR - FATAL EXCEPTION output makes debugging harder
Kontorotsui Topic Opener |
Posted at: 2024-07-22, 12:47
Hello, I'm having troubles debugging my modifications to a tribe LUA, because the output error has the stack trace truncated. As you see below, just when the error is displayed the output is cut. I'm pretty sure this is some limit in the error output length, can it be fixed? This happens in the Widelands version 1.2~rc1 Release but I had this problem since previous versions. The fix should be pretty easy as it only needs needs to increase the output length. Here is an example of what I get: [00:08:22.384 real] ERROR: ############################## [00:08:22.384 real] ERROR: FATAL EXCEPTION: Error while loading tribe 'europeans': [/run/build/Widelands/src/scripting/lua_errors.cc:21] tribe europeans: Failed adding building 'europeans_stonemine_basic': [/run/build/Widelands/src/scripting/lua_errors.cc:21] [/run/build/Widelands/src/scripting/lua_errors.cc:21] [/run/build/Widelands/src/scripting/lua_errors.cc:21] [/run/build/Widelands/src/scripting/lua_errors.cc:21] [/run/build/Widelands/src/scripting/lua_errors.cc:21] europeans_stonemine_level_4: Error in productionsite program mine_granite: Erro [00:08:22.384 real] ERROR: ############################## Thanks. Top Quote |
Nordfriese |
Posted at: 2024-07-22, 13:11
Same problem as https://www.widelands.org/forum/topic/5809/ – these messages are generated by a third-party library, so this is not easy at all. Top Quote |
kaputtnik |
Posted at: 2024-09-03, 16:56
A link to an explanations was already posted. Closing this thread. Top Quote |