com.unity.webrtc icon indicating copy to clipboard operation
com.unity.webrtc copied to clipboard

[BUG]: Crash On WebRTC.Initialize()

Open github-itsec-oculavis opened this issue 2 years ago • 24 comments

Package version

2.4.0-exp.10

Environment

* OS:Windows 11
* Unity version: 2021.3.8f1

Steps To Reproduce

  1. Install Unity WebRTC 2.4.0-exp10
  2. Call WebRTC.Initialize() in any GameObject

Current Behavior

The Unity Editor still crashes when calling WebRTC.Initialize() in version 2.4.0-exp.10, even when deactivating the external graphics card in the laptop, meaning that the implementation cannot deal with iGPUs properly.

Expected Behavior

There actually was a fix available in version 2.4.0-exp.6, which was removed: Please let us set the used encoder type in WebRTC.Initialize() again. The Editor does not crash in that version when calling WebRTC.Initialize(EncoderType.Software). Was this setting just moved to another function or removed altogether? This sadly hinders our development, as we are not able to update the plugin at the moment.

Anything else?

No response

github-itsec-oculavis avatar Sep 06 '22 15:09 github-itsec-oculavis

@github-itsec-oculavis Hi, can I have the crash log?

karasusan avatar Sep 08 '22 05:09 karasusan

@github-itsec-oculavis Hi, can I have the crash log?

`=================================================================     Native Crash Reporting

Got a UNKNOWN while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

=================================================================     Managed Stacktrace:

      at <0xffffffff>       at Unity.WebRTC.NativeMethods:ContextCreate <0x00089>       at Unity.WebRTC.Context:Create <0x00022>       at Unity.WebRTC.WebRTC:Initialize <0x00242>       at MSWebsocketManager:Awake <0x00022>       at System.Object:runtime_invoke_void__this__ <0x00087>

Received signal SIGSEGV Obtained 36 stack frames 0x00007ff847671065 (webrtc) GetUpdateTextureFunc 0x00007ff847660fe0 (webrtc) GetUpdateTextureFunc 0x00007ff84765fafa (webrtc) GetUpdateTextureFunc 0x00007ff847653496 (webrtc) ContextCreate 0x000001dad402ff1a (Mono JIT Code) (wrapper managed-to-native) Unity.WebRTC.NativeMethods:ContextCreate (int) 0x000001dad402fdd3 (Mono JIT Code) [Context.cs:18] Unity.WebRTC.Context:Create (int) 0x000001dad402f7e3 (Mono JIT Code) [WebRTC.cs:367] Unity.WebRTC.WebRTC:Initialize (bool,bool,Unity.WebRTC.NativeLoggingSeverity) 0x000001dad402f4a3 (Mono JIT Code) [MSWebsocketManager.cs:103] MSWebsocketManager:Awake () 0x000001daaf5e12a8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr) 0x00007ff8609efe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke 0x00007ff86092e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke 0x00007ff86092e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke 0x00007ff7df684db4 (Unity) scripting_method_invoke 0x00007ff7df664654 (Unity) ScriptingInvocation::Invoke 0x00007ff7df66473e (Unity) ScriptingInvocation::InvokeChecked 0x00007ff7df6f9726 (Unity) SerializableManagedRef::CallMethod 0x00007ff7df64d7cb (Unity) MonoBehaviour::CallAwake 0x00007ff7df64c104 (Unity) MonoBehaviour::AddToManager 0x00007ff7df64c979 (Unity) MonoBehaviour::AwakeFromLoad 0x00007ff7df73a54f (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake 0x00007ff7df73afbc (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad 0x00007ff7df73b123 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad 0x00007ff7df384478 (Unity) LoadSceneOperation::CompleteAwakeSequence 0x00007ff7df384ef2 (Unity) LoadSceneOperation::CompletePreloadManagerLoadSceneEditor 0x00007ff7df385a9b (Unity) LoadSceneOperation::IntegrateMainThread 0x00007ff7df389671 (Unity) PreloadManager::UpdatePreloadingSingleStep 0x00007ff7df389c4f (Unity) PreloadManager::WaitForAllAsyncOperationsToComplete 0x00007ff7e056bac6 (Unity) EditorSceneManager::RestoreSceneBackups 0x00007ff7e027a0d1 (Unity) PlayerLoopController::EnterPlayMode 0x00007ff7e0289eb7 (Unity) PlayerLoopController::SetIsPlaying 0x00007ff7e028d24d (Unity) Application::TickTimer 0x00007ff7e06db27a (Unity) MainMessageLoop 0x00007ff7e06dfb2b (Unity) WinMain 0x00007ff7e1a6421e (Unity) __scrt_common_main_seh 0x00007ff90b8d54e0 (KERNEL32) BaseThreadInitThunk 0x00007ff90cda485b (ntdll) RtlUserThreadStart`

github-itsec-oculavis avatar Sep 09 '22 11:09 github-itsec-oculavis

You mean the cause of this crash that the package don't find the NVIDIA GPU. Is it right?

karasusan avatar Sep 13 '22 02:09 karasusan

I deactivated the Nvidia GPU on this device, as it caused issues. To Unity, it should look like only the Intel iGPU is available. In any case, the issue is easily resolved if we can use the software encoding in editor mode.

github-itsec-oculavis avatar Sep 19 '22 10:09 github-itsec-oculavis

I guess the cause of this issue is increasing the required version of NVIDIA driver for the package. Could you try to upgrade the NVIDIA driver?

Of course, we should fix the crash issue even if you avoid the issue with the workaround.

karasusan avatar Sep 20 '22 01:09 karasusan

memo: WRS-414

karasusan avatar Sep 26 '22 02:09 karasusan

I guess the cause of this issue is increasing the required version of NVIDIA driver for the package. Could you try to upgrade the NVIDIA driver?

Of course, we should fix the crash issue even if you avoid the issue with the workaround.

“Sorry for the late reply. For the machine I’m using, it does not make sense to activate the Nvidia GPU again in the first place, as the laptop does not handle it well. But if the package cannot detect if the GPU is activated and cannot use the Intel iGPU, I will give it another shot. As far as I can recall, I tried a driver update of the Nvidia GPU before when I was still using it, and it did not help. Should I give it another try and send you another log?”

