UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

6950XT + SteamVR = Crash

Open rygo6 opened this issue 2 years ago • 8 comments

The 6000 series Radeon cards are currently crashing with the 22.8.2 driver when loading a video in a Unity VR application running through SteamVR. Specifically, this is happening in VRChat, so whatever version of Unity and and AVPro they are using. There have been multiple people with this issue: https://www.reddit.com/r/VRchat/comments/wxprxm/vrchat_avpro_crashing_with_6950xt/

The error AVPro gives is "[AVProVideo] Error: Decode failed. Possible codec not supported, video resolution/bit-depth too high, or insufficient system resources."

The issue does not exist at all with the 22.5.1 AMD driver.

Please close this and punt entirely to the AMD drivers or VRC but figured I would open a ticket in case you had no knowledge of it and have better means to point out to AMD what they broke in their new driver. This probably affects other Unity titles too.

rygo6 avatar Sep 12 '22 18:09 rygo6

Hi @rygo6, Thank you for your message. I don't think that we have any of those cards to test with. Could you provide a bit more information please.

  1. Unity version:
  2. AVPro Video version (number and edition (trial/core/ultra/enterprise)):
  3. Operating system version:
  4. Device model:
  5. Using the demo media player scene, have you tried Media Foundation, DirectShow and WinRT APIs?
  6. What different sort of video files have you tried? (resolution, frame-rate, codec, file size etc?)

Chris-RH avatar Sep 13 '22 06:09 Chris-RH

Can confirm the behaviour on an AMD 6800 XT as well with the Radeon Pro Driver 22Q2 leading to Unity crashing, as well triggering the bug report tool for the AMD drivers. The affected game would be ChilloutVR, they use AVPro for Youtube, Twitch and similar streaming inside their platform. A note here older versions of AVPro dont have this problem with newer AMD drivers, hope one of the CVR devs can give insight which versions exactly.

Unity Version is: 2019.4.28f1 AVPro Version: Latest version Operating System: Windows 10 Pro 21H2 AMD Radeon 6800XT Tested media was Youtube and Twitch streaming both leading to a Unity crash

FenrirVR avatar Sep 19 '22 09:09 FenrirVR

Thank you. Does it provide any sort of bug report for the user as well? Can you just confirm for me please, this is crashing in Unity editor running just AVPro, or just the games?

Chris-RH avatar Sep 20 '22 08:09 Chris-RH

I think the devs of ChilloutVR also only run nvidia GPUs if im not mistaken, but maybe they can give some extra insight, meanwhile i can provide a logfiles and crash dumps with from the game, hope that helps. If thats not enough maybe i can grab the demo version of AVPro and see if it crashes inside Unity it self.

Crash Dumps and Logs.zip

FenrirVR avatar Sep 20 '22 10:09 FenrirVR

"If thats not enough maybe i can grab the demo version of AVPro and see if it crashes inside Unity it self." Please, that would be really helpful, its available here, thank you: https://github.com/RenderHeads/UnityPlugin-AVProVideo/releases

Chris-RH avatar Sep 20 '22 10:09 Chris-RH

Ok some more tests just using AVPro inside Unity is fine no crashes at all testing the sample scenes as well trying a few random setups. Also i set up a basic SteamVR scene which sadly also refused to crash. So its a very specific build setting or setup inside the game that both ChilloutVR and VRChat use that triggers the crash on newer AMD drivers.

FenrirVR avatar Sep 21 '22 00:09 FenrirVR

Brilliant, thank you, that's very helpful :)

Chris-RH avatar Sep 21 '22 06:09 Chris-RH

Ok little extra info which hopefully helps pinning this one down, the crash clearly only appears with using SteamVR, using the applications in desktop mode wont trigger it. Also both ChilloutVR and VRChat use a render texture to display the video inside maps/worlds.

FenrirVR avatar Sep 21 '22 10:09 FenrirVR

Yes, I find it is in SteamVR only too. The newest AMD Drivers also did not fix this at all.

I'd also note, in my case, I got this after swapping a 3090 to a 6950xt, so I have a good A/B on this being the only difference in the system.

rygo6 avatar Sep 27 '22 18:09 rygo6

One thing to note is VRChat is using v2.5.6 Ultra using Media Foundation. I don't know what version ChilloutVR is using, but I'm assuming v2.6.1 as a strong possibility as they mentioned in their release notes they updated to the latest literally a few days before the release of v2.6.2.

ronoverdrive avatar Sep 28 '22 03:09 ronoverdrive

Thank you for the info. We are in touch with the team from VRChat, and are trying to work out what is causing the problem. For now I would suggest just going back to the previous driver version.

Chris-RH avatar Sep 28 '22 08:09 Chris-RH

ChilloutVR uses version 2.6.0 cant say exactly say which was the version they used before the update but it should be something around 2.1.5 maybe a tad older but i doubt newer, this version was not effected and worked fine on Radeon Pro 22Q2 and other newer releases of the regular versions.

FenrirVR avatar Sep 28 '22 18:09 FenrirVR

