Skip to main content
Topic: [crash devel] crash when loading -- resolved (Read 4897 times) previous topic - next topic

[crash devel] crash when loading -- resolved

when runing experimental with pak128.britain and pak128.britain-experimental a reproduceable crash happens when the load window is opened from the start screen and then canceled. The crash happens during world creation of the automatic demo island.

Code: [Select]

FATAL ERROR: crossing_t::crossing_t()
requested for waytypes 1 and 3 but nothing defined!


Program received signal SIGABRT, Aborted.
0x00007ffff6c1fa75 in raise () from /lib/libc.so.6
(gdb) bt
#0  0x00007ffff6c1fa75 in raise () from /lib/libc.so.6
#1  0x00007ffff6c235c0 in abort () from /lib/libc.so.6
#2  0x000000000063d858 in log_t::fatal (this=0xa813c0,
    who=0x677f56 "crossing_t::crossing_t()",
    format=0x677f20 "requested for waytypes %i and %i but nothing defined!")
    at utils/log.cc:242
#3  0x000000000047b6f7 in crossing_t::rdwr (this=0x406df10,
    file=0x7fffffffb1f0) at dings/crossing.cc:143
#4  0x000000000047ad8c in crossing_t (this=0x406df10, welt=0x11b5e50,
    file=0x7fffffffb1f0) at dings/crossing.cc:35
#5  0x0000000000455a4f in dingliste_t::rdwr (this=0x4797110, welt=0x11b5e50,
    file=0x7fffffffb1f0, current_pos=...) at dataobj/dingliste.cc:768
#6  0x00000000004452ac in grund_t::rdwr (this=0x4797108, file=0x7fffffffb1f0)
    at boden/grund.cc:367
#7  0x00000000005f5301 in boden_t (this=0x4797108, welt=0x11b5e50,
    file=0x7fffffffb1f0, pos=...) at boden/boden.h:27
#8  0x00000000005f3bf3 in planquadrat_t::rdwr (this=0x7fffeda32ea8,
    welt=0x11b5e50, file=0x7fffffffb1f0, pos=...) at simplan.cc:249
#9  0x000000000062c3cd in karte_t::laden (this=0x11b5e50, file=0x7fffffffb1f0)
    at simworld.cc:4504
#10 0x000000000062b3aa in karte_t::laden (this=0x11b5e50,
    filename=0x7fffffffb350 "save/.sve") at simworld.cc:4299
#11 0x000000000051c3a5 in loadsave_frame_t::action (this=0x4b78300,
---Type <return> to continue, or q <return> to quit---
    filename=0x7fffffffb350 "save/.sve") at gui/loadsave_frame.cc:51
#12 0x000000000053f885 in savegame_frame_t::action_triggered (this=0x4b78300,
    komp=0x4b787a8, p=...) at gui/savegame_frame.cc:365
#13 0x00000000004ac593 in gui_action_creator_t::call_listeners (
    this=0x4b787a8, v=...) at gui/components/../../ifc/gui_action_creator.h:36
#14 0x00000000004cad91 in gui_textinput_t::infowin_event (this=0x4b78790,
    ev=0x7fffffffb880) at gui/components/gui_textinput.cc:186
#15 0x00000000004ff7b5 in gui_container_t::infowin_event (this=0x4b78308,
    ev=0x7fffffffb960) at gui/gui_container.cc:191
#16 0x00000000005010cf in gui_frame_t::infowin_event (this=0x4b78300,
    ev=0x7fffffffb9f0) at gui/gui_frame.cc:88
#17 0x0000000000540704 in savegame_frame_t::infowin_event (this=0x4b78300,
    ev=0x7fffffffb9f0) at gui/savegame_frame.cc:536
#18 0x000000000061638c in check_pos_win (ev=0x7fffffffbb30) at simwin.cc:926
#19 0x0000000000630f1b in karte_t::interactive (this=0x11b5e50,
    quit_month=2147483647) at simworld.cc:5619
#20 0x00000000005e7161 in simu_main (argc=1, argv=0x7fffffffe2d8)
    at simmain.cc:1075
#21 0x000000000066bca9 in main (argc=1, argv=0x7fffffffe2d8) at simsys_s.cc:747

the bug does not happen:
-- during normal world creation (New Map button)
-- also not with open-pak128 (nightly 928)
-- not during demo world creation when demo.sve was not loaded, canceling load window still triggers the crash.


tested with binary compiled from devel with messilliacs reverse route changes, compiled on 64 bit linux with gcc 4.4.3

Re: [crash devel] crash when loading

Reply #1
Sdog,

thank you for the report. I'm afraid that I can't reproduce this on my 32-bit Windows, system, however. This may be 64-bit specific. This issue might be fixed by the 64-bit fixes that have recently been produced, that I shall try to integrate to-day.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: [crash devel] crash when loading

Reply #2
with your latest devel (commit  c69703dd87bb61f15249) the crash still hapens.

i tested it with an 8.x compile with mesilliacs changes where the bug did not happen.

tried it with latest version of standard on github with an antique pak128.britain where it didn't crash.

i'm downloading the latest version (1.07) of pak128.britain standard now, and see what happens. i though i read about some problems with makeobj a little while ago, perhaps related?

recent devel version of experimental does not even start with pak128.Britain standard 1.07. I'll post the bt in a new thread.

latest development version of standard does not show the above mentioned crash.

self built standard pak128.britain standard doesn't cause the crash either.

Re: [crash devel] crash when loading

Reply #3
Hmm, that's very odd, not least because mesilliac's changes are based on the -devel, not the 8.x branch, and one can't apply them to 8.x without merging -devel. Very odd indeed...
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Re: [crash devel] crash when loading

Reply #4
mesilliac's first reversing convoi changes were based on the 8.x branch. It was the most recent 8.x binary i got so i tested it with it.

To conclude the above posting, the crash only happens with dev versions of experimental, with pak128.britain-experimental. pak128 or pak192 comic do not trigger this problem.
Dev versions of standard do not crash either, regardless of standard pak (they obviously crash with any experimental pak)

 

Re: [crash devel] crash when loading

Reply #5
in the latest devel version, this crash does not happen anymore.