Latest Posts

Topic: Truncated ERROR - FATAL EXCEPTION output makes debugging harder

Kontorotsui
Avatar
Topic Opener
Joined: 2021-05-20, 15:35
Posts: 40
Ranking
Pry about Widelands
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
Avatar
Joined: 2017-01-17, 18:07
Posts: 2053
OS: Debian Testing
Version: Latest master
Ranking
One Elder of Players
Location: 0x55555d3a34c0
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
Avatar
Joined: 2013-02-18, 20:48
Posts: 2546
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2024-09-03, 16:56

A link to an explanations was already posted.

Closing this thread.


Top Quote