Simutrans crashes on fresh install

Bug #1921525 reported by Jan Evert van Grootheest
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
simutrans (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have installed a new computer with Ubuntu 20.04 a few weeks ago. I have now installed simutrans and tried to play it.
It crashes on startup. In the UI I have had the request to select a language. It crashes both for english and dutch (haven't tried any others).

Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal

$ dpkg -l simutrans\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-===============-============-=====================================
ii simutrans 120.4.1-1build1 amd64 transportation simulator
ii simutrans-data 120.4.1-1build1 all transportation simulator (base data)
ii simutrans-pak64 120.4.1-1 all transportation simulator (data files)

The end of the logs with 'simutrans -debug 5'

  Reading MIDI file '/usr/share/games/simutrans/music/49-Last-Sunday.mid' - Last Sunday
Calculating textures ...done
Warning: karte_t::create_rivers(): Too many rivers requested! (16 not constructed)
ERROR: karte_t::init(): Creating factories ...
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Distributing 1 tourist attractions ...
Message: karte_t::init(): Preparing startup ...
Message: simmain(): Show banner ...
Segmentation fault (core dumped)

Unfortunately I don't know where the core has gone. It is not in the current directory.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in simutrans (Ubuntu):
status: New → Confirmed
Revision history for this message
Leonardo Müller (leozinho29-eu) wrote :

I am facing a crash on this exact part of the loading process. The workaround I found was to set LC_ALL=C to make the game run. The backtrace is interesting: it seems related to the money_to_string function, the money value being shown is pretty strange: 20.000.0,0.0

My system uses the pt_BR.UTF-8 locale.

The backtrace is gigantic, but only three steps are being shown, I imagine I would need the correct debug packages to get more:

#0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:328
#1 0x00005555558d978d in money_to_string(char*, double, bool) (p=0x7fffffffefff "", p@entry=0x7fffffffbaa0 "20.000.0,0.0", f=f@entry=200000, show_decimal=show_decimal@entry=true) at utils/simstring.cc:107
        j = 0
        tmp = "200000,00\000\353R\265\224z\333\033\000\000\000\000\000\000\000U\300dUUU\000\000\000\253:WUU\000\000\016\000\000\000\000\000\000\000\200\241\356UUU\000\000\243\001\a\000\034\352\005\000\020\020}\365\377\177\000\000\000\000\300\002#\002\000\000\377\177\000\000\000\000\000\000\v\000\000\000E\001\000\000\000\000\000\000#\002\000\000\001\000\000\000E\001\000\000\216\241\356UUU\000\000\000S\353R\265\224", <incomplete sequence \333>
        tp = 0x7fffffffb990 "200000,00"
        i = <optimized out>
        l = 18032
#2 0x000055555570b0ff in win_display_flush(double) (konto=200000) at gui/simwin.cc:1704
        buffer = "20.000.0,0.0\000\353.R\265\224.z\333\033.\000\000\000.\000\000\000.\000U\300.dUU.U\000\000.\000\253:.WUU.\000\000\016.\000\000\000.\000\000\000.\000\200\241.\356UU.U\000\000.\243\001\a.\000\034\352.\005\000\020.\020}\365.\377\177\000.\000\000\000.\300\002#.\002\000\000.\377\177\000.\000\000\000.\000\000\v.\000\000\000.E\001\000.\000\000\000.\000\000#.\002\000\000.\001\000\000.\000E\001.\000\000\216.\241\356U.UU\000.\000\000S.\353R\265.\224z\333.,,,.,,,.,,\000.S\353R.\265\224z.ۻ\000.\000\000\000.\000\000\000"...
        disp_width = <optimized out>
        disp_height = <optimized out>
        menu_height = <optimized out>
        main_menu = <optimized out>
        old_inside_event_handling = <optimized out>
        time = 0x555555a771e0 <tick_to_string(int, bool)::time> "Verão Junho 1 1930 3:27am"
        status_bar_height = 15
        status_bar_y = <optimized out>
        status_bar_text_y = 547
        status_bar_icon_y = <optimized out>
        tooltip_check = <optimized out>
        right_border = <optimized out>
        pos = {x = -1, y = -1, z = -1 '\377', static invalid = {x = -1, y = -1, z = -1 '\377', static invalid = <same as static member of an already seen type>}}
        info = {capacity = 256, size = 9, buf = 0x555555b1f240 " (T=1,00)"}
        w_left = <optimized out>
        w_right = <optimized out>
        middle = <optimized out>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.