UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
6950XT + SteamVR = Crash
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.
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.
- Unity version:
- AVPro Video version (number and edition (trial/core/ultra/enterprise)):
- Operating system version:
- Device model:
- Using the demo media player scene, have you tried Media Foundation, DirectShow and WinRT APIs?
- What different sort of video files have you tried? (resolution, frame-rate, codec, file size etc?)
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
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?
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.
"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
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.
Brilliant, thank you, that's very helpful :)
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.
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.
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.
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.
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.
Also I should probably point out this doesn't happen in Desktop Mode in VRChat only in VR Mode.
I have this issue as well.
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.
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
@rygo6 and @ronoverdrive - have these issues been fixed for you with the latest VRChat update?
Still crashing in VR. VRChat 2022.4.1p2 RX 6900 XT with software version 22.10.3
ok, thanks for the feedback :)
@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
@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?
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.
OK, thanks for letting us know
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.
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?
Word on the VR street is its fixed in the driver slated to release with 7000 series launch.
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.
As mentioned, we have been in contact with VRChat and they are working on it. Hopefully this will get fixed in the next update.
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.
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.