UnityRenderStreaming
UnityRenderStreaming copied to clipboard
[BUG] Hardware encoder triggers crash on RTX 3000 series cards
Describe the bug I am experiencing an issue where a build I have made works on 2 machines, but crashes around 1-3 seconds after starting a stream on 2 other machines. On these crashing machines, I sometimes get a stream to the browser I can control over the data channel for a few seconds, but other times it crashes too fast and I don't get any image at all.
To Reproduce I am unsure what is needed to reproduce the issue, as it works on some machines, and not on others.
Expected behavior No crashes on any of the machines.
Environment (please complete the following information): All machines:
- OS: Windows 10 x64
- Browser: Chrome
- Unity Version: 2019.4.15f1
- Package version com.unity.renderstreaming - 3.0.1-preview, com.unity.webrtc - 2.3.3-preview
- Exact same build
- Nvidia driver 466.47 and 466.27 (tried with both, didn't change the result)
Working machines: The two machines it works on are at our main location and is my workstation and one of our production machines, on the same network. Streaming works both from a local and remote host.
Machine 1:
- Intel i7-8700
- RTX 2070 Machine 2:
- Ryzen 7 1800X
- RTX 2080 Ti
Crashing machines: The two machines that crash are new and on a remote location. They crash both when connecting from a local and a remote host
Machine 1:
- Ryzen 7 5800X
- RTX 3090 Machine 2:
- Ryzen 5 5600X
- RTX 3080
Additional context Player.log stack trace: ========== OUTPUTTING STACK TRACE ==================
0x00007FF89C9E4B89 (KERNELBASE) RaiseException 0x00007FF8506EB3D5 (webrtc) UnityPluginUnload 0x00007FF84FE39328 (webrtc) UnityPluginUnload 0x00007FF84FE4B05F (webrtc) UnityPluginUnload 0x00007FF84FE48967 (webrtc) UnityPluginUnload 0x00007FF84FE4617D (webrtc) UnityPluginUnload 0x00007FF84FE389EC (webrtc) VideoTrackRemoveSink ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF8437C272B) 0x00007FF8437C272B (UnityPlayer) (function-name not available) ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF8437C886D) 0x00007FF8437C886D (UnityPlayer) (function-name not available) ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FF8437C8965) 0x00007FF8437C8965 (UnityPlayer) (function-name not available) 0x00007FF844173BBD (UnityPlayer) UnityMain 0x00007FF89DF87034 (KERNEL32) BaseThreadInitThunk 0x00007FF89F242651 (ntdll) RtlUserThreadStart
========== END OF STACKTRACE ===========
Steps I have tried to resolve the issue
- Both upgrading and downgrading Nvidia drivers
- Updating Visual C++ redist (2013, 2015-2019) x64 and x86
- I had this issue on com.unity.renderstreaming version 2.2.1, so I upgraded to 3.0.1
Both crashing machines are running 3000-series gpus, while the working ones are running 2000-series gpus. I don't know if this is causing the issue.
Feel free to ask for further information.
Tested on 2 colleagues machines, where one crashed, and the other didn't. Crashing machine: -RTX 3080 -Ryzen 7 3700x
Working machine: -GTX 1070 -Intel i9 9900k
So all machines with RTX 3000 series crash, all without work. I will try to switch to the software encoder shortly
Just tested with software encoder, and it works.
@sofusoe We don't have RTX 3000 series for testing right now. 😓 We will prepare that. Thanks.
memo WRS-222