Forum

> > CS2D > General > Segmentation fault on launch (Antergos)
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Segmentation fault on launch (Antergos)

13 replies
To the start Previous 1 Next To the start

old Segmentation fault on launch (Antergos)

GeoB99
Moderator Off Offline

Quote
On my Antergos (Arch based distro, 4.11.6-1-ARCH version) box, CS2D fails to launch and throws a segmentation fault (core dumped). I can't judge whether it's an internal bug or my fail setup but I suspect the problem might be caused by certain incompatible libraries in order to run this game.

This is what strace reports the CS2D's behaviour while launching:

Strace output - Pastebin

And additional information from gdb, the backtrace is also included:
gdb output >

And finally, the ldd output. It reports no missing libraries whatsoever and none of them are corrupt as you can see below:
ldd output >

These are all the debugging info I could bring here. If you guys know a solution to get rid of this I'd be happy.

old Re: Segmentation fault on launch (Antergos)

_Yank
User Off Offline

Quote
I'm not sure but I believe that it's due to the fact that CS2D now uses a more recent version of OpenGL which is not available on most integrated intel GPUs.

Could you try to run an older version and see how it goes (preferably before SQ's updates on the light engine and such) ?

Also, what's your integrated card or CPU ? Do you have any other GPU appart from the integrated one ?

old Re: Segmentation fault on launch (Antergos)

GeoB99
Moderator Off Offline

Quote
@user SQ: I use Pulseaudio as main sound card driver however I doubt it could be caused by that because Ubuntu and its derivatives use Pulseaudio as well and no seg.faults occured (apart that there was no sound).

@user _Yank: Got an earlier version of CS2D and same issue occurs. Here's some info about my CPU.

Info >

As for the GPU, I only have an iGPU which is Intel HD Graphics and this is it. I don't have other GPUs present on my motherboard.

old Re: Segmentation fault on launch (Antergos)

SQ
Moderator Off Offline

Quote
Nope, it uses same openGL as 1.0.0.1 version.. and it doesn't load the engine until you join the server.

Also I know that it will crash when using pulse audio when going into "intro menu", so I'm pretty sure that's the problem.

Try running the game with skip intro flag.

old Re: Segmentation fault on launch (Antergos)

_Yank
User Off Offline

Quote
I don't want to offtopic but the new versions do indeed make use of new GL extensions. On 1.0.0.1, I'm able to use the advanced light and shadow settings but in newer versions I'm not even able to choose them.

old Re: Segmentation fault on launch (Antergos)

SQ
Moderator Off Offline

Quote
Oh right, I was wrong. In 1.0.0.2* I built new engine.
On 1.0.0.1 it still used CPU to generate lighting.

Well it requires openGL 1.5 at the very best. I remember using extensions from 2003, so it should work in anyway, try upgrading drivers perhaps.

But lighting is initialized only when running the gameplay for the first time, so the menu should be loaded without any problems.
Of course it checks for the extensions in when initializing the game, so it would prevent you from using it in the first place.

old Re: Segmentation fault on launch (Antergos)

GeoB99
Moderator Off Offline

Quote
user SQ has written
Try running the game with skip intro flag.

I ran the game without the intro and it is still the same. Begs the question, if Pulseaudio is really of a big problem then why does it happen on Arch based distros and not on other distros such as Ubuntu?

Sure, it will still crash because of other issues like win bug explained there thread cs2d Black screen on Linux however you can bypass it temporarily and you'll see CS2D not crashing. By this matter, I assume there's something wrong in my system but I can't see exactly where...

old Re: Segmentation fault on launch (Antergos)

SQ
Moderator Off Offline

Quote
In either way, I don't really want to explain the issue, you won't just get it. It was fixed meanwhile rewriting some core stuff in 1.0.0.4. DC initialized a lot of stuff twice due to command line and config parameters conflict. I need to get Linux to make sure that doesn't happen anymore.

old Re: Segmentation fault on launch (Antergos)

_Yank
User Off Offline

Quote
@user GeoB99: Nothing is wrong with your system, I used to have this problem on my Arch machine but I can't remember how I fixed it.

Somehow I still think it that it is related to the graphics scene. Your gdb backtrace is reporting that the error is related to i965_dri which happens to be the driver module for your intel integrated GPU.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview