News:

SimuTranslator
Make Simutrans speak your language.

[linux] error in savegame

Started by Yona-TYT, January 01, 2017, 01:04:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

Tutorial1.sve

(gdb) where
#0  0xb7fdabc8 in __kernel_vsyscall ()
#1  0xb7b585c9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#2  0xb7b59ca7 in __GI_abort () at abort.c:89
#3  0x0834666d in log_t::fatal (this=0x8540ba8,
    who=0x8395ade "sim_new_handler()", format=0x8395ad0 "OUT OF MEMORY")
    at utils/log.cc:346
#4  0x082f1971 in sim_new_handler () at simmain.cc:365
#5  0xb7de0c63 in operator new (sz=sz@entry=4294967295)
    at ../../../../libstdc++-v3/libsupc++/new_op.cc:55
#6  0xb7de0d3c in operator new[] (sz=4294967295)
    at ../../../../libstdc++-v3/libsupc++/new_opv.cc:32
#7  0x082b4cd2 in vector_tpl<stadt_t::factory_entry_t>::resize (
    this=0x20e7986c, new_size=252575745)
    at boden/wege/../../dataobj/../tpl/vector_tpl.h:51
#8  0x082a8e90 in stadt_t::factory_set_t::rdwr (this=0x20e7986c,
    file=0xbfffc7a4) at simcity.cc:915
#9  0x082aa5ea in stadt_t::rdwr (this=0x20e78de0, file=0xbfffc7a4)
    at simcity.cc:1280
#10 0x082a9cb1 in stadt_t::stadt_t (this=0x20e78de0, file=0xbfffc7a4)
    at simcity.cc:1112
#11 0x0833b234 in karte_t::load (this=0x20e3ddf8, file=0xbfffc7a4)
    at simworld.cc:5244
#12 0x08339d72 in karte_t::load (this=0x20e3ddf8, filename=0x9435ed0 "")


Edt.
Now do not load the scenario, this is very rare. :o

Preparing startup ...
Loading BDF font 'cyr.bdf'
Show banner ...
Running world, pause=0, fast forward=0 ...
script engine started.
sim: squirrel/squirrel/sqfuncstate.cc:291: SQInteger SQFuncState::PopTarget(): Assertion `npos < _vlocals.size()' failed.

Thread 1 "sim" received signal SIGABRT, Aborted.
0xb7fdabc8 in __kernel_vsyscall ()
Missing separate debuginfos, use: dnf debuginfo-install libuuid-2.28.2-1.fc24.i686
(gdb) where
#0  0xb7fdabc8 in __kernel_vsyscall ()
#1  0xb7b585c9 in __GI_raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#2  0xb7b59ca7 in __GI_abort () at abort.c:89
#3  0xb7b50e17 in __assert_fail_base (
    fmt=0xb7ca365c "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n",
    assertion=0x838d9f1 "npos < _vlocals.size()",
    file=0x838d9d0 "squirrel/squirrel/sqfuncstate.cc", line=291,
    function=0x838db00 <SQFuncState::PopTarget()::__PRETTY_FUNCTION__> "SQInteger SQFuncState::PopTarget()") at assert.c:92
#4  0xb7b50e9b in __GI___assert_fail (
    assertion=0x838d9f1 "npos < _vlocals.size()",
    file=0x838d9d0 "squirrel/squirrel/sqfuncstate.cc", line=291,
    function=0x838db00 <SQFuncState::PopTarget()::__PRETTY_FUNCTION__> "SQInteger SQFuncState::PopTarget()") at assert.c:101
#5  0x08290a1f in SQFuncState::PopTarget (this=0x2100c260)
    at squirrel/squirrel/sqfuncstate.cc:291
#6  0x0828e8a5 in SQCompiler::SwitchStatement (this=0xbfffbbd4)
    at squirrel/squirrel/sqcompiler.cc:1245
#7  0x08289f6e in SQCompiler::Statement (this=0xbfffbbd4, closeframe=true)
    at squirrel/squirrel/sqcompiler.cc:220
#8  0x08289d59 in SQCompiler::Statements (this=0xbfffbbd4)
    at squirrel/squirrel/sqcompiler.cc:206
#9  0x0828a436 in SQCompiler::Statement (this=0xbfffbbd4, closeframe=false)




Edt.
I can confirm that it is a problem in the script, but no error message is displayed.
Scenario: Tutorial-error.zip


Ters

For the first one, the save game is corrupt somehow.

Dwachs

For the second one, the link does not work. Also could you post the full call stack?
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Fixed links.
Does it refer to the terminal output since simutrans starts ?.

Dwachs

Could you please post the full gdb stack trace? When does this crash appear? Can it be reproduced?
Parsley, sage, rosemary, and maggikraut.

Dwachs

#5
The second crash is a bug in the squirrel compiler. It chokes at this statement

if (j==11 && glsw=0){

at line 517 in chapter 3.nut.

I think this is also a typo in the script, meant to be glsw==0.
Parsley, sage, rosemary, and maggikraut.