Unity-Technologies / Unity-Technologies/com.unity.webrtc
[BUG]: Crash when building for Dedicated Server (Linux and Windows)
@karasusan is already working on this.
Since Jun 21, 2022.
- Dominant language
- Assembly
- Stars
- 852
- Forks
- 238
- PR merge metrics
- No merged PRs in 30d
Description
Package version
2.4.0-exp.7
Environment
* OS:Windows and Linux
* Unity version:2021.3.3f1
Steps To Reproduce
Build and the VideoReceive Sample with Dedicated Server as build Target (Windows or Linux)
Current Behavior
App Crashes when initializing WebRTC
=================================================================
Managed Stacktrace:
at <unknown> <0xffffffff>
at Unity.WebRTC.NativeMethods:ContextCreate <0x00089>
at Unity.WebRTC.Context:Create <0x00022>
at Unity.WebRTC.WebRTC:Initialize <0x0015a>
at Unity.WebRTC.Samples.VideoReceiveSample:Awake <0x00042>
at System.Object:runtime_invoke_void__this__ <0x00087>
=================================================================
Crash!!!
========== OUTPUTTING STACK TRACE ==================
0x00007FFBC8690B30 (webrtc) GetUpdateTextureFunc
0x00007FFBC867F1BC (webrtc) GetUpdateTextureFunc
0x00007FFBC867EDCA (webrtc) GetUpdateTextureFunc
0x0000019D99620C3A (Mono JIT Code) (wrapper managed-to-native) Unity.WebRTC.NativeMethods:ContextCreate (int)
0x0000019D99620AF3 (Mono JIT Code) Unity.WebRTC.Context:Create (int)
0x0000019D9962015B (Mono JIT Code) Unity.WebRTC.WebRTC:Initialize (bool,bool,Unity.WebRTC.NativeLoggingSeverity)
0x0000019D9961F3B3 (Mono JIT Code) Unity.WebRTC.Samples.VideoReceiveSample:Awake ()
0x0000019D3829D088 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007FFC133FE0A4 (mono-2.0-bdwgc) mono_jit_set_domain
0x00007FFC1333E744 (mono-2.0-bdwgc) mono_object_get_virtual_method
0x00007FFC1333E8DC (mono-2.0-bdwgc) mono_runtime_invoke
Expected Behavior
App does not crash
Anything else?
This used to worked on 2.4.0-exp.4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.