News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

[r8700] New Game/Settings/Default seemingly appended but it isn't

Started by captain crunch, March 03, 2019, 09:40:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

captain crunch

Pressing the "Simuconf.tab" or "Default" buttons in the New Game / Settings dialogue appends the defaults to the list of the current settings instead of replacing them. This additional set of settings is forgotten when the dialogue is closed.
This means that it is possible to change the settings, but it is impossible to load "simuconf.tab" or reset them to the defaults.
To reproduce the error:
- press "New Game" button
- press "Settings" button
- press "Simuconf.tab" and/or "Default" buttons

Dwachs

Parsley, sage, rosemary, and maggikraut.

captain crunch

Yes, r8701 works somewhat better, but:
a) Pressing "Simuconf.tab" changes the left margin of settings' descriptions.
b) When a setting is changed and then the "Simuconf.tab" button is pressed the program can exit with segmentation fault.
c) When a setting is changed and then the "Default" button is pressed the programm will exit with segmentation fault.

case (c) when simutrans run in gdb:
Reading simuconf.tab successful!

Thread 1 "sim" received signal SIGSEGV, Segmentation fault.
0x00005555556d190c in gui_container_t::get_focus() ()
(gdb) where
#0  0x00005555556d190c in gui_container_t::get_focus() ()
#1  0x00005555556da8ab in gui_numberinput_t::init(int, int, int, int, bool, unsigned short) ()
#2  0x00005555557812f0 in settings_general_stats_t::init(settings_t const*) ()
#3  0x00005555557741e0 in settings_frame_t::action_triggered(gui_action_creator_t*, value_t) ()
#4  0x00005555556cd2ff in button_t::infowin_event(event_t const*) ()
#5  0x00005555556d205c in gui_container_t::infowin_event(event_t const*) ()
#6  0x00005555556d205c in gui_container_t::infowin_event(event_t const*) ()
#7  0x00005555557154d0 in gui_frame_t::infowin_event(event_t const*) ()
#8  0x0000555555788f46 in check_pos_win(event_t*) ()
#9  0x00005555558efa10 in simu_main(int, char**) ()
#10 0x00005555559070d9 in sysmain(int, char**) ()
#11 0x00007ffff68612e1 in __libc_start_main (main=0x5555556008f0 <main>,
    argc=1, argv=0x7fffffffe208, init=<optimized out>, fini=<optimized out>,
    rtld_fini=<optimized out>, stack_end=0x7fffffffe1f8)
    at ../csu/libc-start.c:291
#12 0x000055555560092a in _start ()
(gdb)


Dwachs

Parsley, sage, rosemary, and maggikraut.