RBDOOM-3-BFG icon indicating copy to clipboard operation
RBDOOM-3-BFG copied to clipboard

RBDOOM-3-BFG VR Linux

Open serk7 opened this issue 7 years ago • 10 comments

I managed to compile it on linux but i get a segmentation error at launch. Are you going to work to support it on linux? Is it possible to help some how?

----- R_InitOpenGL ----- Initializing OpenGL subsystem Using 8 color bits, 24 depth, 8 stencil display Using GLEW 1.10.0 signal caught: Segmentation fault si_code 1 Trying to exit gracefully.. session->GetSaveGameManager().CancelToTerminate(); soundSystem->StopAllSounds(); Stop();

serk7 avatar Feb 25 '17 10:02 serk7

I'd like to get it working but reading the pages on SteamVR support sounds like it's still very limited. It says in the readme that opengl applications run to slow to be interactive. Another issue is that it says you can't display both on the desktop and hmd, but it's not clear what that means since doom 3 does this itself, so I wonder if they mean SteamVR can't do it or if there is an issues with applications doing it themselves. So it sounds like this early version of SteamVR is only targeting certain application.

On Feb 25, 2017 2:18 AM, "serk7" [email protected] wrote:

I managed to compile it on linux but i get a segmentation error at launch. Are you going to work to support it on linux? Is it possible to help some how?

----- R_InitOpenGL ----- Initializing OpenGL subsystem Using 8 color bits, 24 depth, 8 stencil display Using GLEW 1.10.0 signal caught: Segmentation fault si_code 1 Trying to exit gracefully.. session->GetSaveGameManager().CancelToTerminate(); soundSystem->StopAllSounds(); Stop();

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Codes4Fun/RBDOOM-3-BFG/issues/83, or mute the thread https://github.com/notifications/unsubscribe-auth/ANeeR1arU71UEmf7bZ_EYjoli5zAiHQjks5rf__jgaJpZM4ML-Nz .

Codes4Fun avatar Feb 25 '17 17:02 Codes4Fun

I dont know, but all aplications i tested it's replied on screen, like in windows.

But yep, you are right, the actual steam vr on linux is really alpha state, I have huge delay at moving and many issues. I hope see some improvements soon.

Thank you for the reply.

serk7 avatar Mar 02 '17 22:03 serk7

On my RX 480 with radv, performance and reprojection is both bad/broken, and as the SteamVR readme says, all OpenGL rendering will not be optimal yet, but it does compile and run just fine.

screenshot_20170305_135536

ChristophHaag avatar Mar 05 '17 12:03 ChristophHaag

I also get a segfault. Here's the backtrace:

#0 _dl_close (_map=0x0) at dl-close.c:817 #1 0x00007ffff7de84f4 in _dl_catch_error (objname=0x5555586cdfa0, errstring=0x5555586cdfa8, mallocedp=0x5555586cdf98, operate=0x7ffff4ad8fb0 <dlclose_doit>, args=0x0) at dl-error.c:187 #2 0x00007ffff4ad9521 in _dlerror_run ( operate=operate@entry=0x7ffff4ad8fb0 <dlclose_doit>, args=0x0) at dlerror.c:163 #3 0x00007ffff4ad8fdf in __dlclose (handle=) at dlclose.c:46 #4 0x00007ffff4ce1c2b in vr::VR_InitInternal ( peError=peError@entry=0x7fffffffce30, eApplicationType=eApplicationType@entry=vr::VRApplication_Scene) at openvr_api.cpp:46 #5 0x0000555555907f35 in vr::VR_Init ( eApplicationType=vr::VRApplication_Scene, peError=) at RBDOOM-3-BFG/neo/libs/openvr/headers/openvr.h:3324 #6 VR_Init () at RBDOOM-3-BFG/neo/renderer/RenderSystem_init.cpp:853 #7 R_InitOpenGL () at RBDOOM-3-BFG/neo/renderer/RenderSystem_init.cpp:950 #8 0x0000555555908fc9 in idRenderSystemLocal::InitOpenGL ( this=) at RBDOOM-3-BFG/neo/renderer/RenderSystem_init.cpp:3160 #9 0x00005555557de3b9 in idCommonLocal::Init ( ---Type to continue, or q to quit--- this=0x555556403c20 <commonLocal>, argc=, argv=, cmdline=) at RBDOOM-3-BFG/neo/framework/Common.cpp:1269 #10 0x000055555579636b in main (argc=1, argv=0x7fffffffda98) at RBDOOM-3-BFG/neo/sys/posix/platform_linux.cpp:537