Also I should probably point out this doesn't happen in Desktop Mode in VRChat only in VR Mode.

ronoverdrive avatar Sep 29 '22 01:09 ronoverdrive

I have this issue as well.

JeremyDF93 avatar Oct 10 '22 04:10 JeremyDF93

Thank you for the info. We are in touch with the team from VRChat, and are trying to work out what is causing the problem. For now I would suggest just going back to the previous driver version.

Chris-RH avatar Oct 10 '22 09:10 Chris-RH

Issue seems to be fixed on latest VRC update, atleast for me VRChat ver. 2022.4.1p2 Radeon 6700 XT, driver ver. 22.10.3

soursecorst avatar Nov 10 '22 21:11 soursecorst

@rygo6 and @ronoverdrive - have these issues been fixed for you with the latest VRChat update?

Chris-RH avatar Nov 11 '22 09:11 Chris-RH

Still crashing in VR. VRChat 2022.4.1p2 RX 6900 XT with software version 22.10.3

JeremyDF93 avatar Nov 11 '22 11:11 JeremyDF93

ok, thanks for the feedback :)

Chris-RH avatar Nov 11 '22 12:11 Chris-RH

@rygo6 and @ronoverdrive - have these issues been fixed for you with the latest VRChat update?

@Chris-RH Looks like it working for me. I tried a known movie world with a video I know caused it to crash previously and for me it seems to be working.

Windows 10 SteamVR + Index HMD 6800XT, driver 22.10.3

ronoverdrive avatar Nov 11 '22 23:11 ronoverdrive

@rygo6 and @ronoverdrive - have these issues been fixed for you with the latest VRChat update? Still getting crashes on 22.10.3 and below until 22.5.1

Windows 10 22H2 SteamVR + Vive Pro Eye 6950XT

ronoverdrive do you happen to have anything tweaked with your stuff? Did you use DDU or upgrade drivers directly?

QuantumFur avatar Nov 12 '22 21:11 QuantumFur

Well spoke too soon. Was watching a video with friends and half way through the video it crashed then every time I came back to the world it crashed again. Checked the log from the first crash and nothing was there indicating an error. Then after that the "[AVProVideo] Error: Decode failed. Possible codec not supported, video resolution/bit-depth too high, or insufficient system resources." re-appeared in each log it crashed after that.

ronoverdrive avatar Nov 13 '22 02:11 ronoverdrive

OK, thanks for letting us know

Chris-RH avatar Nov 14 '22 09:11 Chris-RH

OK, thanks for letting us know

NP, honestly it does not look like VRChat has touched their version of AVPRo, looks like they're still using 2.5.6 that they've been using since July.

ronoverdrive avatar Nov 16 '22 02:11 ronoverdrive

Can confirm, this seems to be a recurring issue for AMD users using vrchat unless they revert back to AMD drivers version 22.5.1 or earlier. Anything we can do as a community to help resolve this?

Alex-Garay avatar Nov 16 '22 03:11 Alex-Garay

Word on the VR street is its fixed in the driver slated to release with 7000 series launch.

rygo6 avatar Nov 16 '22 03:11 rygo6

Word on the VR street is its fixed in the driver slated to release with 7000 series launch.

Honestly a few of us thought the same would happen with 22.10.2 with all the video relation fixes. Hopefully we get a fix soon, I have barely stepped into VRChat because of this. Basically I am forced to choose between riding on 22.5.1 and dealing with driver bugs in other games, riding on the latest so the majority of my games run well and avoid VRChat chill worlds when I can, or downgrade to 22.5.1 every time I want to have an extended stay in VRChat.

ronoverdrive avatar Nov 16 '22 05:11 ronoverdrive

As mentioned, we have been in contact with VRChat and they are working on it. Hopefully this will get fixed in the next update.

Chris-RH avatar Nov 16 '22 10:11 Chris-RH

Word on the VR street is its fixed in the driver slated to release with 7000 series launch.

Honestly a few of us thought the same would happen with 22.10.2 with all the video relation fixes. Hopefully we get a fix soon, I have barely stepped into VRChat because of this. Basically I am forced to choose between riding on 22.5.1 and dealing with driver bugs in other games, riding on the latest so the majority of my games run well and avoid VRChat chill worlds when I can, or downgrade to 22.5.1 every time I want to have an extended stay in VRChat.

You can delete the two AVProVideo dll's from VRChat_Data\Plugins\x86_64 and the game will still launch and run fine on current drivers. This usually results in fallback to the Unity Video Player and allows most SD/YouTube videos to play.

JeremyDF93 avatar Nov 16 '22 12:11 JeremyDF93

You can delete the two AVProVideo dll's from VRChat_Data\Plugins\x86_64 and the game will still launch and run fine on current drivers. This usually results in fallback to the Unity Video Player and allows most SD/YouTube videos to play.

Thanks for the tip, if only we didn't have to deal with EAC we'd probably be able to swap DLL files.

ronoverdrive avatar Nov 17 '22 00:11 ronoverdrive