English (solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes

13 replies
Goto Page
To the start Previous 1 Next To the start
Up
Jaller94
User
Offline Off
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:
Code:
1
Segmentation fault (core dumped)


When running it using gdb I get:
Code:
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:
Code:
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:
Code:
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)
edited 2×, last 12.12.17 07:01:49 am
12.12.17 05:37:03 am
Up
VaiN
User
Offline Off
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:
Code:
1
2
libopenal1:i386
libopenal-dev:i386
12.12.17 05:43:30 am
Up
Jaller94
User
Offline Off
Oh wow.. good questions. Sorry that I didn't think of that before.

Quote:
is this a clean install?

Yes.

Quote:
installed from web or from steam?

I downloaded the Zip client on UnrealSoftware.de

Quote:
does it run from within steam?

I do not have Steam installed on my system.

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

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

Quote:
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.
edited 1×, last 12.12.17 06:15:27 am
12.12.17 05:48:08 am
Up
VaiN
User
Offline Off
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.
edited 1×, last 12.12.17 05:54:05 am
12.12.17 05:54:01 am
Up
Jaller94
User
Offline Off
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.

Code:
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
12.12.17 05:57:16 am
Up
VaiN
User
Offline Off
don't use the -nointro flag, that has a known issue that causes a crash
12.12.17 06:02:20 am
Up
Jaller94
User
Offline Off
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).
12.12.17 06:03:22 am
Up
SQ
Moderator
Offline Off
@user Jaller94:
Can you provide config.cfg file via pastebin.com?
12.12.17 06:08:39 am
Up
Jaller94
User
Offline Off
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.
Code:
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.
Code:
1
2
3
4
graphics gl
win 0
screen4by3 1
res 800x600
edited 3×, last 12.12.17 06:23:30 am
12.12.17 06:25:47 am
Up
VaiN
User
Offline Off
If you run this:
Code:
1
glxinfo | grep rendering

does it say 'direct rendering: Yes'?
12.12.17 06:32:19 am
Up
Jaller94
User
Offline Off
Code:
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
edited 1×, last 12.12.17 06:43:27 am
12.12.17 06:39:47 am
Up
VaiN
User
Offline Off
try
Code:
1
sudo apt install libgl1-mesa-dev:i386

and then run with
Code:
1
./CS2D -win

this resolved the segfault in my vm
12.12.17 06:44:43 am
Up
Jaller94
User
Offline Off
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:
Code:
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.
edited 1×, last 12.12.17 07:00:31 am
12.12.17 06:59:09 am
Up
VaiN
User
Offline Off
this might be relevant: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1730065

Edit: Glad you got it resolved. user SQ isn't a Linux guy, but I've been working with him to try and smooth things out for the Linux client. I'm also no guru, but I'll do my best to help out where I can.
edited 1×, last 12.12.17 07:30:57 am
To the start Previous 1 Next To the start