Latest Posts

Topic: Widelands segfault

LeightonMan
Avatar
Topic Opener
Joined: 2017-05-19, 14:17
Posts: 41
Ranking
Pry about Widelands
Posted at: 2017-10-24, 14:28

Hi all, Not sure what to do with this one but I would like to help :-) Well into a game using trident of fire map the game unexpectedly crashes and the game window disappears. I've narrowed down when it happens and managed to save the game about 10 secs before the crash. On my system it can be reliably repeated by simply loading the saved game and waiting! System is a reasonably up-to-date (a few days since last update) Arch Linux 32 bit and, this morning, I built widelands-bzr from the repository so I assume I'm running the latest version ? I've run the game from the command line and saved the output - Quite a few warnings but no errors I can see. What should I do next??


Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-10-24, 14:47

Hi,

can you get backtrace based on https://wl.widelands.org/wiki/How%20to%20Write%20a%20Good%20Bug%20Report/#6-getting-a-backtrace-for-a-crash

Try the one-liner first


Top Quote
LeightonMan
Avatar
Topic Opener
Joined: 2017-05-19, 14:17
Posts: 41
Ranking
Pry about Widelands
Posted at: 2017-10-24, 14:55

OK got it. Where do I send it? and, possibly how? I'm well out of my comfort zone!


Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-10-24, 15:00

Only about first 10 lines of backtrace is relevant, you can copy it there.....

If you use the oneliner, all output will be redirected there but only last 20-50 lines of that file is relevant (is backtrace)..... should be recognizable for your...


Top Quote
LeightonMan
Avatar
Topic Opener
Joined: 2017-05-19, 14:17
Posts: 41
Ranking
Pry about Widelands
Posted at: 2017-10-24, 15:12

Thanks, here's the output:

Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
0x006c6bd3 in Widelands::PartiallyFinishedBuilding::request_builder_callback(Widelands::Game&, Widelands::Re
quest&, unsigned char, Widelands::Worker*, Widelands::PlayerImmovable&) ()
#0 0x006c6bd3 in Widelands::PartiallyFinishedBuilding::request_builder_callback(Widelands::Game&, Widelands
::Request&, unsigned char, Widelands::Worker*, Widelands::PlayerImmovable&) ()
#1 0x006d79c7 in Widelands::Ship::ship_update_idle(Widelands::Game&, Widelands::Bob::State&) ()
#2 0x006d8879 in Widelands::Ship::ship_update(Widelands::Game&, Widelands::Bob::State&) ()
#3 0x00694874 in Widelands::Bob::do_act(Widelands::Game&) ()
#4 0x006a7d75 in Widelands::CmdAct::execute(Widelands::Game&) ()
#5 0x00735be5 in Widelands::CmdQueue::run_queue(int, unsigned int&) ()
#6 0x0066247c in Widelands::Game::think() ()
#7 0x0081c3ea in InteractiveBase::think() ()
#8 0x0082a552 in InteractivePlayer::think() ()
#9 0x007b5f65 in UI::Panel::do_think() ()
#10 0x007b6f75 in UI::Panel::do_run() ()
#11 0x006676d3 in Widelands::Game::run(UI::ProgressWindow*, Widelands::Game::StartGameType, std::__cxx11::ba
sic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, std::__cxx11::basic_string<cha
r, std::char_traits<char>, std::allocator<char> > const&) ()
#12 0x00669ecc in Widelands::Game::run_load_game(std::__cxx11::basic_string<char, std::char_traits<char>, st
d::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&) ()
#13 0x005b3c4f in WLApplication::load_game() ()
#14 0x005b538a in WLApplication::mainmenu_singleplayer() ()
#15 0x005b582e in WLApplication::mainmenu() ()
#16 0x005b5eab in WLApplication::run() ()
#17 0x0057412b in main ()

Edited: 2017-10-25, 10:26

Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-10-24, 18:42

Oh, please change markup to the bbcode and add 4 spaces in begining of every line. Also, what I miss here are files and row numbers ...


Top Quote
WorldSavior
Avatar
Joined: 2016-10-15, 03:10
Posts: 2094
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-10-24, 18:48

If you'd click on "quote", it might help you face-wink.png


Wanted to save the world, then I got widetracked

Top Quote
Tibor

Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-10-24, 19:23

WorldSavior wrote:

If you'd click on "quote", it might help you face-wink.png

Indeed, but I still cannot see files and line numbers there...


Top Quote
WorldSavior
Avatar
Joined: 2016-10-15, 03:10
Posts: 2094
OS: Linux
Version: Recent tournament version
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-10-24, 19:31

Ok...


Wanted to save the world, then I got widetracked

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-10-24, 20:29

Here it is with code markup. Since there are no line number, I expect that this was run with a release build.

The savegame would still help, can you attach it to a bug on Launchpad? https://bugs.launchpad.net/widelands/

Thread 1 "widelands" received signal SIGSEGV, Segmentation fault.
0x006c6bd3 in Widelands::PartiallyFinishedBuilding::request_builder_callback(Widelands::Game&, Widelands::Re
quest&, unsigned char, Widelands::Worker*, Widelands::PlayerImmovable&) ()
#0  0x006c6bd3 in Widelands::PartiallyFinishedBuilding::request_builder_callback(Widelands::Game&, Widelands
::Request&, unsigned char, Widelands::Worker*, Widelands::PlayerImmovable&) ()
#1  0x006d79c7 in Widelands::Ship::ship_update_idle(Widelands::Game&, Widelands::Bob::State&) ()
#2  0x006d8879 in Widelands::Ship::ship_update(Widelands::Game&, Widelands::Bob::State&) ()
#3  0x00694874 in Widelands::Bob::do_act(Widelands::Game&) ()
#4  0x006a7d75 in Widelands::CmdAct::execute(Widelands::Game&) ()
#5  0x00735be5 in Widelands::CmdQueue::run_queue(int, unsigned int&) ()
#6  0x0066247c in Widelands::Game::think() ()
#7  0x0081c3ea in InteractiveBase::think() ()
#8  0x0082a552 in InteractivePlayer::think() ()
#9  0x007b5f65 in UI::Panel::do_think() ()
#10 0x007b6f75 in UI::Panel::do_run() ()
#11 0x006676d3 in Widelands::Game::run(UI::ProgressWindow*, Widelands::Game::StartGameType, std::__cxx11::ba
sic_string<char, std::char_traits<char>, std::allocator<charconst&, bool, std::__cxx11::basic_string<cha
r, std::char_traits<char>, std::allocator<charconst&) ()
#12 0x00669ecc in Widelands::Game::run_load_game(std::__cxx11::basic_string<char, std::char_traits<char>, st
d::allocator<charconst&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
 const&) ()
#13 0x005b3c4f in WLApplication::load_game() ()
#14 0x005b538a in WLApplication::mainmenu_singleplayer() ()
#15 0x005b582e in WLApplication::mainmenu() ()
#16 0x005b5eab in WLApplication::run() ()
#17 0x0057412b in main ()

Busy indexing nil values

Top Quote