FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
552 stars 107 forks source link

core dumped #96

Closed Anonycube closed 8 years ago

Anonycube commented 8 years ago

when I attempt to launch the compiled engine through xash3d.sh, the following appears in console:

 (build 3153) started at Dec04 2015 [22:44.12]

ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave ./xash3d.sh: line 50: 10166 Segmentation fault (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} $@

mittorn commented 8 years ago

try launch with -nosound. It seems that you have wrong alsa configuration.

Anonycube commented 8 years ago

here is the result of attempting it with no sound:

Home directory not accessible: Permission denied

(build 3153) started at Dec05 2015 [07:49.27]

./xash3d.sh: line 50: 23573 Segmentation fault (core dumped) ${DEBUGGER} "${GAMEROOT}"/${GAMEEXE} $@

the alsa complaint does disappear.

Anonycube commented 8 years ago

I might be planning to try building and running it on a bunch of different really fresh linux distro installs, and see which one works properly, however it would still be kind of nice to fix it on this one as well.

currently I am running Lubuntu, I might try it again on a just installed Lubuntu, as well as on Linux Mint and Arch, and possibly Debian and Fedora.

The alsa thing may be my bad because I did tinker with some sound related things while trying to fix an unrelated issue with wine and it having sound lag with a specific application... which makes it sort of related actually.

I want to get the Linux version of Xash3d running because it should give a noticeable performance boost, due to the fact of running the windows version in wine not being optimal, since this machine is not brand new.

Anonycube commented 8 years ago

going root does get rid of the permission denied error, however the core dumped error remains. Plus it would be nice if it was not necessary to go root anyway.

Anonycube commented 8 years ago

when attempting to launch the xash3d executable directly, it brings up the error "Unable to load the libxash.so"

a1batross commented 8 years ago

Strange crash, You can try launch this in GDB.

LD_LIBRARY_PATH=pwdgdb xash3d

After crash, print gdb backtrace by "bt" command. And paste the output here.

I am already built a DEB packages for Xash3D. But it's outdated. If you want, you can try rebuild this. https://build.opensuse.org/package/show/home:a1batross/xash3d-sdl

Anonycube commented 8 years ago

I am a complete rookie when it comes to GDB, the thing that you suggested above does not work for me, how exactly do I use it in order to launch?

and when I try to use the bt command, it says no stack. It also says no debugging symbols found. It also said undefined command about LD_LIBRARY_PATH.

no launching of the engine itself seems to be present.

a1batross commented 8 years ago

Ah, when you have launched GDB, you must launch program itself by run command

Anonycube commented 8 years ago

still says no stack, here is what it outputted while running:

[Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". libxash.so: cannot open shared object file: No such file or directory Xash Error: Unable to load the libxash.so [Inferior 1 (process 5360) exited with code 01]

a1batross commented 8 years ago

Did you set LD_LIBRARY_PATH? It's important variable, because says ld to search libraries in specified directories.

Try this:

export LD_LIBRARY_PATH=`pwd`
gdb ./xash3d

And in gdb:

run
# crash
bt
Anonycube commented 8 years ago

Program received signal SIGSEGV, Segmentation fault. 0xb11a51ed in vgui::TextImage::getFont (this=0x88b15a8) at ../utils/vgui/lib-src/vgui/TextImage.cpp:87 87 ../utils/vgui/lib-src/vgui/TextImage.cpp: No such file or directory. (gdb)

0 0xb11a51ed in vgui::TextImage::getFont (this=0x88b15a8)

at ../utils/vgui/lib-src/vgui/TextImage.cpp:87

1 vgui::TextImage::getFont (this=0x88b15a8)

at ../utils/vgui/lib-src/vgui/TextImage.cpp:83

2 0xb11a4d26 in vgui::TextImage::getTextSize (this=0x88b15a8,

wide=@0xbfffefc8: 0, tall=@0xbfffefcc: 0)
at ../utils/vgui/lib-src/vgui/TextImage.cpp:324

3 0xb11a5177 in vgui::TextImage::setText (this=0x88b15a8, textBufferLen=1,

text=0xb1287979 "") at ../utils/vgui/lib-src/vgui/TextImage.cpp:52

4 0xb11a511c in vgui::TextImage::setText (this=0x88b15a8, text=0xb1287979 "")

at ../utils/vgui/lib-src/vgui/TextImage.cpp:58

5 0xb11a5252 in vgui::TextImage::init (text=0xb1287979 "",

textBufferLen=<optimized out>, this=0x88b15a8)
at ../utils/vgui/lib-src/vgui/TextImage.cpp:18

6 vgui::TextImage::TextImage (this=0x88b15a8, textBufferLen=1,

text=0xb1287979 "") at ../utils/vgui/lib-src/vgui/TextImage.cpp:26

7 0xb11975ed in vgui::Label::init (textFitted=true, text=0xb1287979 "",

textBufferLen=1, this=0x88b14a0) at ../utils/vgui/lib-src/vgui/Label.cpp:70

8 vgui::Label::Label (this=0x88b14a0, text=0xb1287979 "")

at ../utils/vgui/lib-src/vgui/Label.cpp:93

9 0xb1268172 in CVoiceStatus::Init (this=0xb12cfea0 ,

pHelper=0xb12b333c <g_VoiceStatusHelper>, 
pParentPanel=0xb12b616c <gViewPort>) at ../cl_dll/voice_status.cpp:212

10 0xb1225d1a in CHud::Init (this=0xb12b6180 ) at ../cl_dll/hud.cpp:369

11 0xb122ead4 in HUD_Init () at ../cl_dll/cdll_int.cpp:216

12 0xb526991e in CL_LoadProgs ()

from /home/genkaz/Desktop/LinXash3D/xash3d/libxash.so ---Type to continue, or q to quit---

13 0xb5286a3b in CL_Init ()

from /home/genkaz/Desktop/LinXash3D/xash3d/libxash.so

14 0xb51b6d97 in Host_Main ()

from /home/genkaz/Desktop/LinXash3D/xash3d/libxash.so

15 0x08048bd3 in main ()

the half life process did not crash, it just hanged there without it being possible to access it in any way.

a1batross commented 8 years ago

Are you enabled VGUI?

See possible configurations for CMake in our wiki.

Anonycube commented 8 years ago

loading the engine without vgui support does seem to work, however it does not load half life whatsoever when attempting to select the difficulty setting, it also does not recognize any mod folders. When attempting to execute xash3d directly without the sh, the same error about libxash.so appears.

Anonycube commented 8 years ago

Anyone still here? the engine unfortunately does not work properly yet, however the main menu does launch. It is not possible to load any games or mods or to start the game by selecting the difficulty.

a1batross commented 8 years ago

I don't know how you built the engine and why it doesn't works. And I don't know what can be simpler than copying libxash.so, libxashmenu.so, libvgui_support.so, vgui.so and xash3d into the one folder and launching this.

Anonycube commented 8 years ago

alright, in that case I have no idea either, I might try to get it to work on a different distro installation, thank you for your help.

mittorn commented 8 years ago

Try build hlsdk-client , it does not need vgui.