Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue using dotnet trace on MacCatalyst apps #73715

Closed
jonathanpeppers opened this issue Aug 10, 2022 · 7 comments
Closed

Issue using dotnet trace on MacCatalyst apps #73715

jonathanpeppers opened this issue Aug 10, 2022 · 7 comments

Comments

@jonathanpeppers
Copy link
Member

Description

I filed this here, as it seems related to Mono diagnostics.

This works for a MAUI project template:

  • dotnet new maui
  • dotnet build -c Release -f net6.0-maccatalyst -r maccatalyst-arm64
  • dotnet trace collect --format speedscope -- bin/Release/net6.0-maccatalyst/maccatalyst-arm64/MyApp.app/Contents/MacOS/MyApp

I get a .nettrace and .speedscope that are valid.

However, in both a customer's app and the .NET Podcast sample:

https://github.com/microsoft/dotnet-podcasts/tree/main/src/Mobile

The app attempts to launch, but shows the macOS "bouncy" animation. It appears the app is stuck and never launches. If I Ctrl+C dotnet trace writes a partial .nettrace file that looks to be broken as if the app crashed.

I'm not sure how to diagnose further, but I can try something, thanks!

Reproduction Steps

Try my steps above on the .NET Podcast sample:

https://github.com/microsoft/dotnet-podcasts/tree/main/src/Mobile

Expected behavior

I can use dotnet trace on the .NET Podcast app.

Actual behavior

I can't seem to use dotnet trace on the .NET Podcast app.

Regression?

I'm not sure if many have used dotnet trace on MacCatalyst, or if I'm the first.

Known Workarounds

No response

Configuration

Running with .NET 6.0.400 on Apple M1, macOS 12.5 Monterey

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 10, 2022
@mdh1418
Copy link
Member

mdh1418 commented Aug 12, 2022

I ran a MacCatalyst test app on dotnet/runtime and it dotnet-trace'd fine.
I was able to repro the problem, and I also get that the dotnet-trace process hangs. When I try to build the podcast app itself via dotnet build -t:Run -f net6.0-maccatalyst -r maccatalyst-x64 Microsoft.NetConf2021.Maui.csproj it seems to have a problem, so maybe its because of this?
Screen Shot 2022-08-12 at 17 36 35
Its not clear to me that this is a mono issue yet.

@akoeplinger
Copy link
Member

Even with that alert (which I think just happens because the app can't talk to the API, you'd need to run a separate project for that) shouldn't tracing still work? It's just some code that runs.

@jonathanpeppers
Copy link
Member Author

Yes, I see the "Oppss" on iOS and Android, but dotnet trace works fine.

@akoeplinger akoeplinger removed the untriaged New issue has not been triaged by the area owner label Aug 12, 2022
@akoeplinger akoeplinger added this to the 7.0.0 milestone Aug 12, 2022
@mdh1418
Copy link
Member

mdh1418 commented Aug 13, 2022

When running the trace command independently, some more interesting traces are found

mihw@Ryans-Mac-mini diagnostics % DOTNET_DiagnosticPorts="/Users/mihw/myport,suspend" /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui
The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC ResumeStartup command from a Diagnostic Port.
DOTNET_DiagnosticPorts="/Users/mihw/myport,suspend"
DOTNET_DefaultDiagnosticPortSuspend=0
2022-08-12 23:44:43.613 Microsoft.NetConf2021.Maui[78036:1686250] warning: jit_tls required for stack walk

=================================================================
	Native Crash Reporting
=================================================================
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.
=================================================================

=================================================================
	Native stacktrace:
