Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FreeBSD 14 amd64] cant initialize libref_gl.so render Crash: signal 11 #1788

Open
drvptr opened this issue Aug 18, 2024 · 9 comments
Open
Labels
bug Something isn't working FreeBSD Related to FreeBSD operating system

Comments

@drvptr
Copy link

drvptr commented Aug 18, 2024

Actually what i did:

user@ASUS_N56VB:~ % git clone --recursive https://github.com/FWGS/xash3d-fwgs
Клонирование в «xash3d-fwgs»...
remote: Enumerating objects: 27865, done.
.......see more in fulllog.txt..
remote: Total 136 (delta 0), reused 1 (delta 0), pack-reused 132 (from 1)
Получение объектов: 100% (136/136), 730.78 КиБ | 1.51 МиБ/с, готово.
Определение изменений: 100% (57/57), готово.
Submodule path '3rdparty/vgui_support/vgui-dev': checked out '93573075afe885618ea15831e72d44bdacd65bfb'

user@ASUS_N56VB:~ % tar -xvf HLCS_Linux.tar.xz
x HLCS/
x HLCS/cstrike.sh
x HLCS/game/
.......see more in fulllog.txt..
x HLCS/hl.sh
x HLCS/bshift.sh
x HLCS/oforce.sh

user@ASUS_N56VB:~ % cd xash3d-fwgs
user@ASUS_N56VB:~/xash3d-fwgs % ./waf configure -T release -8
Setting top to : /home/user/xash3d-fwgs
Setting out to : /home/user/xash3d-fwgs/build
Build type : humanrights
LTO build : no
PolyOpt build : no
OpenMP build : no
Generate profile : no
Use profile : not found
Checking for 'clang' (C compiler) : /usr/bin/clang
.......see more in fulllog.txt..
Does this architecture support VGUI? : no
vgui is not supported on this CPU: x86_64
<-- 3rdparty/vgui_support : done
--> game_launch : in progress
<-- game_launch : done
'configure' finished successfully (2.474s)

user@ASUS_N56VB:~/xash3d-fwgs % ./waf build
32mBuild commands will be stored in build/compile_commands.json
32mWaf: Entering directory '/home/user/xash3d-fwgs/build'
[ 1/273] Compiling 32mpublic/xash3d_mathlib.c
[ 2/273] Compiling 32mpublic/crtlib.c
[ 3/273] Compiling 32mpublic/build.c
[ 4/273] Compiling 32mpublic/utflib.c
.......see more in fulllog.txt..
In file included from ../3rdparty/mainui/miniutl/utlmemory.h:15:
1m../3rdparty/mainui/miniutl/miniutl.h:102:34: 0m 0;1;35mwarning: 0m 1mformat string is not a string literal [-Wformat-nonliteral] 0m
_vsnprintf( buf, sizeof( buf ), fmt, va );
0;1;32m ^~~
0m1 warning generated.
0m
[273/273] Linking 33mbuild/3rdparty/mainui/libmenu.so 0m
32mWaf: Leaving directory '/home/user/xash3d-fwgs/build' 0m
32m'build' finished successfully (34.434s) 0m

user@ASUS_N56VB:~/xash3d-fwgs % ./waf install --destdir=./build/installed
32mWaf: Entering directory '/home/user/xash3d-fwgs/build' 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/filesystem_stdio.so 0m (from build/filesystem/filesystem_stdio.so) 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/libxash.so 0m (from build/engine/libxash.so) 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/valve/extras.pk3 0m (from build/3rdparty/extras/extras.pk3) 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/libref_gl.so 0m (from build/ref/gl/libref_gl.so) 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/libref_soft.so 0m (from build/ref/soft/libref_soft.so) 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/libmenu.so 0m (from build/3rdparty/mainui/libmenu.so) 0m
32m 0m+ install 01;34m/home/user/xash3d-fwgs/build/installed/xash3d 0m (from build/game_launch/xash3d) 0m
32mWaf: Leaving directory '/home/user/xash3d-fwgs/build' 0m
32m'install' finished successfully (0.296s) 0m

