The International Simutrans Forum

Development => Bug Reports => Topic started by: Andarix on July 18, 2020, 07:00:49 AM

Title: Simutrans and Ubuntu 20.04
Post by: Andarix on July 18, 2020, 07:00:49 AM
On Ubuntu 20.04, Simutrans crashes with a memory access error if it contains Midi (SDL_mixer, SDL2_mixer).

Is this an Ubuntu bug or a Simutrans bug?
Title: Re: Simutrans and Ubuntu 20.04
Post by: ceeac on July 18, 2020, 07:51:27 AM
I don't get a crash (I'm using 20.04, too) so I believe this must be an issue with your Ubuntu configuration. Do you have a backtrace?
Title: Re: Simutrans and Ubuntu 20.04
Post by: Andarix on July 18, 2020, 08:48:49 AM
I don't get a crash (I'm using 20.04, too) so I believe this must be an issue with your Ubuntu configuration. Do you have a backtrace?

no
Try the 120.4.1 Simutrans included with Ubuntu 20.04. And I use the German attitude.

or install from here https://simutrans-germany.com/wiki/wiki/en_Simutrans_repo_deb (https://simutrans-germany.com/wiki/wiki/en_Simutrans_repo_deb)

Quote
ubuntu 20.04 Simutrans

libfluidsynth2 (Version 2.1.1-2) wird installiert
libinstpatch-1.0-2 (Version 1.1.2-2build1) wird installiert
libmad0 (Version 0.15.1b-10ubuntu1) wird installiert
libmikmod3 (Version 3.3.11.1-4) wird installiert
libopenal-data (Version 1:1.19.1-1) wird installiert
libopenal1 (Version 1:1.19.1-1) wird installiert
libsdl-mixer1.2 (Version 1.2.12-16build1) wird installiert
libsdl1.2debian (Version 1.2.15+dfsg2-5) wird installiert
libsdl2-2.0-0 (Version 2.0.10+dfsg1-3) wird installiert
libsndio7.0 (Version 1.5.0-3) wird installiert
simutrans (Version 120.4.1-1build1) wird installiert
simutrans-data (Version 120.4.1-1build1) wird installiert
simutrans-pak64 (Version 120.4.1-1) wird installiert
timgm6mb-soundfont (Version 1.3-3) wird installiert

A test with an SDL2 version without midi works.
Title: Re: Simutrans and Ubuntu 20.04
Post by: kierongreen on July 18, 2020, 01:18:39 PM
From Debian:

Package: simutrans
Version: 121.0-1
Installed-Size: 5632
Maintainer: Debian Games Team <Pkg-games-devel@alioth-lists.debian.net>
Architecture: amd64
Depends: libbz2-1.0, libc6 (>= 2.29), libgcc-s1 (>= 3.0), libsdl2-2.0-0 (>= 2.0.10), libsdl2-mixer-2.0-0 (>= 2.0.2), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4), simutrans-pak64 (>= 120.0.1), simutrans-data (= 121.0-1)

Whereas sdl-mixer on your Ubuntu system seems to be only 1.2. Maybe run "apt-get install libsdl2-mixer-2.0-0" and see if it fixes problem?
Title: Re: Simutrans and Ubuntu 20.04
Post by: ceeac on July 21, 2020, 06:04:34 PM
Seems to be a bug in SDL_mixer 1.x: Bug report for Extended (https://github.com/jamespetts/simutrans-extended/issues/215). So installing SDL_mixer 2.x should indeed fix the issue.