com.unity.webrtc
com.unity.webrtc copied to clipboard
[BUG]: Editor crashes when Renderdoc is loaded
Package version
2.4.0-exp.4
Environment
* OS: windows10
* Unity version: Unity 2021.2
Steps To Reproduce
- Install Renderdoc
- Enable Renderdoc in Game Menu (https://docs.unity3d.com/Manual/RenderDocIntegration.html)
- Press Play
Current Behavior
Unity crashes
Expected Behavior
Unity does not crash
Anything else?
The crash log indicates that the problem exists with Unity-WebRTC:
Obtained 28 stack frames
0x00000242654254ce (Mono JIT Code) (wrapper managed-to-native) Unity.WebRTC.NativeMethods:GetHardwareEncoderSupport ()
0x000002426542520b (Mono JIT Code) [Context.cs:20] Unity.WebRTC.Context:Create (int,Unity.WebRTC.EncoderType,bool)
0x0000024265424a8b (Mono JIT Code) [WebRTC.cs:390] Unity.WebRTC.WebRTC:Initialize (Unity.WebRTC.EncoderType,bool,bool)
0x00000242654244eb (Mono JIT Code) [WebRTC.cs:355] Unity.WebRTC.WebRTC:Initialize (Unity.WebRTC.EncoderType,bool)
0x0000024265423c93 (Mono JIT Code) [WebRTCConnector.cs:75] MHD.WebRTCConnector:Start ()
0x000002429072dd98 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff8c50ee034 (mono-2.0-bdwgc) mono_jit_set_domain
0x00007ff8c502e724 (mono-2.0-bdwgc) mono_object_get_virtual_method
0x00007ff8c502e8bc (mono-2.0-bdwgc) mono_runtime_invoke
0x00007ff7da454474 (Unity)
0x00007ff7da44f094 (Unity)
0x00007ff7da423312 (Unity)
0x00007ff7da423448 (Unity)
0x00007ff7da41da72 (Unity)
0x00007ff7d9f25044 (Unity)
0x00007ff7da1324b9 (Unity)
0x00007ff7da11a1dc (Unity)
0x00007ff7da11a2b3 (Unity)
0x00007ff7da11fec9 (Unity)
0x00007ff7db04c968 (Unity)
0x00007ff7db0387f4 (Unity)
0x00007ff7db047aba (Unity)
0x00007ff7db04addd (Unity)
0x00007ff7db4862ba (Unity)
0x00007ff7db48aadb (Unity)
0x00007ff7dc79aaa2 (Unity)
0x00007ff995cb7034 (KERNEL32) BaseThreadInitThunk
0x00007ff997462651 (ntdll) RtlUserThreadStart
I will try to reproduce that. Thanks.
memo: WRS-194
Hi!
Wanted to report that this issue still exists in 2.4.0-exp.9 which I just now tested. It has a slightly different stack trace though:
Obtained 31 stack frames
0x00007ffe20671065 (webrtc) GetUpdateTextureFunc
0x00007ffe20660fe0 (webrtc) GetUpdateTextureFunc
0x00007ffe2065fafa (webrtc) GetUpdateTextureFunc
0x00007ffe20653496 (webrtc) ContextCreate
0x000002472e7bac94 (Mono JIT Code) (wrapper managed-to-native) Unity.WebRTC.NativeMethods:ContextCreate (int)
0x000002472e7baab3 (Mono JIT Code) [Context.cs:18] Unity.WebRTC.Context:Create (int)
0x000002472e7ba2bb (Mono JIT Code) [WebRTC.cs:367] Unity.WebRTC.WebRTC:Initialize (bool,bool,Unity.WebRTC.NativeLoggingSeverity)
0x000002472e7b95d3 (Mono JIT Code) [WebRTCConnector.cs:68] MHD.WebRTCConnector:Start ()
0x00000248b2757468 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffe1deafe24 (mono-2.0-bdwgc) mono_jit_set_domain
0x00007ffe1ddee764 (mono-2.0-bdwgc) mono_object_get_virtual_method
0x00007ffe1ddee8fc (mono-2.0-bdwgc) mono_runtime_invoke
0x00007ff647c07614 (Unity)
0x00007ff647be6eb4 (Unity)
0x00007ff647bd695e (Unity)
0x00007ff647bd6a66 (Unity)
0x00007ff647bd1162 (Unity)
0x00007ff6476c9134 (Unity)
0x00007ff6478da1f9 (Unity)
0x00007ff6478c182a (Unity)
0x00007ff6478c19b6 (Unity)
0x00007ff6478c77a9 (Unity)
0x00007ff648812e69 (Unity)
0x00007ff6487fe230 (Unity)
0x00007ff64880df67 (Unity)
0x00007ff6488112fd (Unity)
0x00007ff648c5ff5a (Unity)
0x00007ff648c6480b (Unity)
0x00007ff649ff20ce (Unity)
0x00007ffedaa27034 (KERNEL32) BaseThreadInitThunk
0x00007ffedc2c2651 (ntdll) RtlUserThreadStart
Crashes Unity on Play.