github-itsec-oculavis avatar Oct 12 '22 10:10 github-itsec-oculavis

I have the same stacktrace and also have a Laptop with both iGPU (Intel UHD 10th Gen) and dGPU (RTX 3080 Max-Q) on both Unity for Windows and Unity for Linux. I instead opted to disable the iGPU, but I'm still experiencing the crash on both OSes.

Funny enough, I managed to make a weird observation (and workaround?) using my own fork of Unity Render Streaming's develop branch. If the initial VideoStreamSender's streaming settings are high the stream gets generated correctly without crashing the editor/application:

1080@60FPS - Works!
1080@40FPS - Works!
720@80FPS - Works!
720@70FPS - Works!

But if the settings are lower it starts crashing on stream generation:

1080@30FPS - Crash
720@60FPS - Crash

It gets even weirder. After a player successfully connects and the stream runs, I can then suddenly change the values without any crashes. I'm not a low-end developer, but to me the issue seems to come from the nvenc session being accessed before being ready?

I hope this helps.

EDIT: My workaround: Initialize the stream at 1080@40 FPS -> Coroutine -> WaitForSeconds(2) -> Apply other settings (Resolution, Bitrate, FPS).

CM2Walki avatar Oct 16 '22 17:10 CM2Walki

@CM2Walki Could you attach the crash log?

karasusan avatar Oct 18 '22 02:10 karasusan

