(solved) CS2D 1.0.0.6 on Ubuntu 17.10 crashes
13 replies



12.12.17 05:33:24 am
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:
When running it using gdb I get:
I installed the following packages:
(list updated. Thanks to
VaiN)
Here is the output of ldd CS2D:
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
2
Program received signal SIGSEGV, Segmentation fault.
0xf6ee6a75 in ?? () from /usr/lib/i386-linux-gnu/dri/i965_dri.so
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
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
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

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
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)
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
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:
also, audio won't work until you install these packages:
Code:
1
2
2
libopenal1:i386
libopenal-dev:i386
libopenal-dev:i386
Oh wow.. good questions. Sorry that I didn't think of that before.
Yes.
I downloaded the Zip client on UnrealSoftware.de
I do not have Steam installed on my system.
First launch - the client has not have a successful start yet.
It never worked before, however, from the experience of earlier CS2D Linux clients, I tried changing config.cfg. While the graphical settings (especially setting
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
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.
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
Thanks.
I installed the missing packages for the sound.
I also tried
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
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
-rw-r--r-- 5 root root 9538856 Oct 3 03:49 /usr/lib/i386-linux-gnu/dri/i965_dri.so
You're giving way better Linux support than I ever hoped to find here. You are incredible.
I'll keep in mind that the

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). @
Jaller94:
Can you provide config.cfg file via pastebin.com?

Can you provide config.cfg file via pastebin.com?
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.
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.
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
2
3
4
graphics gl
win 1
screen4by3 0
res 850x480
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
2
3
4
graphics gl
win 0
screen4by3 1
res 800x600
win 0
screen4by3 1
res 800x600
edited 3×, last 12.12.17 06:23:30 am
Code:
1
2
2
glxinfo | grep rendering
direct rendering: Yes
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:




edited 1×, last 12.12.17 06:43:27 am
try
and then run with
this resolved the segfault in my vm
Code:
1
sudo apt install libgl1-mesa-dev:i386
and then run with
Code:
1
./CS2D -win
this resolved the segfault in my vm
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:
Source: https://github.com/gephi/gephi/issues/1552
Thanks so much,
VaiN and
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.
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,


edited 1×, last 12.12.17 07:00:31 am
this might be relevant: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1730065
Edit: Glad you got it resolved.
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.
Edit: Glad you got it resolved.

edited 1×, last 12.12.17 07:30:57 am



