News:

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

[Gui] Error while testing the gui.

Started by Yona-TYT, June 11, 2020, 10:01:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT



Simutrans stopped working while using the vehicle list window, I'm not sure exactly when, just tried to open the "settings" window and it was already hung.

I can't replicate the problem, however I was using "gdb", hope this is useful to you.
(gdb) run
`/home/yonatyt/Downloads/simutrans/sim' has changed; re-reading symbols.
Starting program: /home/yonatyt/Downloads/simutrans/sim
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.


Use work dir /home/yonatyt/Downloads/simutrans/
Reading low level config data ...
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
SDL Driver: x11
Init done.
parse_colours() at config/simuconf.tab: Reading simuconf.tab successful!
[New LWP 21274]
[New LWP 21275]
Calculating textures ...done
[New LWP 21278]
[New LWP 21279]
[New LWP 21280]
[New LWP 21281]
script engine started.
[LWP 21278 exited]
[New LWP 21282]
[New LWP 21283]
[New LWP 21284]
[New LWP 21301]
script engine started.
[LWP 21301 exited]
set_zoom_factor() : set 4 (3/4)
set_zoom_factor() : set 5 (5/8)
set_zoom_factor() : set 6 (1/2)
set_zoom_factor() : set 5 (5/8)
set_zoom_factor() : set 4 (3/4)
set_zoom_factor() : set 3 (1/1)
set_zoom_factor() : set 2 (4/3)
set_zoom_factor() : set 1 (3/2)
set_zoom_factor() : set 0 (2/1)
set_zoom_factor() : set 1 (3/2)
set_zoom_factor() : set 2 (4/3)
set_zoom_factor() : set 3 (1/1)
set_zoom_factor() : set 4 (3/4)
set_zoom_factor() : set 5 (5/8)
set_zoom_factor() : set 6 (1/2)
set_zoom_factor() : set 5 (5/8)
set_zoom_factor() : set 4 (3/4)
set_zoom_factor() : set 3 (1/1)
set_zoom_factor() : set 2 (4/3)
set_zoom_factor() : set 3 (1/1)
set_zoom_factor() : set 4 (3/4)
set_zoom_factor() : set 5 (5/8)
set_zoom_factor() : set 6 (1/2)

Thread 1 "sim" received signal SIGSEGV, Segmentation fault.
gui_convoiinfo_t::update_label (this=this@entry=0x555557a07660)
    at gui/components/gui_convoiinfo.cc:163
163            if( grund_t *gr = world()->lookup( cnv->get_route()->back() ) ) {
(gdb) where
#0  gui_convoiinfo_t::update_label (this=this@entry=0x555557a07660)
    at gui/components/gui_convoiinfo.cc:163
#1  0x00005555556b2fad in gui_convoiinfo_t::draw (this=0x555557a07660,
    offset=...) at gui/components/gui_convoiinfo.cc:181
#2  0x00005555556b26aa in gui_container_t::draw (this=0x5555579ff368,
    offset=...) at gui/components/gui_container.cc:280
#3  0x00005555556bbe18 in gui_scrollpane_t::draw (
    this=this@entry=0x5555579ff000, pos=pos@entry=...)
    at gui/components/gui_scrollpane.cc:265
#4  0x00005555556bae30 in gui_scrolled_list_t::draw (this=0x5555579ff000,
    offset=...) at gui/components/gui_scrolled_list.cc:300
#5  0x00005555556b26aa in gui_container_t::draw (
    this=this@entry=0x7fffbc1128e0, offset=..., offset@entry=...)
    at gui/components/gui_container.cc:280
#6  0x000055555571ac58 in gui_frame_t::draw (this=this@entry=0x7fffbc112670,
    pos=..., pos@entry=..., size=...) at gui/gui_frame.cc:182
#7  0x00005555556c9ea2 in convoi_frame_t::draw (this=0x7fffbc112670, pos=...,
    size=...) at gui/convoi_frame.cc:334
#8  0x000055555579501b in display_win (win=4) at gui/simwin.cc:1020
#9  display_all_win () at gui/simwin.cc:1053
#10 0x00005555557972eb in win_display_flush (konto=173934.20000000001)
    at gui/simwin.cc:1648
#11 0x00005555558d22a6 in intr_refresh_display (dirty=dirty@entry=false)
---Type <return> to continue, or q <return> to quit---




ceeac

The crash happens when updating the next stop/waypoint of a convoy that is not in a depot and has an empty route. The attached patch should fix it.

prissi