ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
918 stars 45 forks source link

[BUG] Unexpected Problem 483 #690

Open Hicks79 opened 4 months ago

Hicks79 commented 4 months ago

Describe the bug I receive code 483

To Reproduce Just SteamVr (Beta) starts

System Information (please complete the following information):

Screenshots imagen

Additional context In Console-develop i have this:

vrcompositor Tue Apr 30 2024 22:28:14.226349 [Error] - Unflushed events requested in CGpuTiming::GetDeltas! vrcompositor Tue Apr 30 2024 22:28:14.226400 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcompositor Tue Apr 30 2024 22:28:14.226470 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcompositor Tue Apr 30 2024 22:28:14.237460 [Error] - Unflushed events requested in CGpuTiming::GetDeltas! vrcompositor Tue Apr 30 2024 22:28:14.237511 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcompositor Tue Apr 30 2024 22:28:14.237582 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcompositor Tue Apr 30 2024 22:28:14.248544 [Error] - Unflushed events requested in CGpuTiming::GetDeltas! vrcompositor Tue Apr 30 2024 22:28:14.248603 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcompositor Tue Apr 30 2024 22:28:14.248682 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcompositor Tue Apr 30 2024 22:28:14.259717 [Error] - Unflushed events requested in CGpuTiming::GetDeltas! vrcompositor Tue Apr 30 2024 22:28:14.259779 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent! vrcomp

TTimo commented 4 months ago

Hello,

Thank you for your report. Please review the bug report guidelines at https://github.com/ValveSoftware/SteamVR-for-Linux/blob/master/issue_template.md and provide the requested logs and crash dumps so that we can investigate.

Hicks79 commented 4 months ago

Thanks TTimo, I will try to provide as much information as possible this week.

Thanks again!

JoeRosselli commented 4 months ago

Hi, I guess I'll chime in since I tried running my game on Linux today, which used to work fine with Steam VR, but it failed horribly today, and I saw a bunch of the same error logs that Hicks79 posted.

The issue template you linked to is a broken link, btw. My basic information is:

Steam Beta Branch:  Stable Client
Steam Version:  1715635533
Steam Client Build Date:  Mon, May 13 2:01 PM UTC -08:00
Steam Web Build Date:  Mon, May 13 11:06 AM UTC -08:00
Steam API Version:  SteamClient021

SteamVR App ID: 250820
SteamVR Build ID: 14321576

OS: Ubuntu 23.10

I don't feel comfortable posting the logs/dump files as they are not stripped of personal information - they're full of full filesystem paths, usernames, unreleased program names, HTTP requests with authorization code query parameters, etc.

My repro is I have a C++/Vulkan game which uses OpenVR for VR output. All I do with OpenVR is initialize it, get poses, and submit eye textures so that I can have basic headset output. Upon running my game today, these are the various error logs I see from OpenVR in my logs:

Wed May 15 2024 14:23:09.370267 [Info] - Capturing Scene Focus
Wed May 15 2024 14:23:09.370391 [Error] - No GPU timing Vulkan device in CVRCompositorSharedTextures::BeginGPUTimingCommandBuffer!
Wed May 15 2024 14:23:09.370419 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:23:09.370434 [Error] - Invalid command buffer in CVRCompositorSharedTextures::FinishOpenCommandBuffer!
Wed May 15 2024 14:23:09.373010 [Info] - Enable advanced image processing of scene textures.
Wed May 15 2024 14:23:09.387788 [Info] - Initializing CVulkanVRRenderer
Wed May 15 2024 14:23:09.387823 [Info] - Debug markers: disabled, missing extension support. Is the Renderdoc layer enabled?
Wed May 15 2024 14:23:09.428362 [Info] - Initialized Vulkan transfer ring buffer, mapped at offset 0x0x7fff40000000.

...