=================================================================
	0x10a0cdf68 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_dump_native_crash_info
	0x10a08c5d8 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_handle_native_crash
	0x109ffd558 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_sigsegv_signal_handler_debug
	0x19423f4a4 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0x10a142210 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : ep_rt_mono_write_event_exception_thrown
	0x109f3b808 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_profiler_raise_exception_throw
	0x10a08b598 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_handle_exception_internal
	0x10a08a980 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_handle_exception
	0x10a0ca16c - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_arm_throw_exception
	0x104dd612c - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : throw_exception
	0x104a5acf8 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Reflection_Assembly_Load_System_Reflection_AssemblyName_System_Threading_StackCrawlMark__System_Runtime_Loader_AssemblyLoadContext
	0x104a63c2c - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Reflection_RuntimeAssembly_InternalGetSatelliteAssembly_System_Reflection_Assembly_System_Globalization_CultureInfo_System_Version_bool
	0x104a51a10 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Resources_ManifestBasedResourceGroveler_InternalGetSatelliteAssembly_System_Reflection_Assembly_System_Globalization_CultureInfo_System_Version
	0x104a52c10 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Resources_ManifestBasedResourceGroveler_GetSatelliteAssembly_System_Globalization_CultureInfo
	0x104a51b44 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Resources_ManifestBasedResourceGroveler_GrovelForResourceSet_System_Globalization_CultureInfo_System_Collections_Generic_Dictionary_2_string_System_Resources_ResourceSet_bool_bool
	0x104a54ed0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Resources_ResourceManager_InternalGetResourceSet_System_Globalization_CultureInfo_bool_bool
	0x104a55788 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Resources_ResourceManager_GetString_string_System_Globalization_CultureInfo
	0x103020790 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_NetConf2021_Maui_Resources_Strings_AppResource_get_Discover
	0x102ff96b4 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_NetConf2021_Maui_ViewModels_ShellViewModel__ctor
	0x103028b70 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_NetConf2021_Maui_Pages_DesktopShell__ctor
	0x102fe1cb4 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_NetConf2021_Maui_App__ctor
	0x104d42118 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
	0x10a0006b0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
	0x109f2afb4 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_runtime_invoke_checked
	0x109f335b8 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_runtime_try_invoke_array
	0x109eeca64 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : ves_icall_InternalInvoke
	0x109ef87e0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : ves_icall_InternalInvoke_raw
	0x104a6ad90 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : wrapper_managed_to_native_System_Reflection_RuntimeConstructorInfo_InternalInvoke_System_Reflection_RuntimeConstructorInfo_object_object___System_Exception_
	0x104a6b214 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Reflection_RuntimeConstructorInfo_InternalInvoke_object_object___bool
	0x104a6b0bc - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Reflection_RuntimeConstructorInfo_DoInvoke_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo
	0x104a6b2a0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Reflection_RuntimeConstructorInfo_Invoke_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo
	0x1034ae018 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceLookup_CallSiteRuntimeResolver_VisitConstructor_Microsoft_Extensions_DependencyInjection_ServiceLookup_ConstructorCallSite_Microsoft_Extensions_DependencyInjection_ServiceLookup_RuntimeResolverContext
	0x1034c8418 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceLookup_CallSiteVisitor_2_Microsoft_Extensions_DependencyInjection_ServiceLookup_RuntimeResolverContext_object_VisitCallSiteMain_Microsoft_Extensions_DependencyInjection_ServiceLookup_ServiceCallSite_Microsof
	0x1034ae1ac - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceLookup_CallSiteRuntimeResolver_VisitRootCache_Microsoft_Extensions_DependencyInjection_ServiceLookup_ServiceCallSite_Microsoft_Extensions_DependencyInjection_ServiceLookup_RuntimeResolverContext
	0x1034c8238 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceLookup_CallSiteVisitor_2_Microsoft_Extensions_DependencyInjection_ServiceLookup_RuntimeResolverContext_object_VisitCallSite_Microsoft_Extensions_DependencyInjection_ServiceLookup_ServiceCallSite_Microsoft_Ex
	0x1034ade2c - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceLookup_CallSiteRuntimeResolver_Resolve_Microsoft_Extensions_DependencyInjection_ServiceLookup_ServiceCallSite_Microsoft_Extensions_DependencyInjection_ServiceLookup_ServiceProviderEngineScope
	0x1034a9f18 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceProvider_CreateServiceAccessor_System_Type
	0x103855d90 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : System_Collections_Concurrent_ConcurrentDictionary_2_TKey_REF_TValue_REF_GetOrAdd_TKey_REF_System_Func_2_TKey_REF_TValue_REF
	0x1034a9788 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceProvider_GetService_System_Type_Microsoft_Extensions_DependencyInjection_ServiceLookup_ServiceProviderEngineScope
	0x1034a9528 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceProvider_GetService_System_Type
	0x104ee56c8 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Maui_MauiContext_WrappedServiceProvider_GetService_System_Type
	0x104ee56c8 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Maui_MauiContext_WrappedServiceProvider_GetService_System_Type
	0x10351c0a4 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceProviderServiceExtensions_GetRequiredService_System_IServiceProvider_System_Type
	0x10351c184 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Extensions_DependencyInjection_ServiceProviderServiceExtensions_GetRequiredService_T_REF_System_IServiceProvider
	0x104e4acdc - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_Maui_MauiUIApplicationDelegate_FinishedLaunching_UIKit_UIApplication_Foundation_NSDictionary
	0x104d42118 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
	0x10a0006b0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
	0x109f2c98c - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_runtime_try_invoke
	0x109f2ebfc - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_runtime_invoke
	0x10987cf20 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libxamarin-dotnet.dylib : xamarin_invoke_trampoline
	0x10987efc0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libxamarin-dotnet.dylib : xamarin_arch_trampoline
	0x10987f620 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libxamarin-dotnet.dylib : xamarin_arm64_common_trampoline
	0x1bc353fa8 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]
	0x1bc353264 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:]
	0x1bc350e34 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _runWithMainScene:transitionContext:completion:]
	0x1bc3507b8 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:]
	0x1bc34bfc0 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : _UIScenePerformActionsWithLifecycleActionMask
	0x1bc34ff14 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke
	0x1bc34fc90 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]
	0x1bc34efd0 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
	0x1bc34ebe8 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]
	0x1bc34c928 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke
	0x1bc34d0fc - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]
	0x1bc34ca7c - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : _UISceneSettingsDiffActionPerformChangesWithTransitionContext
	0x1bc34c408 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]
	0x1bc641420 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.649
	0x1bc34b454 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
	0x1bc34b280 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
	0x1bc33e9a4 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication workspace:didCreateScene:withTransitionContext:completion:]
	0x1bc33e6d0 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:]
	0x1a6c0bbc4 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:]
	0x1a6c30a68 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke.215
	0x1a6bf7ffc - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
	0x1a6c30634 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : __94-[FBSWorkspaceScenesClient createWithSceneID:groupID:parameters:transitionContext:completion:]_block_invoke
	0x1940641b4 - /usr/lib/system/libdispatch.dylib : _dispatch_client_callout
	0x194067c64 - /usr/lib/system/libdispatch.dylib : _dispatch_block_invoke_direct
	0x1a6bf7ee4 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
	0x1a6c4d5d0 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : -[FBSSerialQueue _targetQueue_performNextIfPossible]
	0x1a6bf7e84 - /System/Library/PrivateFrameworks/FrontBoardServices.framework/Versions/A/FrontBoardServices : -[FBSSerialQueue _performNextFromRunLoopSource]
	0x1942f5034 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
	0x1942f4f80 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoSource0
	0x1942f4c80 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopDoSources0
	0x1942f3600 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : __CFRunLoopRun
	0x1942f2b24 - /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation : CFRunLoopRunSpecific
	0x19cf2b338 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : RunCurrentEventLoopInMode
	0x19cf2b0b4 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : ReceiveNextEventCommon
	0x19cf2ae68 - /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox : _BlockUntilNextEventMatchingListInModeWithFilter
	0x196e5978c - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : _DPSNextEvent
	0x196e58084 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]
	0x196e4a250 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : -[NSApplication run]
	0x196e1b96c - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : NSApplicationMain
	0x1970f1a80 - /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit : +[NSWindow _savedFrameFromString:]
	0x1a9baa3b0 - /System/Library/PrivateFrameworks/UIKitMacHelper.framework/Versions/A/UIKitMacHelper : UINSApplicationMain
	0x1bc322b60 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : UIApplicationMain
	0x1056444ec - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr
	0x10556e0bc - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : UIKit_UIApplication_Main_string___System_Type_System_Type
	0x102fe2ffc - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : Microsoft_NetConf2021_Maui_Program_Main_string__
	0x104d42118 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
	0x10a0006b0 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_jit_runtime_invoke
	0x109f2afb4 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_runtime_invoke_checked
	0x109f31b08 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_runtime_exec_main_checked
	0x10a050024 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libmonosgen-2.0.dylib : mono_jit_exec
	0x10987ef18 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MonoBundle/libxamarin-dotnet.dylib : xamarin_main
	0x1056ac598 - /Users/mihw/dotnet-podcasts/src/Mobile/bin/Release/net6.0-maccatalyst/maccatalyst-arm64/Microsoft.NetConf2021.Maui.app/Contents/MacOS/Microsoft.NetConf2021.Maui : main
	0x1095e908c - Unknown

=================================================================
	Telemetry Dumper:
=================================================================
Pkilling 0x6129872896x from 0x4452631936x
Pkilling 0x6127726592x from 0x4452631936x
Pkilling 0x6132019200x from 0x4452631936x
Pkilling 0x6125580288x from 0x4452631936x
Could not exec mono-hang-watchdog, expected on path '/Users/runner/work/1/s/artifacts/obj/mono/MacCatalyst.arm64.Release/out/etc/../bin/mono-hang-watchdog' (errno 2)
Entering thread summarizer pause from 0x4452631936x
Finished thread summarizer pause from 0x4452631936x.
Failed to create breadcrumb file (null)/crash_hash_0x42fd084db4

Waiting for dumping threads to resume

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x10a14222c):0x10a14221c  08 02 80 52 16 05 88 1a 68 0e 40 f9 00 51 00 91  [email protected]..
0x10a14222c  01 11 80 b9 02 00 80 d2 03 00 80 d2 04 00 80 d2  ................
0x10a14223c  90 2a ff 97 f4 03 00 aa 75 62 40 b9 fe d4 f7 97  .*......ub@.....
0x10a14224c  08 00 40 f9 28 01 00 b4 fb d4 f7 97 08 00 40 f9  ..@.(.........@.

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at System.Reflection.RuntimeConstructorInfo:InternalInvoke <0x00007>
	  at System.Reflection.RuntimeConstructorInfo:InternalInvoke <0x00103>
	  at System.Reflection.RuntimeConstructorInfo:DoInvoke <0x0018b>
	  at System.Reflection.RuntimeConstructorInfo:Invoke <0x0004f>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver:VisitConstructor <0x00147>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2:VisitCallSiteMain <0x00137>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver:VisitRootCache <0x0016b>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2:VisitCallSite <0x001a7>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver:Resolve <0x000db>
	  at Microsoft.Extensions.DependencyInjection.ServiceProvider:CreateServiceAccessor <0x00127>
	  at System.Collections.Concurrent.ConcurrentDictionary`2:GetOrAdd <0x0013f>
	  at Microsoft.Extensions.DependencyInjection.ServiceProvider:GetService <0x00057>
	  at Microsoft.Extensions.DependencyInjection.ServiceProvider:GetService <0x00037>
	  at WrappedServiceProvider:GetService <0x000d7>
	  at WrappedServiceProvider:GetService <0x000d7>
	  at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions:GetRequiredService <0x00103>
	  at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions:GetRequiredService <0x00043>
	  at Microsoft.Maui.MauiUIApplicationDelegate:FinishedLaunching <0x000db>
	  at System.Object:runtime_invoke_dynamic <0x00127>
	  at <unknown> <0xffffffff>
	  at UIKit.UIApplication:UIApplicationMain <0x00007>
	  at UIKit.UIApplication:Main <0x0013b>
	  at Microsoft.NetConf2021.Maui.Program:Main <0x0003b>
	  at System.Object:runtime_invoke_dynamic <0x00127>
=================================================================

@akoeplinger
Copy link
Member

that is interesting indeed, stepping through ep_rt_mono_write_event_exception_thrown in a debugger should reveal what's going on.

@rolfbjarne
Copy link
Member

You're running into this: #71492

@akoeplinger
Copy link
Member

Thanks, the fix for that was backported to the pending 6.0.9 runtime release: #72002

There's also a workaround that you can use in the meantime: #71492 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants