Forum

> > Unreal Software > (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes
ForenübersichtUnreal Software-ÜbersichtEinloggen, um zu antworten

Englisch (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

13 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
Greetings,

I'm trying to run the latest CS2D executable on Linux. the headless server is running without a problem but I can't get the visual client to work. Maybe one of you knows what package or trick I'm missing.

When running ./CS2D I get:
1
Segmentation fault (core dumped)

When running it using gdb I get:
1
2
Program received signal SIGSEGV, Segmentation fault.
0xf6ee6a75 in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so

I installed the following packages:
1
2
3
4
5
6
7
apt install libx11-6:i386
apt install libxxf86vm1:i386
apt install libglu1-mesa:i386
apt install libfreetype6:i386
apt install i965-va-driver
apt install libopenal1:i386
apt install libopenal-dev:i386
(list updated. Thanks to user VaiN)

Here is the output of ldd CS2D:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
linux-gate.so.1 =>  (0xf7fb4000)
libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7e47000)
libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xf7e40000)
libGL.so.1 => /usr/lib/i386-linux-gnu/mesa/libGL.so.1 (0xf7dcf000)
libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7d13000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7d0e000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7b8a000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7a89000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7a6c000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7a4d000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7877000)
libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf784b000)
libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf7836000)
libexpat.so.1 => /lib/i386-linux-gnu/libexpat.so.1 (0xf780b000)
libxcb-dri3.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri3.so.0 (0xf7807000)
libxcb-present.so.0 => /usr/lib/i386-linux-gnu/libxcb-present.so.0 (0xf7803000)
libxcb-sync.so.1 => /usr/lib/i386-linux-gnu/libxcb-sync.so.1 (0xf77fb000)
libxshmfence.so.1 => /usr/lib/i386-linux-gnu/libxshmfence.so.1 (0xf77f8000)
libglapi.so.0 => /usr/lib/i386-linux-gnu/libglapi.so.0 (0xf77d8000)
libXdamage.so.1 => /usr/lib/i386-linux-gnu/libXdamage.so.1 (0xf77d4000)
libXfixes.so.3 => /usr/lib/i386-linux-gnu/libXfixes.so.3 (0xf77cd000)
libX11-xcb.so.1 => /usr/lib/i386-linux-gnu/libX11-xcb.so.1 (0xf77ca000)
libxcb-glx.so.0 => /usr/lib/i386-linux-gnu/libxcb-glx.so.0 (0xf77ad000)
libxcb-dri2.so.0 => /usr/lib/i386-linux-gnu/libxcb-dri2.so.0 (0xf77a7000)
libdrm.so.2 => /usr/lib/i386-linux-gnu/libdrm.so.2 (0xf7793000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7774000)
libpng16.so.16 => /usr/lib/i386-linux-gnu/libpng16.so.16 (0xf773a000)
/lib/ld-linux.so.2 (0xf7fb6000)
libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf7736000)
libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf772d000)
libbsd.so.0 => /lib/i386-linux-gnu/libbsd.so.0 (0xf7712000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7708000)
2× editiert, zuletzt 12.12.17 07:01:49

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

VaiN
User Off Offline

Zitieren
can we get a little more context? is this a clean install? installed from web or from steam? does it run from within steam? did it ever run or is this the first time launching? if it ran before, what settings were changed?

also, audio won't work until you install these packages:
1
2
libopenal1:i386
libopenal-dev:i386

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
Oh wow.. good questions. Sorry that I didn't think of that before.

Zitat
is this a clean install?

Yes.

Zitat
installed from web or from steam?

I downloaded the Zip client on UnrealSoftware.de

Zitat
does it run from within steam?

I do not have Steam installed on my system.

Zitat
did it ever run or is this the first time launching?

First launch - the client has not have a successful start yet.

Zitat
if it ran before, what settings were changed?

It never worked before, however, from the experience of earlier CS2D Linux clients, I tried changing config.cfg. While the graphical settings (especially setting
win 0
) had helped me before, the client did not start and I undid every change.
1× editiert, zuletzt 12.12.17 06:15:27

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

VaiN
User Off Offline

Zitieren
I run 16.04.3 and it works without issue. Maybe there's a newer lib that isn't compatible.

I have a 17.10 vm and it runs the game fine from within Steam, but outside of Steam it also Segfaults. If you're able to install Steam, I'd use that for now until we can narrow down the issue. I'll keep digging to see what I can find out.

edit: if we can find out which lib, then you can do LD_PRELOAD='path/to/steam/lib' to force it to load with the steam version from the CLI.
1× editiert, zuletzt 12.12.17 05:54:05

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
Thanks.

I installed the missing packages for the sound.

I also tried
gdb --args ./CS2D -win -nointro -noopenal
to possibly skip some of the critical libs but it failed on the same library.

1
2
ll /usr/lib/i386-linux-gnu/dri/i965_dri.so
-rw-r--r-- 5 root root 9538856 Oct  3 03:49 /usr/lib/i386-linux-gnu/dri/i965_dri.so

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
You're giving way better Linux support than I ever hoped to find here. You are incredible.

I'll keep in mind that the
-nointro
flag is known to cause troubles. In my current setup it does not make a difference though (running without and with gdb still results in the SEGFAULT).

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
Sure, it's the default 1.0.0.6 config that came in the Linux zip package from the website.

https://pastebin.com/DUkepYYd

If I run the default config, a black window with the correct dimensions opens and closes after less than a second.
1
2
3
4
graphics gl
win 1
screen4by3 0
res 850x480

If I run the following settings, the resolution changes, the screen flashes black and goes back to the Desktop with the 800x600 resolution and CS2D crashed.
1
2
3
4
graphics gl
win 0
screen4by3 1
res 800x600
3× editiert, zuletzt 12.12.17 06:23:30

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
1
2
glxinfo | grep rendering
direct rendering: Yes

It's a X230 Laptop with Intel® Ivybridge Mobile. The only other game I played on it was Oxenfree. OpenGL rendering in Blender, Firefox and the GNOME interface never gave me any problems.

I'm currently trying different interfaces and display managers.

Same failure on:
• Gnome 3.26.2 on Wayland
• Gnome 3.26.2 on xorg (my default)
• Gnome Classic
• i3wm
1× editiert, zuletzt 12.12.17 06:43:27

alt Re: (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

Jaller94
User Off Offline

Zitieren
libgl1-mesa-dev:i386 is another package I did not have. It's still having the same error.

Since I installed a lot of new i386 packages and there was a firmware update in the upgrades I rebooted the system and gave it another try. However, I'm still out of luck.

Found a solution:
1
LIBGL_ALWAYS_SOFTWARE=1 ./CS2D

Source: https://github.com/gephi/gephi/issues/1552


Thanks so much, user VaiN and user SQ. You guys are spectacular! Within minutes you knew what to ask for and took great care in unblocking me. I can't believe how lucky I am to get two Linux experts who signed up in 2009 and are still around helping.
1× editiert, zuletzt 12.12.17 07:00:31
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenUnreal Software-ÜbersichtForenübersicht