microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
908 stars 282 forks source link

Crash on PeerConnection.InitializeAsync() UWP #617

Open sundarhigher opened 3 years ago

sundarhigher commented 3 years ago

I seem to have hit a peculiar bug related to Intel Geminilake J4105 processoers running fresh install of windows 10 professional and MixedReality.WebRTC version 2.0.2(stable), the code I used to reproduce this is below, I tried this on other processors and it seems to work fine Ryzen53600, Core i3, Core i7, but this seems to be only happening on Gemini Lake AFAIK. I I set a breakpoint at _peerConnection.InitializeAsync(config) and it crashes at that line with The program '[21232] WebRTCTest.exe' has exited with code -1073740791 (0xc0000409).

I am also including the system information with this

private async void MainPage_Loaded(object sender, RoutedEventArgs e) { _peerConnection = new PeerConnection(); var config = new PeerConnectionConfiguration { IceServers = new List { new IceServer{ Urls = { "stun:stun.l.google.com:19302" } } } }; Debug.WriteLine("Initializing Peer Connection..."); await _peerConnection.InitializeAsync(config);

        Debug.WriteLine("Hello");
    }

Logs:

'WebRTCTest.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreRuntime.2.2_2.2.27902.3_x868wekyb3d8bbwe\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Pumpkin\source\repos\WebRTCTest\WebRTCTest\bin\x86\Debug\AppX\entrypoint\WebRTCTest.exe'. Symbols loaded. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Pumpkin\source\repos\WebRTCTest\WebRTCTest\bin\x86\Debug\AppX\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Pumpkin\source\repos\WebRTCTest\WebRTCTest\bin\x86\Debug\AppX\WinMetadata\Windows.winmd'. Module was built without symbols. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Runtime.InteropServices.WindowsRuntime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Runtime.WindowsRuntime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Numerics.Vectors.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Runtime.WindowsRuntime.UI.Xaml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Pumpkin\source\repos\WebRTCTest\WebRTCTest\bin\x86\Debug\AppX\Microsoft.UI.Xaml.Markup.winmd'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Reflection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Threading.Tasks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Reflection.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x868wekyb3d8bbwe\System.Diagnostics.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\Pumpkin\source\repos\WebRTCTest\WebRTCTest\bin\x86\Debug\AppX\Microsoft.MixedReality.WebRTC.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. 'WebRTCTest.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Program Files\WindowsApps\Microsoft.NET.CoreFramework.Debug.2.2_2.2.28529.0_x86__8wekyb3d8bbwe\netstandard.dll'. Module was built without symbols. Initializing Peer Connection... The thread 0x5054 has exited with code 0 (0x0). The thread 0x2bb4 has exited with code 0 (0x0). The program '[21232] WebRTCTest.exe' has exited with code -1073740791 (0xc0000409).

systeminfo.txt

henryverlin commented 2 years ago

Hello @sundarhigher ! Were you able to get around this bug? - I have the same exact scenario and have not yet figured out how to resolve.