Wed May 15 2024 14:23:09.485662 [Info] - Setting max texture dimensions to 2421x2690 before requiring downsampling
Wed May 15 2024 14:23:09.487953 [Info] - Created remote Vulkan image 0x710003dbbb, dimensions 1920 x 1080, format 43, memory size 8847360 and memory type 1.
Wed May 15 2024 14:23:09.490196 [Info] - Created remote Vulkan image 0x720003dbbb, dimensions 1920 x 1080, format 43, memory size 8847360 and memory type 1.
Wed May 15 2024 14:23:09.492473 [Info] - Created remote Vulkan image 0x730003dbbb, dimensions 1920 x 1080, format 43, memory size 8847360 and memory type 1.
Wed May 15 2024 14:23:09.495249 [Info] - Created remote Vulkan image 0x740003dbbb, dimensions 1920 x 1080, format 43, memory size 8847360 and memory type 1.
Wed May 15 2024 14:23:09.497637 [Info] - Created remote Vulkan image 0x750003dbbb, dimensions 1920 x 1080, format 43, memory size 8847360 and memory type 1.
Wed May 15 2024 14:23:09.499881 [Info] - Created remote Vulkan image 0x760003dbbb, dimensions 1920 x 1080, format 43, memory size 8847360 and memory type 1.
Wed May 15 2024 14:23:09.499991 [Error] - Unflushed events requested in CGpuTiming::GetDeltas!

In vrcompositor.txt log file, I see thousands of these lines:

Wed May 15 2024 14:27:33.599376 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:27:33.610523 [Error] - Unflushed events requested in CGpuTiming::GetDeltas!
Wed May 15 2024 14:27:33.610546 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:27:33.610596 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:27:33.621641 [Error] - Unflushed events requested in CGpuTiming::GetDeltas!
Wed May 15 2024 14:27:33.621663 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:27:33.621716 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:27:33.632871 [Error] - Unflushed events requested in CGpuTiming::GetDeltas!
Wed May 15 2024 14:27:33.632893 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!
Wed May 15 2024 14:27:33.632944 [Error] - No Vulkan command buffer open in CGpuTiming::MarkEvent!

Shortly after those logs, OpenVR hard locks up and blocks my render thread forever when I'm submitting one of the eye textures, forcing me to kill the game to recover. I never get any output to the headset, it locks up before it successfully displays anything.

To reiterate, this same code worked fine on Linux a few months ago. I don't know what version it used to work with, just that trying today with the latest version of SteamVR it hard locks up.

JoeRosselli commented 4 months ago

I tried to switch to the previous version of Steam VR, Build ID 13801674, and I get the same errors with my game, and it also locks up even when trying to launch Steam VR home as well.

vrcompositor.txt log from a failure to open Steam VR home is attached:

log.txt

kisak-valve commented 2 months ago

Hello @Hicks79, @JoeRosselli, the previously linked issue report template was removed because it had been superseded some years back and keeping it around was a source of confusion.

Please read the revised System Information section found at https://github.com/ValveSoftware/SteamVR-for-Linux/issues/new?template=bug_report.md, copy that section here, and fill out the requested details.

JoeRosselli commented 2 months ago

For me at least, as of Steam VR build id 14523237, I no longer have the issue; it runs fine again without error.

Tangential, but for the last year or two I'd always get at least a couple of one-time Vulkan validation layer errors spawned from OpenVR internal code for the first few frame rendered, but as of this build I also don't get any of that, which is nice.

Hicks79 commented 1 month ago

Hi, sorry for the wait

this bug does not make sense, because I received another 109, 496... (The 483 I do not receive the error anymore I think)

I have removed a bluetooth that I had in usb, in case it was a problem.

I hope thats helps guys, and thanks so much.

Describe the bug

To Reproduce Steps to reproduce the behavior:

  1. Just SteamVr (Beta) starts

System Information (please complete the following information): Please use the latest Steam beta client and SteamVR beta for your bug reports!

Nvidia 550.90.07

steam-logs.tar.gz