Signaling: Receiving message: {"from":"533d8a19-016a-4fb7-b570-04a27672eed6:Firefox","to":"","type":"answer","data":{"sdp":"v=0\r\no=mozilla...THIS_IS_SDPARTA-99.0 7877505351686006119 1 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\na=sendrecv\r\na=fingerprint:sha-256 E2:C1:CC:82:CD:85:DE:02:05:62:58:BD:6B:61:58:76:2B:BF:01:0F:C0:FE:05:C6:F1:56:46:73:BA:1D:DA:8D\r\na=group:BUNDLE 0 1\r\na=ice-options:trickle\r\na=msid-semantic:WMS *\r\nm=application 51355 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 94.17.129.162\r\na=candidate:0 1 UDP 2122252543 bb395270-ec51-47c8-be11-7190a8263a24.local 51355 typ host\r\na=candidate:2 1 TCP 2105524479 bb395270-ec51-47c8-be11-7190a8263a24.local 9 typ host tcptype active\r\na=candidate:1 1 UDP 1686052863 94.17.129.162 51355 typ srflx raddr 0.0.0.0 rport 0\r\na=sendrecv\r\na=end-of-candidates\r\na=ice-pwd:5a0ec4736a85b3a87714a007d062b7e2\r\na=ice-ufrag:ea803cbb\r\na=mid:0\r\na=setup:passive\r\na=sctp-port:5000\r\na=max-message-size:1073741823\r\nm=video 9 UDP/TLS/RTP/SAVPF 102\r\nc=IN IP4 0.0.0.0\r\na=recvonly\r\na=extmap:1 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:5/recvonly http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=fmtp:102 profile-level-id=42e01f;level-asymmetry-allowed=1;packetization-mode=1\r\na=ice-pwd:5a0ec4736a85b3a87714a007d062b7e2\r\na=ice-ufrag:ea803cbb\r\na=mid:1\r\na=rtcp-fb:102 nack\r\na=rtcp-fb:102 nack pli\r\na=rtcp-fb:102 ccm fir\r\na=rtcp-fb:102 goog-remb\r\na=rtcp-fb:102 transport-cc\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:102 H264/90000\r\na=setup:active\r\na=ssrc:3643823471 cname:{cc1a7fba-de8a-4f57-977e-fa753f1e60aa}\r\n","datetime":1666111717827}}
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Unity.RenderStreaming.Signaling.WebSocketSignaling:WSProcessMessage (object,WebSocketSharp.MessageEventArgs) (at Assets/Plugins/com.unity.renderstreaming/Runtime/Scripts/Signaling/WebSocketSignaling.cs:179)
WebSocketSharp.Ext:Emit<WebSocketSharp.MessageEventArgs> (System.EventHandler`1<WebSocketSharp.MessageEventArgs>,object,WebSocketSharp.MessageEventArgs)
WebSocketSharp.WebSocket:messagec (WebSocketSharp.MessageEventArgs)
WebSocketSharp.WebSocket:message ()
WebSocketSharp.WebSocket/<>c__DisplayClass174_0:<startReceiving>b__1 (WebSocketSharp.WebSocketFrame)
WebSocketSharp.WebSocketFrame/<>c__DisplayClass84_0:<ReadFrameAsync>b__3 (WebSocketSharp.WebSocketFrame)
WebSocketSharp.WebSocketFrame/<>c__DisplayClass77_0:<readPayloadDataAsync>b__0 (byte[])
WebSocketSharp.Ext/<>c__DisplayClass60_0:<ReadBytesAsync>b__0 (System.IAsyncResult)
System.Net.Sockets.SocketAsyncResult/<>c:<Complete>b__27_0 (object)
System.Threading.QueueUserWorkItemCallback:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem ()
System.Threading.ThreadPoolWorkQueue:Dispatch ()
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback ()

(Filename: Assets/Plugins/com.unity.renderstreaming/Runtime/Scripts/Signaling/WebSocketSignaling.cs Line: 179)

Crash!!!
SymInit: Symbol-SearchPath: 'C:/Program Files/Unity/Hub/Editor/2021.3.11f1/Editor/Data/Mono;.;E:\Repos\TestProject;E:\Repos\TestProject\Library\BurstCache\JIT;C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 534, UserName: 'usernam'
OS-Version: 10.0.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Unity.exe:Unity.exe (00007FF692E60000), size: 73637888 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2021.3.11.23713
C:\Windows\SYSTEM32\ntdll.dll:ntdll.dll (00007FFB83210000), size: 2064384 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\KERNEL32.dll:KERNEL32.dll (00007FFB81270000), size: 774144 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1889
C:\Windows\system32\hmpalert.dll:hmpalert.dll (00007FFB805B0000), size: 1175552 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 3.8.4.36
C:\Windows\System32\KERNELBASE.dll:KERNELBASE.dll (00007FFB80AD0000), size: 2957312 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\CRYPT32.dll:CRYPT32.dll (00007FFB81110000), size: 1400832 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1889
C:\Windows\System32\ucrtbase.dll:ucrtbase.dll (00007FFB80920000), size: 1048576 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.789
C:\Windows\System32\USER32.dll:USER32.dll (00007FFB82430000), size: 1691648 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\win32u.dll:win32u.dll (00007FFB80F90000), size: 139264 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\GDI32.dll:GDI32.dll (00007FFB81470000), size: 176128 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\gdi32full.dll:gdi32full.dll (00007FFB80DB0000), size: 1110016 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\msvcp_win.dll:msvcp_win.dll (00007FFB80EC0000), size: 643072 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.789
C:\Windows\System32\ADVAPI32.dll:ADVAPI32.dll (00007FFB81A50000), size: 712704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\msvcrt.dll:msvcrt.dll (00007FFB81340000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.0.19041.546
C:\Windows\System32\sechost.dll:sechost.dll (00007FFB814A0000), size: 638976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\System32\RPCRT4.dll:RPCRT4.dll (00007FFB81C90000), size: 1200128 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1806
C:\Windows\System32\SHELL32.dll:SHELL32.dll (00007FFB82700000), size: 7614464 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\System32\SHLWAPI.dll:SHLWAPI.dll (00007FFB83170000), size: 348160 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\System32\ole32.dll:ole32.dll (00007FFB82F20000), size: 1220608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1202
C:\Windows\System32\combase.dll:combase.dll (00007FFB81540000), size: 3489792 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\IMM32.dll:IMM32.dll (00007FFB82EF0000), size: 196608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\System32\SETUPAPI.dll:SETUPAPI.dll (00007FFB81FB0000), size: 4648960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1741
C:\Windows\System32\cfgmgr32.dll:cfgmgr32.dll (0000016A8F740000), size: 319488 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1620
C:\Windows\System32\bcrypt.dll:bcrypt.dll (00007FFB80F60000), size: 159744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1023
C:\Windows\System32\WS2_32.dll:WS2_32.dll (00007FFB81B00000), size: 438272 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\System32\OLEAUT32.dll:OLEAUT32.dll (00007FFB825D0000), size: 839680 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.985
C:\Windows\System32\WINTRUST.dll:WINTRUST.dll (00007FFB80FC0000), size: 430080 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\libfbxsdk.dll:libfbxsdk.dll (00007FFB077F0000), size: 10215424 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2020.2.0.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\optix.6.0.0.dll:optix.6.0.0.dll (00007FFB71660000), size: 208896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 6.0.0.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\s3tcompress.dll:s3tcompress.dll (00007FFB3FEC0000), size: 180224 (result: 0), SymType: '-deferred-', PDB: ''
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\etccompress.dll:etccompress.dll (00007FFB0FDD0000), size: 5066752 (result: 0), SymType: '-deferred-', PDB: ''
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\ispc_texcomp.dll:ispc_texcomp.dll (00007FFB3FD10000), size: 1740800 (result: 0), SymType: '-deferred-', PDB: ''
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\compress_bc7e.dll:compress_bc7e.dll (00007FFB10370000), size: 1441792 (result: 0), SymType: '-deferred-', PDB: ''
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\FreeImage.dll:FreeImage.dll (0000000180000000), size: 6582272 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 3.18.0.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\OpenImageDenoise.dll:OpenImageDenoise.dll (00007FFB04950000), size: 48848896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.4.2.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\WinPixEventRuntime.dll:WinPixEventRuntime.dll (00007FFB1CE20000), size: 45056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.0.1812.6001
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\umbraoptimizer64.dll:umbraoptimizer64.dll (00007FFB0FCA0000), size: 1187840 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\SYSTEM32\OPENGL32.dll:OPENGL32.dll (00007FFB558E0000), size: 1208320 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\GLU32.dll:GLU32.dll (00007FFB55850000), size: 180224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\IPHLPAPI.DLL:IPHLPAPI.DLL (00007FFB7FC60000), size: 241664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\SYSTEM32\WINHTTP.dll:WINHTTP.dll (00007FFB77700000), size: 1101824 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\WINMM.dll:WINMM.dll (00007FFB67B10000), size: 159744 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\HID.DLL:HID.DLL (00007FFB7F060000), size: 53248 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\dwmapi.dll:dwmapi.dll (00007FFB7E3D0000), size: 192512 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.746
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\RadeonImageFilters.dll:RadeonImageFilters.dll (00007FFB04670000), size: 2961408 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.7.0.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\OpenRL.dll:OpenRL.dll (0000016A8FC90000), size: 12779520 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.5.0.2907
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\SketchUpAPI.dll:SketchUpAPI.dll (00007FFB03D90000), size: 9306112 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 20.2.172.0
C:\Windows\SYSTEM32\VERSION.dll:VERSION.dll (00007FFB7AD70000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\WSOCK32.dll:WSOCK32.dll (00007FFB601A0000), size: 36864 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\tbb12.dll:tbb12.dll (00007FFB1CD20000), size: 434176 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\SYSTEM32\MSVCP140.dll:MSVCP140.dll (00007FFB666F0000), size: 581632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.32.31326.0
C:\Windows\SYSTEM32\VCRUNTIME140.dll:VCRUNTIME140.dll (00007FFB679F0000), size: 110592 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.32.31326.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\RadeonML.dll:RadeonML.dll (00007FFB1CE00000), size: 94208 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 0.9.11.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\OpenRL_pthread.dll:OpenRL_pthread.dll (0000016A8F800000), size: 61440 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2.9.0.0
C:\Windows\SYSTEM32\MSVCP100.dll:MSVCP100.dll (0000000063220000), size: 622592 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.40219.473
C:\Windows\SYSTEM32\MSVCR100.dll:MSVCR100.dll (00000000632C0000), size: 860160 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.40219.473
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\embree.dll:embree.dll (00007FFB02DA0000), size: 16711680 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2.14.0.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\SketchUpCommonPreferences.dll:SketchUpCommonPreferences.dll (00007FFB10E30000), size: 479232 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 20.2.172.37
C:\Windows\SYSTEM32\Secur32.dll:Secur32.dll (00007FFB6CC50000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\tbbmalloc.dll:tbbmalloc.dll (00007FFB11080000), size: 282624 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\SYSTEM32\VCRUNTIME140_1.dll:VCRUNTIME140_1.dll (00007FFB68B70000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 14.32.31326.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\tbb.dll:tbb.dll (00007FFB105A0000), size: 413696 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2017.0.2016.1004
C:\Windows\SYSTEM32\MSWSOCK.DLL:MSWSOCK.DLL (00007FFB7FFC0000), size: 434176 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\MSVCP120.dll:MSVCP120.dll (00007FFB0FBF0000), size: 679936 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 12.0.40664.0
C:\Windows\SYSTEM32\MSVCR120.dll:MSVCR120.dll (00007FFB0FB00000), size: 978944 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 12.0.40664.0
C:\Windows\SYSTEM32\SSPICLI.DLL:SSPICLI.DLL (00007FFB80810000), size: 204800 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\SYSTEM32\MSASN1.dll:MSASN1.dll (00007FFB803F0000), size: 73728 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\kernel.appcore.dll:kernel.appcore.dll (00007FFB7E6C0000), size: 73728 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\System32\bcryptPrimitives.dll:bcryptPrimitives.dll (00007FFB81080000), size: 532480 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1415
C:\Windows\system32\uxtheme.dll:uxtheme.dll (00007FFB7DCB0000), size: 647168 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\shcore.dll:shcore.dll (00007FFB81DC0000), size: 708608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\SYSTEM32\windows.storage.dll:windows.storage.dll (00007FFB7E8C0000), size: 7933952 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\SYSTEM32\Wldp.dll:Wldp.dll (00007FFB80260000), size: 196608 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\profapi.dll:profapi.dll (00007FFB80860000), size: 126976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.844
C:\Windows\System32\clbcatq.dll:clbcatq.dll (00007FFB81BE0000), size: 716800 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 2001.12.10941.16384
C:\Windows\system32\wbem\wbemprox.dll:wbemprox.dll (00007FFB71790000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1320
C:\Windows\SYSTEM32\wbemcomn.dll:wbemcomn.dll (00007FFB71700000), size: 589824 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1566
C:\Windows\system32\wbem\wbemsvc.dll:wbemsvc.dll (00007FFB6F420000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1320
C:\Windows\system32\wbem\fastprox.dll:fastprox.dll (00007FFB6F770000), size: 1093632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\amsi.dll:amsi.dll (00007FFB6DB60000), size: 126976 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\USERENV.dll:USERENV.dll (00007FFB807E0000), size: 188416 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.572
C:\Program Files\Sophos\Sophos AMSI Protection\SophosAmsiProvider.dll:SophosAmsiProvider.dll (00007FFB6DA10000), size: 1040384 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 1.9.244.0
C:\Windows\SYSTEM32\CRYPTSP.dll:CRYPTSP.dll (00007FFB801B0000), size: 98304 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\system32\rsaenh.dll:rsaenh.dll (00007FFB7F870000), size: 212992 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1052
C:\Windows\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (00007FFB801D0000), size: 49152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\System32\imagehlp.dll:imagehlp.dll (00007FFB82E50000), size: 118784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1415
C:\Windows\SYSTEM32\gpapi.dll:gpapi.dll (00007FFB7F070000), size: 143360 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2006
C:\Windows\System32\cryptnet.dll:cryptnet.dll (00007FFB77810000), size: 200704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.906
C:\Windows\SYSTEM32\WINNSI.DLL:WINNSI.DLL (00007FFB791F0000), size: 45056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\System32\NSI.dll:NSI.dll (00007FFB82420000), size: 32768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.610
C:\Windows\system32\IconCodecService.dll:IconCodecService.dll (00007FFB3A2F0000), size: 36864 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1
C:\Windows\SYSTEM32\WindowsCodecs.dll:WindowsCodecs.dll (00007FFB72930000), size: 1785856 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1706
C:\Windows\System32\MSCTF.dll:MSCTF.dll (00007FFB83050000), size: 1134592 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\textinputframework.dll:textinputframework.dll (00007FFB70AA0000), size: 1019904 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\CoreUIComponents.dll:CoreUIComponents.dll (00007FFB7D160000), size: 3530752 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\CoreMessaging.dll:CoreMessaging.dll (00007FFB7D980000), size: 991232 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.746
C:\Windows\SYSTEM32\ntmarta.dll:ntmarta.dll (00007FFB7F9B0000), size: 208896 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\wintypes.dll:wintypes.dll (00007FFB7C8F0000), size: 1392640 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\System32\netprofm.dll:netprofm.dll (00007FFB7C8B0000), size: 253952 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.906
C:\Windows\System32\npmproxy.dll:npmproxy.dll (00007FFB78D60000), size: 65536 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.906
C:\Windows\SYSTEM32\dhcpcsvc6.DLL:dhcpcsvc6.DLL (00007FFB78F80000), size: 94208 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\SYSTEM32\dhcpcsvc.DLL:dhcpcsvc.DLL (00007FFB78F20000), size: 118784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\SYSTEM32\DNSAPI.dll:DNSAPI.dll (00007FFB7FCB0000), size: 827392 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\System32\fwpuclnt.dll:fwpuclnt.dll (00007FFB75E20000), size: 524288 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2006
C:\Windows\System32\rasadhlp.dll:rasadhlp.dll (00007FFB77560000), size: 40960 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\NVUnityPlugin.DLL:NVUnityPlugin.DLL (00007FFB02C20000), size: 1536000 (result: 0), SymType: '-deferred-', PDB: ''
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Data\Tools\astcenc-avx2.dll:astcenc-avx2.dll (00007FFB0F710000), size: 561152 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.19041.1110_none_60b5254171f9507e\comctl32.dll:comctl32.dll (00007FFB62410000), size: 2727936 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 6.10.19041.1110
C:\Windows\SYSTEM32\TextShaping.dll:TextShaping.dll (00007FFB69430000), size: 704512 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\system32\explorerframe.dll:explorerframe.dll (00007FFB4BC20000), size: 2228224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1949
C:\Windows\SYSTEM32\mfplat.dll:mfplat.dll (00007FFB797E0000), size: 1818624 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.746
C:\Windows\SYSTEM32\RTWorkQ.DLL:RTWorkQ.DLL (00007FFB797A0000), size: 212992 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1741
C:\Windows\SYSTEM32\mfreadwrite.dll:mfreadwrite.dll (00007FFB1CB90000), size: 1089536 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.746
C:\Windows\SYSTEM32\Mf.dll:Mf.dll (00007FFB7B230000), size: 540672 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\SYSTEM32\MFCORE.DLL:MFCORE.DLL (00007FFB79F80000), size: 4775936 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2130
C:\Windows\SYSTEM32\powrprof.dll:powrprof.dll (00007FFB7FD80000), size: 307200 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\ksuser.dll:ksuser.dll (00007FFB79F00000), size: 36864 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1
C:\Windows\SYSTEM32\UMPDC.dll:UMPDC.dll (00007FFB7FC40000), size: 73728 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\SYSTEM32\CompPkgSup.DLL:CompPkgSup.DLL (00007FFB78F40000), size: 225280 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.746
C:\Windows\System32\Windows.Media.dll:Windows.Media.dll (00007FFB77A10000), size: 7495680 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\System32\Windows.StateRepositoryPS.dll:Windows.StateRepositoryPS.dll (00007FFB67F10000), size: 1335296 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1466
C:\Windows\System32\Windows.ApplicationModel.dll:Windows.ApplicationModel.dll (00007FFB77920000), size: 942080 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1806
C:\Windows\System32\twinapi.appcore.dll:twinapi.appcore.dll (00007FFB7B2F0000), size: 2097152 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\System32\AppXDeploymentClient.dll:AppXDeploymentClient.dll (00007FFB7A470000), size: 1011712 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\System32\MMDevApi.dll:MMDevApi.dll (00007FFB7B110000), size: 544768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1503
C:\Windows\System32\DEVOBJ.dll:DEVOBJ.dll (00007FFB806D0000), size: 180224 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1620
C:\Windows\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (00007FFB7B4F0000), size: 1581056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1865
C:\Windows\SYSTEM32\resourcepolicyclient.dll:resourcepolicyclient.dll (00007FFB7E2D0000), size: 81920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
E:\Repos\TestProject\Assets\Plugins\com.unity.webrtc\Runtime\Plugins\x86_64\webrtc.dll:webrtc.dll (00007FFB02010000), size: 12587008 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\SYSTEM32\d3d11.dll:d3d11.dll (00007FFB79BC0000), size: 2502656 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\msdmo.dll:msdmo.dll (00007FFB1CF60000), size: 45056 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1
C:\Windows\SYSTEM32\dxgi.dll:dxgi.dll (00007FFB7F0C0000), size: 995328 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_de1b2d5c92bd79f2\nvldumdx.dll:nvldumdx.dll (00007FFB6D200000), size: 1142784 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 31.0.15.2225
C:\Windows\SYSTEM32\drvstore.dll:drvstore.dll (00007FFB775B0000), size: 1343488 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1949
C:\Windows\System32\DriverStore\FileRepository\nvmii.inf_amd64_de1b2d5c92bd79f2\nvwgf2umx.dll:nvwgf2umx.dll (00007FFB62ED0000), size: 57032704 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 31.0.15.2225
C:\Windows\system32\nvspcap64.dll:nvspcap64.dll (00007FFB52F40000), size: 2940928 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 3.26.0.131
C:\Windows\SYSTEM32\dxcore.dll:dxcore.dll (00007FFB6DB20000), size: 241664 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.546
C:\Windows\SYSTEM32\nvcuda.dll:nvcuda.dll (00007FFB179D0000), size: 3104768 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 31.0.15.2225
C:\Windows\system32\DriverStore\FileRepository\nvmii.inf_amd64_de1b2d5c92bd79f2\nvcuda64.dll:nvcuda64.dll (00007FFB14910000), size: 27279360 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 31.0.15.2225
C:\Windows\SYSTEM32\nvapi64.dll:nvapi64.dll (00007FFB720C0000), size: 7737344 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 31.0.15.2225
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\cudart64_90.dll:cudart64_90.dll (00007FFB0F6A0000), size: 397312 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 6.14.11.9000
C:\Windows\SYSTEM32\opencl.dll:opencl.dll (00007FFB01EA0000), size: 1474560 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 3.0.1.0
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\radeonrays.dll:radeonrays.dll (00007FFB0F580000), size: 557056 (result: 0), SymType: '-deferred-', PDB: ''
C:\Program Files\Unity\Hub\Editor\2021.3.11f1\Editor\Data\MonoBleedingEdge\EmbedRuntime\mono-2.0-bdwgc.dll:mono-2.0-bdwgc.dll (00007FFB01460000), size: 10686464 (result: 0), SymType: '-deferred-', PDB: ''
E:\Repos\TestProject\Library\PackageCache\[email protected]\.Runtime\burst-llvm-12.dll:burst-llvm-12.dll (00007FFAFBA50000), size: 40804352 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\system32\apphelp.dll:apphelp.dll (00007FFB7DBB0000), size: 593920 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\nvEncodeAPI64.dll:nvEncodeAPI64.dll (00007FFB01320000), size: 1273856 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 31.0.15.2225
E:\Repos\TestProject\Library\BurstCache\JIT\4608244e4d137143570a905f93f877d7.dll:4608244e4d137143570a905f93f877d7.dll (00007FFB1CDF0000), size: 16384 (result: 0), SymType: '-deferred-', PDB: ''
E:\Repos\TestProject\Library\BurstCache\JIT\9761c02c8b1bde1374d3c849e6c7d95c.dll:9761c02c8b1bde1374d3c849e6c7d95c.dll (00007FFB1CDE0000), size: 53248 (result: 0), SymType: '-deferred-', PDB: ''
C:\Windows\system32\dataexchange.dll:dataexchange.dll (00007FFB4BE40000), size: 253952 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1387
C:\Windows\system32\dcomp.dll:dcomp.dll (00007FFB7BC60000), size: 1978368 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.2075
C:\Windows\SYSTEM32\xinput1_4.dll:xinput1_4.dll (00007FFB77890000), size: 69632 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.844
C:\Windows\SYSTEM32\inputhost.dll:inputhost.dll (00007FFB704F0000), size: 1384448 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.1741
C:\Windows\SYSTEM32\PROPSYS.dll:PROPSYS.dll (00007FFB7CF00000), size: 1007616 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 7.0.19041.1741
C:\Windows\SYSTEM32\dbghelp.dll:dbghelp.dll (00007FFB7DEE0000), size: 1982464 (result: 0), SymType: '-deferred-', PDB: '', fileVersion: 10.0.19041.867

========== OUTPUTTING STACK TRACE ==================

0x00007FFB80AFCD29 (KERNELBASE) RaiseException
0x00007FFB02974778 (webrtc) GetUpdateTextureFunc
0x00007FFB02076620 (webrtc) GetUpdateTextureFunc
0x00007FFB0207DE9E (webrtc) GetUpdateTextureFunc
0x00007FFB020342F2 (webrtc) GetUpdateTextureFunc
0x00007FFB0246D2D3 (webrtc) GetUpdateTextureFunc
0x00007FFB0246E377 (webrtc) GetUpdateTextureFunc
0x00007FFB024722FE (webrtc) GetUpdateTextureFunc
0x00007FFB024733C1 (webrtc) GetUpdateTextureFunc
0x00007FFB021CDBDE (webrtc) GetUpdateTextureFunc
0x00007FFB0223A664 (webrtc) GetUpdateTextureFunc
0x00007FFB81287034 (KERNEL32) BaseThreadInitThunk
0x00007FFB832626A1 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

A crash has been intercepted by the crash handler. For call stack and other details, see the latest crash report generated in:
 * C:/Users/usernam/AppData/Local/Temp/Unity/Editor/Crashes

@karasusan this is the one from the Windows Editor, if you want I can also get you the one from the Linux Editor.

CM2Walki avatar Oct 18 '22 16:10 CM2Walki

I get this error only the first time I start my application. Im currently switching for debugging purposes between 5c61d84 exp10 and b197398 exp.11 and only get the crash on the first initialize call. StackTrace:

=================================================================
	Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at Unity.WebRTC.NativeMethods:ContextCreate <0x00089>
	  at Unity.WebRTC.Context:Create <0x00022>
	  at Unity.WebRTC.WebRTC:Initialize <0x00242>
	  at Network.WebRtcHandling:Awake <0x002ea>
	  at System.Object:runtime_invoke_void__this__ <0x00087>
=================================================================
Received signal SIGSEGV
Obtained 38 stack frames
0x00007ff950ce3165 (webrtc) GetUpdateTextureFunc
0x00007ff950cd1549 (webrtc) GetUpdateTextureFunc
0x00007ff950cd002a (webrtc) GetUpdateTextureFunc
0x00007ff950cc3626 (webrtc) ContextCreate
0x000002bbef96084a (Mono JIT Code) (wrapper managed-to-native) Unity.WebRTC.NativeMethods:ContextCreate (int)
0x000002bbef960703 (Mono JIT Code) [Context.cs:18] Unity.WebRTC.Context:Create (int) 
0x000002bbef960243 (Mono JIT Code) [WebRTC.cs:692] Unity.WebRTC.WebRTC:Initialize (bool,bool,Unity.WebRTC.NativeLoggingSeverity) 
0x000002bbef95fe2b (Mono JIT Code) [WebRtcHandling.cs:224] Network.WebRtcHandling:Awake () 
0x000002bb7cb3e818 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff964c7e4b4 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke 
0x00007ff964bbe764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke 
0x00007ff964bbe8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke 
0x00007ff6a7e858c4 (Unity) scripting_method_invoke
0x00007ff6a7e804e4 (Unity) ScriptingInvocation::Invoke
0x00007ff6a7e805ce (Unity) ScriptingInvocation::InvokeChecked
0x00007ff6a7efa406 (Unity) SerializableManagedRef::CallMethod
0x00007ff6a7e4dfa4 (Unity) MonoBehaviour::CallAwake
0x00007ff6a7e4c865 (Unity) MonoBehaviour::AddToManager
0x00007ff6a7e4d1e1 (Unity) MonoBehaviour::AwakeFromLoad
0x00007ff6a7f3b50f (Unity) AwakeFromLoadQueue::InvokePersistentManagerAwake
0x00007ff6a7f3bf7c (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
0x00007ff6a7f3c0e3 (Unity) AwakeFromLoadQueue::PersistentManagerAwakeFromLoad
0x00007ff6a7b87958 (Unity) LoadSceneOperation::CompleteAwakeSequence
0x00007ff6a7b8b0b8 (Unity) LoadSceneOperation::PlayerLoadSceneFromThread
0x00007ff6a7b88ea3 (Unity) LoadSceneOperation::IntegrateMainThread
0x00007ff6a7b8cb71 (Unity) PreloadManager::UpdatePreloadingSingleStep
0x00007ff6a7b8c76d (Unity) PreloadManager::UpdatePreloading
0x00007ff6a7b5cc43 (Unity) `InitPlayerLoopCallbacks'::`2'::EarlyUpdateUpdatePreloadingRegistrator::Forward
0x00007ff6a7b443cc (Unity) ExecutePlayerLoop
0x00007ff6a7b444a3 (Unity) ExecutePlayerLoop
0x00007ff6a7b4a0e9 (Unity) PlayerLoop
0x00007ff6a8a91778 (Unity) PlayerLoopController::UpdateScene
0x00007ff6a8a8f95f (Unity) Application::TickTimer
0x00007ff6a8edb00a (Unity) MainMessageLoop
0x00007ff6a8edf8bb (Unity) WinMain
0x00007ff6aa2128be (Unity) __scrt_common_main_seh
0x00007ff9d2cb7034 (KERNEL32) BaseThreadInitThunk
0x00007ff9d38226a1 (ntdll) RtlUserThreadStart

ZenBre4ker avatar Oct 19 '22 14:10 ZenBre4ker

Hi I am getting the same error when executing WebRTC.Initialize();

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Unity.WebRTC.NativeMethods.ContextCreate (int) [0x00009] in <77c2c40c5d404fc3ac3e12290d9e2d84>:0
  at Unity.WebRTC.Context.Create (int) [0x00000] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\Scripts\Context.cs:18
  at Unity.WebRTC.WebRTC.Initialize (bool,bool,Unity.WebRTC.NativeLoggingSeverity) [0x0008f] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\Scripts\WebRTC.cs:692
  at Viewsonic.Streaming.WebRTCMeshArch.CreateWebRTCSolution (Viewsonic.Streaming.WebRTCMeshArch/MeshArchEventStruct) [0x0001d] in D:\UnityProject\Assets\Plugins\JanusVideoConference\WebRTC\Script\WebRTC_Solution\WebRTCMeshArch.cs:154
  at Viewsonic.Streaming.WebRTCMeshArch.CallConnection (Viewsonic.Streaming.WebRTCMeshArch/MeshArchEventStruct) [0x00000] in D:\UnityProject\Assets\Plugins\JanusVideoConference\WebRTC\Script\WebRTC_Solution\WebRTCMeshArch.cs:33
  at Viewsonic.Streaming.Janus.JanusVideoConference.ShareAsPublisher (string) [0x0006b] in D:\UnityProject\Assets\Plugins\JanusVideoConference\WebRTC\Script\WebRTC_Solution\Janus\JanusVideoConference.cs:121
  at Viewsonic.Streaming.Sample.JanusConnectionSample/<>c__DisplayClass15_0.<Start>b__0 () [0x00000] in D:\UnityProject\Assets\Plugins\JanusVideoConference\WebRTC\Script\WebRTC_Solution\Janus\JanusConnectionSample.cs:70
  at Hsinpa.Utility.UtilityFunc/<>c__DisplayClass31_0.<SetSimpleBtnEvent>b__0 () [0x00000] in D:\UnityProject\Assets\MainFeatures\Utility\UtilityFunc.cs:322
  at UnityEngine.Events.InvokableCall.Invoke () [0x00016] in <5e24da9c972e4f5888d47a5ad4e28202>:0
  at UnityEngine.Events.UnityEvent.Invoke () [0x00023] in <5e24da9c972e4f5888d47a5ad4e28202>:0
  at UnityEngine.UI.Button.Press () [0x0001c] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\UI\Core\Button.cs:70
  at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData) [0x00009] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\UI\Core\Button.cs:114
  at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.BaseEventData) [0x00000] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\EventSystem\ExecuteEvents.cs:57
  at UnityEngine.EventSystems.ExecuteEvents.Execute<T_REF> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<T_REF>) [0x00067] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\EventSystem\ExecuteEvents.cs:272
  at UnityEngine.InputSystem.UI.InputSystemUIInputModule.ProcessPointerButton (UnityEngine.InputSystem.UI.PointerModel/ButtonState&,UnityEngine.EventSystems.PointerEventData) [0x0017b] in D:\UnityProject\Library\PackageCache\[email protected]\InputSystem\Plugins\UI\InputSystemUIInputModule.cs:386
  at UnityEngine.InputSystem.UI.InputSystemUIInputModule.ProcessPointer (UnityEngine.InputSystem.UI.PointerModel&) [0x000fd] in D:\UnityProject\Library\PackageCache\[email protected]\InputSystem\Plugins\UI\InputSystemUIInputModule.cs:232
  at UnityEngine.InputSystem.UI.InputSystemUIInputModule.Process () [0x0005b] in D:\UnityProject\Library\PackageCache\[email protected]\InputSystem\Plugins\UI\InputSystemUIInputModule.cs:1551
  at UnityEngine.EventSystems.EventSystem.Update () [0x000b7] in D:\UnityProject\Library\PackageCache\[email protected]\Runtime\EventSystem\EventSystem.cs:501
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x00020] in <695d1cc93cca45069c528c15c9fdd749>:0

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Received signal SIGSEGV
Stack trace:
0x00007ff836d13165 (webrtc) GetUpdateTextureFunc
0x00007ff836d01549 (webrtc) GetUpdateTextureFunc
0x00007ff836d0002a (webrtc) GetUpdateTextureFunc
0x00007ff836cf3626 (webrtc) ContextCreate
0x000001b1e2bc58e7 (Mono JIT Code) (wrapper managed-to-native) Unity.WebRTC.NativeMethods:ContextCreate (int)
0x000001b1e2bc57b3 (Mono JIT Code) [Context.cs:18] Unity.WebRTC.Context:Create (int) 
0x000001b1e2bc51f3 (Mono JIT Code) [WebRTC.cs:692] Unity.WebRTC.WebRTC:Initialize (bool,bool,Unity.WebRTC.NativeLoggingSeverity) 
0x000001b1e2bc475b (Mono JIT Code) [WebRTCMeshArch.cs:155] Viewsonic.Streaming.WebRTCMeshArch:CreateWebRTCSolution (Viewsonic.Streaming.WebRTCMeshArch/MeshArchEventStruct) 
0x000001b1e2bc462b (Mono JIT Code) [WebRTCMeshArch.cs:33] Viewsonic.Streaming.WebRTCMeshArch:CallConnection (Viewsonic.Streaming.WebRTCMeshArch/MeshArchEventStruct) 
0x000001b1e2bc3ad3 (Mono JIT Code) [JanusVideoConference.cs:122] Viewsonic.Streaming.Janus.JanusVideoConference:ShareAsPublisher (string) 
0x000001b1e2bc38ab (Mono JIT Code) [JanusConnectionSample.cs:71] Viewsonic.Streaming.Sample.JanusConnectionSample/<>c__DisplayClass15_0:<Start>b__0 () 
0x000001b1e2b56d8d (Mono JIT Code) [UtilityFunc.cs:322] Hsinpa.Utility.UtilityFunc/<>c__DisplayClass31_0:<SetSimpleBtnEvent>b__0 () 
0x000001b1e2b56d49 (Mono JIT Code) UnityEngine.Events.InvokableCall:Invoke ()
0x000001b1e2b56b1b (Mono JIT Code) UnityEngine.Events.UnityEvent:Invoke ()
0x000001b1e2b568b3 (Mono JIT Code) [Button.cs:71] UnityEngine.UI.Button:Press () 
0x000001b1e2b567f3 (Mono JIT Code) [Button.cs:115] UnityEngine.UI.Button:OnPointerClick (UnityEngine.EventSystems.PointerEventData) 
0x000001b1e2b56799 (Mono JIT Code) [ExecuteEvents.cs:58] UnityEngine.EventSystems.ExecuteEvents:Execute (UnityEngine.EventSystems.IPointerClickHandler,UnityEngine.EventSystems.BaseEventData) 
0x000001b1e2b36f9a (Mono JIT Code) [ExecuteEvents.cs:272] UnityEngine.EventSystems.ExecuteEvents:Execute<T_REF> (UnityEngine.GameObject,UnityEngine.EventSystems.BaseEventData,UnityEngine.EventSystems.ExecuteEvents/EventFunction`1<T_REF>) 
0x000001b1e2b24fbb (Mono JIT Code) [InputSystemUIInputModule.cs:386] UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointerButton (UnityEngine.InputSystem.UI.PointerModel/ButtonState&,UnityEngine.EventSystems.PointerEventData) 
0x000001b1e2b1e83b (Mono JIT Code) [InputSystemUIInputModule.cs:233] UnityEngine.InputSystem.UI.InputSystemUIInputModule:ProcessPointer (UnityEngine.InputSystem.UI.PointerModel&) 
0x000001b15317f7c3 (Mono JIT Code) [InputSystemUIInputModule.cs:1556] UnityEngine.InputSystem.UI.InputSystemUIInputModule:Process () 
0x000001b13211da6f (Mono JIT Code) [EventSystem.cs:504] UnityEngine.EventSystems.EventSystem:Update () 
0x000001b12ebcfe90 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff85a88e670 (mono-2.0-bdwgc) [mini-runtime.c:2827] mono_jit_runtime_invoke 
0x00007ff85a812af2 (mono-2.0-bdwgc) [object.c:2921] do_runtime_invoke 
0x00007ff85a81bb4f (mono-2.0-bdwgc) [object.c:2968] mono_runtime_invoke 
0x00007ff7a09462c4 (Unity) scripting_method_invoke
0x00007ff7a09418a1 (Unity) ScriptingInvocation::Invoke
0x00007ff7a0911d84 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff7a0911e8c (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff7a0491c68 (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff7a0497c5a (Unity) BehaviourManager::Update
0x00007ff7a068b29d (Unity) InitPlayerLoopCallbacks'::2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff7a0673f2c (Unity) ExecutePlayerLoop
0x00007ff7a0674003 (Unity) ExecutePlayerLoop
0x00007ff7a0679159 (Unity) PlayerLoop
0x00007ff7a0e00b41 (Unity) PlayerLoopController::UpdateScene
0x00007ff7a0dff0d4 (Unity) Application::TickTimer
0x00007ff7a1204691 (Unity) MainMessageLoop
0x00007ff7a12082c6 (Unity) WinMain
0x00007ff7a2d74852 (Unity) __scrt_common_main_seh
0x00007ff9139e54e0 (KERNEL32) BaseThreadInitThunk
0x00007ff914b4485b (ntdll) RtlUserThreadStart

hsinpa avatar Oct 20 '22 00:10 hsinpa

My environment Unity 2021,3 OS: Windows 10 / 11 WebRTC package: 2.4.0-exp.11 Nvidia driver version : 516.59

Its 100% reproduceable, if you use following gpu card Nvida Geforce MX450 OR MX330

The possible work around right now, is to force switch to integrated gpu

hsinpa avatar Oct 20 '22 00:10 hsinpa

@hsinpa I guess the cause of your issue is GPUs(MX450 and MX330) don't support NvCodec. image

https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new

We should fix the issue but don't have MX series GPUs...

karasusan avatar Oct 20 '22 09:10 karasusan

Greetings, I have the same issue on this environment: Unity 2021.3 OS: W10 WebRTC: 3.0.0-pre1 Nvidia Geforce 940M driver v. 526.98

The only workaround is to disable the Nvidia device via Device Manager

davide-aldegheri avatar Nov 23 '22 17:11 davide-aldegheri

Is there no other way to solve it besides disabling Nvidia devices? Why didn't the previous lower version have this issue?

guochaolinDLKF avatar Apr 18 '23 10:04 guochaolinDLKF

@guochaolinDLKF Sorry for bothering you but we don't have old devices, so can't reproduce the crash.

Can anyone reproduce the crash with the native plugin building for debug?

karasusan avatar Apr 19 '23 00:04 karasusan

Only some graphics cards of the MX series will crash, that is, devices that do not support NVCodec. We also know it through user feedback. We can't give up this part of users. Can we separate the processing related to video decoding from the logic related to data communication? We only need the logic of data communication, and do not need webrtc to do any rendering related processing

guochaolinDLKF avatar Apr 19 '23 01:04 guochaolinDLKF

@karasusan Can we separate the processing related to video decoding from the logic related to data communication? We only need the logic of data communication and audio, not the related processing of video

guochaolinDLKF avatar Apr 20 '23 03:04 guochaolinDLKF

@guochaolinDLKF I think you can do it if you set disable GPU.

karasusan avatar Apr 25 '23 05:04 karasusan

@hsinpa I guess the cause of your issue is GPUs(MX450 and MX330) don't support NvCodec. image

https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new

We should fix the issue but don't have MX series GPUs...

if you don't have MX series GPUs, you can use GT1030,too. I got similar problem.

My Enviroment: OS : Windows 11, Windows10 Unity : 2020.3.47f1, 2021.3.16f1, 2021.3.24f1 WebRTC package : 2.4.0-exp.11, 3.0.0-exp.4 GPU : GT1030

My project can run well on Mac. On Windows, It is forced off without any debug information and error alarms when calling WebRTC. Initialize().

DannisMa avatar May 05 '23 07:05 DannisMa

We can't reproduce it because we can't prepare a GPU. Has anyone experienced this with GPUs in the cloud provider as well?

kannan-xiao4 avatar May 09 '23 04:05 kannan-xiao4

FYI I encountered this problem. (It was MX450) This problem cannot be detected by checking the DLL can load or not because the target DLL is included in the Driver. Just like when NvEnc's ConcurrentSession is exceeded, it seems that the Model causes an Exception to occur when calling the API in the first place.

kannan-xiao4 avatar Dec 07 '23 08:12 kannan-xiao4

Hi, everyone. I built a package which containing the PR fixes this issue. If you can download and check whether this issue is reproduced or not, it helps us. https://drive.google.com/file/d/1ySSY9b0F2d4xL_T3af3myJKDr0C0EOo8/view?usp=sharing

karasusan avatar Dec 12 '23 01:12 karasusan