Crash in System.Net.NetworkInformation.SystemNetworkInterface.InternalGetIsNetworkAvailable -> System.Net.NetworkInformation.SystemIPv4InterfaceProperties.GetPerAdapterInfo
- Dominant language
- C#
- Stars
- 18.3k
- Forks
- 5.6k
- PR merge metrics
- PR metrics pending
Description
### Description
Faulting application name: PhoneExperienceHost.exe, version: 1.25112.36.0, time stamp: 0x691d0000
Faulting module name: coreclr.dll, version: 10.0.125.57005, time stamp: 0x691ddc6e
Exception code: 0xc0000005
Fault offset: 0x0000000000367c3a
Faulting process id: 0x7594
Faulting application start time: 0x1DC86A5CFF88276
Faulting application path: C:\Program Files\WindowsApps\Microsoft.YourPhone_1.25112.36.0_x64__8wekyb3d8bbwe\PhoneExperienceHost.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.YourPhone_1.25112.36.0_x64__8wekyb3d8bbwe\coreclr.dll
Report Id: 45bc2f72-f4a9-4284-9443-6b54e5e407be
Faulting package full name: Microsoft.YourPhone_1.25112.36.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App
There are several crashes inside the windows logs, all starting around System.Net.NetworkInformation.SystemNetworkInterface.InternalGetIsNetworkAvailable and ending up at System.Net.NetworkInformation.SystemIPv4InterfaceProperties.GetPerAdapterInfo.
Example stack trace 1
```
Application: PhoneExperienceHost.exe
CoreCLR Version: 10.0.125.57005
.NET Version: 10.0.1
Description: The process was terminated due to an unhandled exception.
Stack:
at System.Net.NetworkInformation.SystemIPv4InterfaceProperties.GetPerAdapterInfo(UInt32)
at System.Net.NetworkInformation.SystemIPInterfaceProperties..ctor(IpAdapterAddresses ByRef)
at System.Net.NetworkInformation.SystemNetworkInterface..ctor(IpAdapterAddresses ByRef)
at System.Net.NetworkInformation.SystemNetworkInterface.GetNetworkInterfaces()
at System.Net.NetworkInformation.SystemNetworkInterface.InternalGetIsNetworkAvailable()
at System.Net.NetworkInformation.NetworkChange+AvailabilityChangeListener.Start(System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler)
at YourPhone.YPP.Common.Networking.Network.add_LocalNetworkAvailabilityChanged(System.EventHandler_1)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(System.Object, IntPtr*)
at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at System.Reflection.RuntimeConstructorInfo.Invoke(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(Microsoft.Extensions.DependencyInjection.ServiceLookup.IEnumerableCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceIdentifier)
at System.Collections.Concurrent.ConcurrentDictionary_2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceIdentifier, Microsoft.Extensions.DependencyInjection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].GetOrAdd(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceIdentifier, System.Func_2)
at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceIdentifier, Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(System.Type)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(System.IServiceProvider, System.Type)
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.IServiceProvider)
at YourPhone.YourPhoneApp+<>c__DisplayClass9_0.<.ctor>b__2()
at System.Lazy_1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].ViaFactory(System.Threading.LazyThreadSafetyMode)
at System.Lazy_1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].CreateValue()
at YourPhone.YourPhoneApp.Activated(YourPhone.Contracts.Shell.Navigation.LaunchSource, System.Uri)
at YourPhone.Services.LifecycleHelper.RaiseActivated(YourPhone.Contracts.Shell.Navigation.LaunchSource, System.Uri)
at YourPhone.App.OnActivated(Microsoft.Windows.AppLifecycle.ExtendedActivationKind, YourPhone.Contracts.Shell.Navigation.LaunchSource, System.Uri)
at YourPhone.App+d__17.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[[YourPhone.App+d__17, PhoneExperienceHost, Version=1.25112.36.0, Culture=neutral, PublicKeyToken=null]](d__17 ByRef)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[[YourPhone.App+d__17, PhoneExperienceHost, Version=1.25112.36.0, Culture=neutral, PublicKeyToken=null]](d__17 ByRef)
at YourPhone.App.OnLaunchedAsync()
at YourPhone.App.OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs)
at Microsoft.UI.Xaml.Application.Microsoft.UI.Xaml.IApplicationOverrides.OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs)
at ABI.Microsoft.UI.Xaml.IApplicationOverrides.Do_Abi_OnLaunched_0(IntPtr, IntPtr)
at ABI.Microsoft.UI.Xaml.IApplicationStaticsMethods.Start(WinRT.IObjectReference, Microsoft.UI.Xaml.ApplicationInitializationCallback)
at YourPhone.Program.Main(System.String[])
```
Example stack trace 2
```
Application: PhoneExperienceHost.exe
CoreCLR Version: 10.0.125.57005
.NET Version: 10.0.1
Description: The process was terminated due to an unhandled exception.
Stack:
at Interop+IpHlpApi.GetPerAdapterInfo(UInt32, IntPtr, UInt32*)
at Interop+IpHlpApi.GetPerAdapterInfo(UInt32, IntPtr, UInt32*)
at System.Net.NetworkInformation.SystemIPv4InterfaceProperties.GetPerAdapterInfo(UInt32)
at System.Net.NetworkInformation.SystemIPInterfaceProperties..ctor(IpAdapterAddresses ByRef)
at System.Net.NetworkInformation.SystemNetworkInterface..ctor(IpAdapterAddresses ByRef)
at System.Net.NetworkInformation.SystemNetworkInterface.GetNetworkInterfaces()
at YourPhone.YPP.Common.Networking.Network.IsInternetConnected()
at YourPhone.YPP.SignalR.SignalRTransport+Log.GetBaseActivityDetailsFromMessage(YourPhone.YPP.Transport.Messaging.IOutgoingMessage)
at YourPhone.YPP.SignalR.SignalRTransport+Log.SendMessageActivityStop(YourPhone.YPP.Transport.Messaging.IOutgoingMessage, YourPhone.YPP.Common.Logging.HealthActivity, YourPhone.YPP.Transport.Messaging.SendMessageStatus, YourPhone.YPP.Transport.Messaging.SendMessageResult, System.TimeSpan)
at YourPhone.YPP.SignalR.SignalRTransport+d__10.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1+AsyncStateMachineBox_1[[YourPhone.YPP.Transport.Messaging.SendMessageStatus, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null],[YourPhone.YPP.SignalR.SignalRTransport+d__10, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null]].ExecutionContextCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1+AsyncStateMachineBox_1[[YourPhone.YPP.Transport.Messaging.SendMessageStatus, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null],[YourPhone.YPP.SignalR.SignalRTransport+d__10, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null]].MoveNext(System.Threading.Thread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1+AsyncStateMachineBox_1[[YourPhone.YPP.Transport.Messaging.SendMessageStatus, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null],[YourPhone.YPP.SignalR.SignalRTransport+d__10, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null]].MoveNext()
at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(System.Runtime.CompilerServices.IAsyncStateMachineBox, Boolean)
at System.Threading.Tasks.Task.RunContinuations(System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].SetResult(System.__Canon)
at YourPhone.YPP.Transport.Messaging.OutgoingMessageClient+d__17.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1+AsyncStateMachineBox_1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[YourPhone.YPP.Transport.Messaging.OutgoingMessageClient+d__17, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null]].ExecutionContextCallback(System.Object)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(System.Threading.Thread, System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1+AsyncStateMachineBox_1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[YourPhone.YPP.Transport.Messaging.OutgoingMessageClient+d__17, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null]].MoveNext(System.Threading.Thread)
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder_1+AsyncStateMachineBox_1[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[YourPhone.YPP.Transport.Messaging.OutgoingMessageClient+d__17, YourPhone.YPP, Version=0.25112.42.0, Culture=neutral, PublicKeyToken=null]].ExecuteFromThreadPool(System.Threading.Thread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool+WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
```
### Reproduction Steps
Windows 11 Phone Link Crashes when trying to access phone.
The error is inside the windows logs.
### Expected behavior
Not crashing.
### Actual behavior
Crashing.
### Regression?
_No response_
### Known Workarounds
_No response_
### Configuration
_No response_
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.