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

RBDOOM-3-BFG VR Linux #83

Open
serk7 opened this issue Feb 25, 2017 · 10 comments
Open

RBDOOM-3-BFG VR Linux #83

serk7 opened this issue Feb 25, 2017 · 10 comments

Comments

@serk7
Copy link

serk7 commented Feb 25, 2017

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();

@Codes4Fun
Copy link
Owner

Codes4Fun commented Feb 25, 2017 via email

@serk7
Copy link
Author

serk7 commented Mar 2, 2017

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.

@ChristophHaag
Copy link

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

@Seegras
Copy link

Seegras commented Mar 8, 2017

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 , 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

@serk7
Copy link
Author

serk7 commented Mar 15, 2017

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

@serk7
Copy link
Author

serk7 commented Mar 15, 2017

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.

@ChristophHaag
Copy link

ChristophHaag commented Mar 15, 2017

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.

@serk7
Copy link
Author

serk7 commented Mar 15, 2017

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

@serk7
Copy link
Author

serk7 commented Mar 15, 2017

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

@ChristophHaag
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants