ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.05k stars 259 forks source link

Unity 2018.3b9: Errors when running "Interactions_Example" #193

Closed ciwolsey closed 6 years ago

ciwolsey commented 6 years ago

After hitting play I receive the following errors in the console:

SteamVR]</b> No pose action set for this component
UnityEngine.Debug:LogError(Object)
Valve.VR.SteamVR_Behaviour_Pose:Start() (at Assets/SteamVR/Input/SteamVR_Behaviour_Pose.cs:52)

and also:

Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'

The former appears twice and the latter is spammed constantly. Console Screenshot Editor Log

zite commented 6 years ago

What headset are you using? Did you generate actions in the SteamVR Input window?

ciwolsey commented 6 years ago

It's a regular VIve. There's an actions.json and also various bindings_*.json files. Here's what they look like: actions.json bindings_vive.json

Does bindings_vive.json look normal to you?

ciwolsey commented 6 years ago

If there's anything else I can do to help out with this problem let me know.

zite commented 6 years ago

I've updated the beta with a new version, can you give it a try?

https://github.com/ValveSoftware/steamvr_unity_plugin/releases/tag/2.1b2

ciwolsey commented 6 years ago

Of course.

ciwolsey commented 6 years ago

Unity Beta 10 is out, would you prefer if I use that to test?

zite commented 6 years ago

Sure, I tested with 9, but hopefully they haven't changed anything significant in serialization since then.

zite commented 6 years ago

you're using the beta package that I just put up? It shouldn't show any generation progress bar. That part should be instant now.

ciwolsey commented 6 years ago

Tested with 2018.3b10. The issue with generating actions appears to be fixed but only black is being rendered to the HMD. Pressing the system button takes you to the SteamVR menu and the rendering and tracking works as expected, but when you switch back to the Unity app it continues to render as black. Perhaps that's a new issue with b10 and I'll log that separately after trying with b9 first.

And yes, disregard anything prior to this message because I was dumb and used the asset store version because, I'm dumb.

ciwolsey commented 6 years ago

So I've tested on both b9 and b10 and with both SteamVR stable and SteamVR beta and here are the notes I took:

2018.3b9 with SteamVR stable

Action generation works fine, only get SteamVR overlay though, Unity app remains unresponsive with only SteamVR overlay rendered and console error:

Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"

2018.3b9 with SteamVR beta

Works fine despite the following being spammed to the console:

Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'

2018.3b10 with SteamVR stable

Action generation works fine, black is rendered in Unity app, but SteamVR menu works as expected, chaperone is still rendered but everything else is black when in Unity app

2018.3b10 with SteamVR beta

Works fine despite the following being spammed to the console:

Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL'

In short...

It seems like it works as long as you use the beta version of SteamVR but stable either results in black being rendered, or only the SteamVR overlay. Even when it does work an error is still being spammed to console.

zite commented 6 years ago

Okay I've updated with a new version that has the older openvr_api.cs included. Can you try testing with that? Unfortunately I'm not able to reproduce this locally at the moment.

ciwolsey commented 6 years ago

I've tested on 2018.3.0b10, plugin 2.1b8 along with SteamVR beta branch (because it's not designed to work with the stable branch right?).

The interaction example works fine and there are no issues with the json generation but I am still getting an error when running that doesn't seem to affect anything I've noticed so far: https://i.imgur.com/TbkilI1.png

There are also a couple of errors that I think might be related to GUI which again, don't seem to affect anything I've noticed.

I don't see the error in a blank scene and the only mention I can find where someone else mentioned it is here: https://issuetracker.unity3d.com/issues/mac-glcore-only-the-scene-window-fails-to-refresh-after-a-few-interactions

ciwolsey commented 6 years ago

I discovered I can reproduce this error without SteamVR by doing the following:

  1. Create a new project in Unity 2018.3b10
  2. Install the OpenVR package using package manager
  3. Enable VR support in player settings
  4. Add a particle system to the scene and hit play
  5. Errors appear in console

So I'm guessing this is a Unity problem and I should report it to them?

ciwolsey commented 6 years ago

I've reported it to Unity here: https://fogbugz.unity3d.com/default.asp?1101451_j92jloaev1582tqi

I think this can be closed off now if you like. Thanks!

zite commented 6 years ago

Thanks for your help sorting this out! Hopefully Unity can get that fixed up asap.

tatoforever commented 5 years ago

Im also having this same error: Assertion failed on expression: 'task.rasterData.vertexBuffer == NULL' and im not using Steam VR.

kisak-valve commented 5 years ago

Hello @tatoforever, you'll want to keep an eye on https://issuetracker.unity3d.com/issues/vr-particle-systems-cause-task-dot-rasterdata-dot-indexbuffer-equals-equals-null-error-and-lead-to-graphical-glitches. The investigation on this side has concluded.

tatoforever commented 5 years ago

Thank you, I wrote a message on the issuetracker you posted. Just to inform that I got this same error and I'm not using any Steam services, SDK nor VR (VR and XR modules are disabled in my project).