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

OpenGL API detection fail (Linux) #3528

Open
nkindt opened this issue Jan 29, 2025 · 2 comments
Open

OpenGL API detection fail (Linux) #3528

nkindt opened this issue Jan 29, 2025 · 2 comments
Labels
Bug A crash, misbehaviour, or other problem Need More Info More information is needed from a user to work on this issue

Comments

@nkindt
Copy link

nkindt commented Jan 29, 2025

Description of Bug

OpenGL 4.1 API not detected on Linux while trying to debug OpenXRay rendering pipe.

Steps to reproduce

  1. Fetch and compile https://github.com/OpenXRay/xray-16
cd xray-16 && mkdir bin && cd bin
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_BINDIR=/usr/games
make -j

details and other distro-specifics over here:
https://github.com/OpenXRay/xray-16/wiki/%5BEN%5D-How-to-build-and-setup-on-Linux

  1. Launch supported game like Clear Sky or Call of Pripyat via RenderDoc (must own one of those games, tested on Clear Sky but shouldn't matter)
# Clear Sky example
xr_3da -cs

From here on RenderDoc doesn't see any API.

The engine itself uses a simple startup-binary to load modules in (dll/so), one of which is where OpenGL is being initialized and for some reasons RenderDoc doesn't see anything. Chances are that if OpenXRay is compiled statically into one binary it could work. Tried all launch-options that are provided by RenderDoc but nothing works.

Note: APITrace 12 has no problems detecting, capturing and replaying this.

Environment

  • RenderDoc version: 1.36
  • Operating System: Linux (Ubuntu based)
  • Graphics API: OpenGL 4.1
@baldurk
Copy link
Owner

baldurk commented Jan 30, 2025

I'm not able to reproduce this following your steps.

I built the project and set it up with clear sky, and when I run it from RenderDoc it works as expected and captures from GL. Specifically I followed the instructions to make a portable build as I did not want to install it system-wide, and ran the program with an extra LD_LIBRARY_PATH to fix it not being able to find one of its .so files.

I was only able to take a capture of the main menu as the program crashes when trying to start a new game but that's enough to prove that it works at least.

@baldurk baldurk added Bug A crash, misbehaviour, or other problem Need More Info More information is needed from a user to work on this issue labels Jan 30, 2025
@nkindt
Copy link
Author

nkindt commented Jan 30, 2025

Ok, that is odd. I will double check the following days and see what the hell is going on as i tried literally everything and only APITrace worked. Thanks for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A crash, misbehaviour, or other problem Need More Info More information is needed from a user to work on this issue
Projects
None yet
Development

No branches or pull requests

2 participants