Closed Anonycube closed 8 years ago
try launch with -nosound. It seems that you have wrong alsa configuration.
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.
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.
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.
when attempting to launch the xash3d executable directly, it brings up the error "Unable to load the libxash.so"
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
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.
Ah, when you have launched GDB, you must launch program itself by run
command
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]
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
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)
at ../utils/vgui/lib-src/vgui/TextImage.cpp:87
at ../utils/vgui/lib-src/vgui/TextImage.cpp:83
wide=@0xbfffefc8: 0, tall=@0xbfffefcc: 0)
at ../utils/vgui/lib-src/vgui/TextImage.cpp:324
text=0xb1287979 "") at ../utils/vgui/lib-src/vgui/TextImage.cpp:52
at ../utils/vgui/lib-src/vgui/TextImage.cpp:58
textBufferLen=<optimized out>, this=0x88b15a8)
at ../utils/vgui/lib-src/vgui/TextImage.cpp:18
text=0xb1287979 "") at ../utils/vgui/lib-src/vgui/TextImage.cpp:26
textBufferLen=1, this=0x88b14a0) at ../utils/vgui/lib-src/vgui/Label.cpp:70
at ../utils/vgui/lib-src/vgui/Label.cpp:93
pHelper=0xb12b333c <g_VoiceStatusHelper>,
pParentPanel=0xb12b616c <gViewPort>) at ../cl_dll/voice_status.cpp:212
from /home/genkaz/Desktop/LinXash3D/xash3d/libxash.so
---Type
from /home/genkaz/Desktop/LinXash3D/xash3d/libxash.so
from /home/genkaz/Desktop/LinXash3D/xash3d/libxash.so
the half life process did not crash, it just hanged there without it being possible to access it in any way.
Are you enabled VGUI?
See possible configurations for CMake in our wiki.
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.
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.
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.
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.
Try build hlsdk-client , it does not need vgui.
when I attempt to launch the compiled engine through xash3d.sh, the following appears in console:
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} $@