Seegras avatar Mar 08 '17 10:03 Seegras

Ye, will be nice if you tell us how you managed to make it run!

serk7 avatar Mar 15 '17 18:03 serk7

Btw, looking your screenshoot seems is not direct mode... when i make screenshot the view of my headset doesnt appear on it like a secondary monitor.

serk7 avatar Mar 15 '17 18:03 serk7

I can't say I did anything special. In neo/ I did cmake; make and then ./RBDoom3BFG. Of course with the game files in the right place (I don't know where that is, I set that up with the original RBDoom3BFG a long time ago, somewhere in my home directory).

It's not direct mode because there is no direct mode for AMD GPUs on Linux. Valve recently hired Keith Packard as consultant and he'll make sure it comes to AMD GPUs too.

Edit: Forgot to mention that I'm on a very up to date Archlinux, so either it's "extended mode" or a bleeding edge system that makes it work.

ChristophHaag avatar Mar 15 '17 18:03 ChristophHaag

oh, i didn't know that. I compiled it in a diferent way.. i will try again. Thank you anyway.

serk7 avatar Mar 15 '17 19:03 serk7

nvm, keep crashing, doesnt matter how i compile it :(

WARNING: Unable to open resource file maps/_startup.resources ----- Initializing Decls ----- Couldn't open journal files /proc/cpuinfo CPU processors: 3 /proc/cpuinfo CPU logical cores: 3 execing default.cfg couldn't exec D3BFGVRConfig.cfg couldn't exec autoexec.cfg ----- R_InitOpenGL ----- Initializing OpenGL subsystem Using 8 color bits, 24 depth, 8 stencil display Using GLEW 1.10.0 signal caught: Segmentation fault

serk7 avatar Mar 15 '17 19:03 serk7

Hm...

WARNING: Unable to open resource file maps/_startup.resources
----- Initializing Decls -----
------------------------------
Couldn't open journal files
/proc/cpuinfo CPU processors: 3
/proc/cpuinfo CPU logical cores: 3
execing default.cfg
execing D3BFGVRConfig.cfg
couldn't exec autoexec.cfg
----- R_InitOpenGL -----
Initializing OpenGL subsystem
Using 8 color bits, 24 depth, 8 stencil display
Using GLEW 1.10.0
/home/chris/.local/share/Steam/SteamApps/common/SteamVR/tools/bin/linux64/vrdashboard: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory
GameController 0 name: XInput Controller
GameController 0 is mapped as "00000000000000000000000000000000,XInput Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,".
OpenGL Version   : 3.0
OpenGL Vendor    : X.Org
OpenGL Renderer  : Gallium 0.4 on AMD POLARIS10 (DRM 3.9.0 / 4.10.0-g4977ab6e92e2, LLVM 5.0.0)
OpenGL GLSL      : 1.3

etc.

I looked it up and under ~/.rbdoom3bfg I have a symlink base -> ~/SteamApps/common/DOOM 3 BFG Edition/base/. But that's probably not the cause anyway, when the stacktrace ends at

vr::VR_InitInternal (
peError=peError@entry=0x7fffffffce30,
eApplicationType=eApplicationType@entry=vr::VRApplication_Scene)
at openvr_api.cpp:46

This sounds more like something going wrong in SteamVR.

ChristophHaag avatar Mar 15 '17 20:03 ChristophHaag