News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

Error after loading a svegame

Started by Yona-TYT, March 25, 2026, 08:17:32 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Yona-TYT

Edit.
The error occurs when switching between tabs in the scenario window: test_rect_without_tool_remover.zip
Thread 1 "simutrans" received signal SIGINT, Interrupt.
0x00007ffff74ecadf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7fffffffa340, rem=0x7fffffffa350)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
aviso: 78 ../sysdeps/unix/sysv/linux/clock_nanosleep.c: No existe el archivo o el directorio
(gdb) where
#0  0x00007ffff74ecadf in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7fffffffa340, rem=0x7fffffffa350)
    at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:78
#1  0x00007ffff74f9a27 in __GI___nanosleep (req=<optimized out>, rem=<optimized out>) at ../sysdeps/unix/sysv/linux/nanosleep.c:25
#2  0x00007ffff7e4d35f in ?? () from /lib/x86_64-linux-gnu/libSDL2-2.0.so.0
#3  0x0000555555a28a1a in log_t::custom_fatal(char*) ()
#4  0x0000555555a28bd2 in log_t::fatal(char const*, char const*, ...) ()
#5  0x00005555559e0041 in xmalloc(unsigned long) ()
#6  0x00005555556afb70 in scenario_t::load_language_file(char const*) ()
#7  0x000055555595601b in std::_Function_handler<plainstring (scenario_t*, char const*), plainstring (scenario_t::*)(char const*)>::_M_invoke(std::_Any_data const&, scenario_t*&&, char const*&&) ()
#8  0x0000555555958a96 in long long script_api::generic_squirrel_callback<plainstring (scenario_t::*)(char const*)>(SQVM*) ()
#9  0x0000555555ace67f in SQVM::CallNative(SQNativeClosure*, long long, long long, SQObjectPtr&, int, bool&, bool&) ()
#10 0x0000555555ad0bf7 in SQVM::Execute(SQObjectPtr&, long long, long long, SQObjectPtr&, unsigned long long, SQVM::ExecutionType, unsigned long long) ()
#11 0x0000555555ad2b4b in SQVM::Call(SQObjectPtr&, long long, long long, SQObjectPtr&, unsigned long long, unsigned long long) ()
#12 0x0000555555ad4690 in SQVM::CallMetaMethod(SQObjectPtr&, SQMetaMethod, long long, SQObjectPtr&) ()
#13 0x0000555555ad52c5 in SQVM::ToString(SQObjectPtr const&, SQObjectPtr&) ()
#14 0x0000555555a9d7f1 in sq_tostring ()
#15 0x0000555555998bfb in script_api::param<plainstring>::get(SQVM*, long long) ()
#16 0x000055555599c757 in dynamic_string::update(script_vm_t*, player_t*, bool) ()
#17 0x00005555556af010 in scenario_t::step() ()
#18 0x0000555555a864fa in karte_t::step() ()
#19 0x0000555555a87669 in karte_t::interactive(unsigned int) ()
#20 0x00005555559dc343 in simu_main(int, char**) ()
#21 0x00005555559e6230 in sysmain(int, char**) ()
#22 0x00007ffff742a1ca in __libc_start_call_main (main=main@entry=0x555555647940 <main>, argc=argc@entry=1, argv=argv@entry=0x7fffffffde18)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#23 0x00007ffff742a28b in __libc_start_main_impl (main=0x555555647940 <main>, argc=1, argv=0x7fffffffde18, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffde08) at ../csu/libc-start.c:360
#24 0x00005555556479e5 in _start ()
(gdb)


[Thread 0x7fff3eac06c0 (LWP 6370) terminado]
script engine started.
[Nuevo Thread 0x7fff3eac06c0 (LWP 6385)]
[Thread 0x7fff3eac06c0 (LWP 6385) terminado]
FATAL ERROR: xmalloc() - Could not alloc -9223372036854775808 bytes.
Aborting program execution ...

For help with this error or to file a bug report please see the Simutrans forum at
https://forum.simutrans.com

Thread 1 "simutrans" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
aviso: 44    ./nptl/pthread_kill.c: No existe el archivo o el directorio
(gdb) where
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007ffff744527e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007ffff74288ff in __GI_abort () at ./stdlib/abort.c:79
Backtrace stopped: No se puede acceder a la memoria en la dirección 0x7fffffffa398


Captura desde 2026-03-25 16-11-43.png

ceeac

Well, opening a file which is actually a directory does not work. :)
Should be fixed in r11910.

Yona-TYT

Quote from: ceeac on March 26, 2026, 07:36:48 AMWell, opening a file which is actually a directory does not work. :)
Should be fixed in r11910.
It seems you hit the nail on the head.  8)