News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

Simutrans and Ubuntu 20.04

Started by Andarix, July 18, 2020, 07:00:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

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?

ceeac

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?

Andarix

Quote from: 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?

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

Quoteubuntu 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.

kierongreen

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?

ceeac

Seems to be a bug in SDL_mixer 1.x: Bug report for Extended. So installing SDL_mixer 2.x should indeed fix the issue.