user@ASUS_N56VB:~/xash3d-fwgs % cd build/installed/
user@ASUS_N56VB:~/xash3d-fwgs/build/installed % mv ~/HLCS/game/valve/* ./valve/

user@ASUS_N56VB:~/xash3d-fwgs/build/installed % ./xash3d
image
image

Ver: Xash3D FWGS 0.21 (build 3427-3dcd6cb8, freebsd-amd64)
Crash: signal 11 errno 0 with code 1 at 0x83b91ad30
Ver: Xash3D FWGS 0.21 (build 3427-3dcd6cb8, freebsd-amd64)
Crash: signal 11 errno 0 with code 1 at 0x83b91ad30
Stack backtrace:
Stack backtrace:
1: 0x826c04f73 (/home/user/xash3d-fwgs/build/installed/libxash.so)
1: 0x826c04f73 (/home/user/xash3d-fwgs/build/installed/libxash.so)
2: 0x83c481741 <GetRefAPI+60033> (./libref_soft.so)
2: 0x83c481741 <GetRefAPI+60033> (./libref_soft.so)
3: 0x826cd8b3c <pfnSPR_Frames+239452> (/home/user/xash3d-fwgs/build/installed/libxash.so)
3: 0x826cd8b3c <pfnSPR_Frames+239452> (/home/user/xash3d-fwgs/build/installed/libxash.so)
4: 0x826cd88f1 <pfnSPR_Frames+238865> (/home/user/xash3d-fwgs/build/installed/libxash.so)
4: 0x826cd88f1 <pfnSPR_Frames+238865> (/home/user/xash3d-fwgs/build/installed/libxash.so)
5: 0x826ca9e3a <pfnSPR_Frames+47706> (/home/user/xash3d-fwgs/build/installed/libxash.so)
5: 0x826ca9e3a <pfnSPR_Frames+47706> (/home/user/xash3d-fwgs/build/installed/libxash.so)
6: 0x826c07d94 <Host_Main+2548> (/home/user/xash3d-fwgs/build/installed/libxash.so)
6: 0x826c07d94 <Host_Main+2548> (/home/user/xash3d-fwgs/build/installed/libxash.so)
7: 0x201bb6 (/home/user/xash3d-fwgs/build/installed/xash3d)
7: 0x201bb6 (/home/user/xash3d-fwgs/build/installed/xash3d)
8: 0x823fe4afa <__libc_start1+298> (/lib/libc.so.7)
8: 0x823fe4afa <__libc_start1+298> (/lib/libc.so.7)
9: 0x201a90 (/home/user/xash3d-fwgs/build/installed/xash3d)
9: 0x201a90 (/home/user/xash3d-fwgs/build/installed/xash3d)
Stack dump:
Stack dump:
0: 0x826cf2960 <_fini+23432> (/home/user/xash3d-fwgs/build/installed/libxash.so)
0: 0x826cf2960 <_fini+23432> (/home/user/xash3d-fwgs/build/installed/libxash.so)
1: 0x826bbc0f5 (/home/user/xash3d-fwgs/build/installed/libxash.so)
1: 0x826bbc0f5 (/home/user/xash3d-fwgs/build/installed/libxash.so)
2: 0x2
2: 0x2
3: 0x826cfa540 <_fini+55144> (/home/user/xash3d-fwgs/build/installed/libxash.so)
3: 0x826cfa540 <_fini+55144> (/home/user/xash3d-fwgs/build/installed/libxash.so)
4: 0x83c472cc0 <GetRefAPI+0> (./libref_soft.so)
4: 0x83c472cc0 <GetRefAPI+0> (./libref_soft.so)
5: 0x83c4c4ad8 <_fini+147072> (./libref_soft.so)
5: 0x83c4c4ad8 <_fini+147072> (./libref_soft.so)
6: 0x82088b850
6: 0x82088b850
7: 0x83c481741 <GetRefAPI+60033> (./libref_soft.so)
7: 0x83c481741 <GetRefAPI+60033> (./libref_soft.so)
8: 0x1ea0225c
8: 0x1ea0225c
9: 0x0
9: 0x0
10: 0x3
10: 0x3
11: 0x3b415680a808
11: 0x3b415680a808
12: 0x83c4615b8 (./libref_soft.so)
12: 0x83c4615b8 (./libref_soft.so)
13: 0x82088b750
13: 0x82088b750
14: 0x826bc8b39 (/home/user/xash3d-fwgs/build/installed/libxash.so)
14: 0x826bc8b39 (/home/user/xash3d-fwgs/build/installed/libxash.so)
15: 0x826bbc0f5 (/home/user/xash3d-fwgs/build/installed/libxash.so)
15: 0x826bbc0f5 (/home/user/xash3d-fwgs/build/installed/libxash.so)
16: 0x826bbc0f5 (/home/user/xash3d-fwgs/build/installed/libxash.so)
16: 0x826bbc0f5 (/home/user/xash3d-fwgs/build/installed/libxash.so)
17: 0x2
17: 0x2
18: 0x83c472cc0 <GetRefAPI+0> (./libref_soft.so)
18: 0x83c472cc0 <GetRefAPI+0> (./libref_soft.so)
19: 0x827b55978 <_fini+15109024> (/home/user/xash3d-fwgs/build/installed/libxash.so)
19: 0x827b55978 <_fini+15109024> (/home/user/xash3d-fwgs/build/installed/libxash.so)
20: 0x82088b980
20: 0x82088b980
21: 0x826cd8b3c <pfnSPR_Frames+239452> (/home/user/xash3d-fwgs/build/installed/libxash.so)
21: 0x826cd8b3c <pfnSPR_Frames+239452> (/home/user/xash3d-fwgs/build/installed/libxash.so)
22: 0x735f66657262696c
22: 0x735f66657262696c
23: 0x6f732e74666f
23: 0x6f732e74666f
24: 0x82088b8f0
24: 0x82088b8f0
25: 0x8240d47a7 <twalk+5351> (/lib/libc.so.7)
25: 0x8240d47a7 <twalk+5351> (/lib/libc.so.7)
26: 0x29a122efe5e230c1
26: 0x29a122efe5e230c1
27: 0x826bca34a (/home/user/xash3d-fwgs/build/installed/libxash.so)
27: 0x826bca34a (/home/user/xash3d-fwgs/build/installed/libxash.so)
28: 0x1
28: 0x1
29: 0x3b415620b300
29: 0x3b415620b300
30: 0xc
30: 0xc
31: 0x3d
31: 0x3d
fulllog.txt

@a1batross
Copy link
Member

It sure shouldn't crash like that.

But can you re-run engine with -dev 2 -log and post engine.log file here?

@a1batross a1batross added bug Something isn't working FreeBSD Related to FreeBSD operating system labels Aug 18, 2024
@drvptr
Copy link
Author

drvptr commented Aug 18, 2024

It sure shouldn't crash like that.

But can you re-run engine with -dev 2 -log and post engine.log file here?

Sure
engine.log

@a1batross
Copy link
Member

There are few things.

  1. You need to compile HLSDK from hlsdk-portable repository to use it on FreeBSD, as FreeBSD isn't supported by Valve, so we have our custom port for it.

  2. It says in the log that Error: Couldn't initialize OpenGL: GLX is not supported. Do you run it under X11 with accelerated graphics enabled? If you're using Wayland, it might need SDL_VIDEODRIVER=wayland environment variable to be set.

@nekonomicon
Copy link
Member

tar -xvf HLCS_Linux.tar.xz
x HLCS/
x HLCS/cstrike.sh
x HLCS/game/
.......see more in fulllog.txt..
x HLCS/hl.sh
x HLCS/bshift.sh
x HLCS/oforce.sh

What is this?

@nekonomicon
Copy link
Member

You need to compile HLSDK from hlsdk-portable repository to use it on FreeBSD, as FreeBSD isn't supported by Valve, so we have our custom port for it.

Plus Valve's game libraries is 32-bit only.

@drvptr
Copy link
Author

drvptr commented Aug 18, 2024

tar -xvf HLCS_Linux.tar.xz
x HLCS/
x HLCS/cstrike.sh
x HLCS/game/
.......see more in fulllog.txt..
x HLCS/hl.sh
x HLCS/bshift.sh
x HLCS/oforce.sh

What is this?

This is the original valve resource - "valve" directory

@drvptr
Copy link
Author

drvptr commented Aug 18, 2024

I tried adding the hlsdk library. Now the xash3d stuck on "SV_AllocStringPool()"
user@ASUS_N56VB:~ % git clone --recursive https://github.com/FWGS/hlsdk-portable
Клонирование в «hlsdk-portable»...
remote: Enumerating objects: 29531, done.

...
Определение изменений: 100% (57/57), готово.
Submodule path 'vgui_support/vgui-dev': checked out '93573075afe885618ea15831e72d44bdacd65bfb'

user@ASUS_N56VB:~ % cd hlsdk-portable/
user@ASUS_N56VB:~/hlsdk-portable % ./waf configure -T release -8
Setting top to : /home/user/hlsdk-portable
Setting out to : /home/user/hlsdk-portable/build

...
<-- cl_dll : done
'configure' finished successfully (1.145s)

user@ASUS_N56VB:~/hlsdk-portable % ./waf
Build commands will be stored in build/compile_commands.json
Waf: Entering directory '/home/user/hlsdk-portable/build'
[ 1/170] Compiling dlls/nodes.cpp
[ 2/170] Compiling dlls/gauss.cpp

...
Waf: Leaving directory '/home/user/hlsdk-portable/build'
'build' finished successfully (16.636s)

user@ASUS_N56VB:~/hlsdk-portable % ./waf install --destdir=./result

user@ASUS_N56VB:~/hlsdk-portable/result/valve % cp cl_dlls/client_freebsd_amd64. so ~/xash3d-fwgs/build/installed/valve/cl_dlls/

user@ASUS_N56VB:~/hlsdk-portable/result/valve % cp dlls/hl_freebsd_amd64.so ~/x ash3d-fwgs/build/installed/valve/dlls/

user@ASUS_N56VB:~/hlsdk-portable/result/valve % cd ~/xash3d-fwgs/build/installed

user@ASUS_N56VB:~/xash3d-fwgs/build/installed % ./xash3d
^\Выход(core dumped)
image
engine.log
fulllog2.txt

@drvptr
Copy link
Author

drvptr commented Aug 18, 2024

after a long time
image

@drvptr
Copy link
Author

drvptr commented Aug 18, 2024

It launched, after 7 minutes, if build x86+disable-gl and start. I'll try to run it with debugging
image
engine.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FreeBSD Related to FreeBSD operating system
Projects
None yet
Development

No branches or pull requests

3 participants