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

Application Crashes right after startup. #22070

Closed
elias-ik opened this issue Jan 28, 2025 · 1 comment
Closed

Application Crashes right after startup. #22070

elias-ik opened this issue Jan 28, 2025 · 1 comment

Comments

@elias-ik
Copy link

Apple platform

Mac Catalyst

Framework version

net9.0-*

Affected platform version

.NET 9.0.100

Description

Once again I am unable to pinpoint the issue, why my MAUI MacCatalyst App is crashing right after startup.

Versions: 

Workload version: 9.0.102.1
------------------------------------------
maccatalyst                SDK 9.0.100
maui-maccatalyst           SDK 9.0.100

.NET 9.0.100

XCode: Version 16.2 beta (16B5100e)

sw_vers -productVersion
15.1

My assumption is, it has something to do with permissions, but sandbox is disabled. The error seems to indicate so:
Could not create a sandbox extension for '<private>'

Entitlements.plist


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <!-- See https://aka.ms/maui-publish-app-store#add-entitlements for more information about adding entitlements.-->
    <dict>
        <!-- App Sandbox must be enabled to distribute a MacCatalyst app through the Mac App Store. -->
        <key>com.apple.security.app-sandbox</key>
        <false/>
        <!-- When App Sandbox is enabled, this value is required to open outgoing network connections. -->
        <key>com.apple.security.network.client</key>
        <true/>
        <key>com.apple.security.network.server</key>
        <true/>
        <key>com.apple.security.device.bluetooth</key>
        <true/>
        <key>com.apple.security.device.serial</key>
        <true/>

    </dict>
</plist>

Steps to Reproduce

Unable to create Repo where this issue is reproducible, I am able to share the repository with maintainers privately.

Did you find any workaround?

Relevant logs

Terminal Log

/usr/bin/open /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app
2025-01-28 19:19:36.868 CST.Desktop[58787:7956839] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
2025-01-28 19:19:37.308 CST.Desktop[58787:7956839] warning: Process terminated.
2025-01-28 19:19:37.308 CST.Desktop[58787:7956839] warning: Encountered infinite recursion while looking up resource 'IO_FileName_Name' in System.Private.CoreLib. Verify the installation of .NET is complete and does not need repairing, and that the state of the process has not become corrupted.

=================================================================
	Native Crash Reporting
=================================================================
Got a SIGABRT 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:
=================================================================
	0x1017c6460 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_dump_native_crash_info
	0x10177b7dc - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_handle_native_crash
	0x1018b846c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : sigabrt_signal_handler.cold.1
	0x1017c5d44 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_setup_stat_profiler
	0x188680184 - /usr/lib/system/libsystem_platform.dylib : _sigtramp
	0x18864af70 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
	0x188557908 - /usr/lib/system/libsystem_c.dylib : abort
	0x101677e3c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : ves_icall_System_Environment_get_TickCount
	0x10167a094 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : ves_icall_System_Environment_GetCommandLineArgs_raw
	0x1017d632c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : do_icall
	0x1017d48d4 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : do_icall_wrapper
	0x1017c9f80 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_interp_exec_method
	0x1017c7a48 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_runtime_invoke
	0x10170fca0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_jit_runtime_invoke
	0x1016b1fa8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_try_invoke
	0x1016b7024 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_delegate_try_invoke_handle
	0x1016b6f20 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_first_chance_exception_checked
	0x1016b6bc0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_first_chance_exception_internal
	0x10177a854 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_handle_exception_internal
	0x101779afc - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_handle_exception
	0x1017d592c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_throw
	0x1017d3ce8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_throw_ex_general
	0x1017c95f0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_interp_exec_method
	0x1017c7a48 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_runtime_invoke
	0x10170fca0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_jit_runtime_invoke
	0x1016b1fa8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_try_invoke
	0x1016b7024 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_delegate_try_invoke_handle
	0x1016b6f20 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_first_chance_exception_checked
	0x1016b6bc0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_first_chance_exception_internal
	0x10177a854 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_handle_exception_internal
	0x101779afc - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_handle_exception
	0x1017d592c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_throw
	0x1017d3ce8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_throw_ex_general
	0x1017c95f0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_interp_exec_method
	0x1017c7a48 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_runtime_invoke
	0x10170fca0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_jit_runtime_invoke
	0x1016b0690 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_invoke_checked
	0x1016b3fb8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_invoke
	0x1015328dc - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : xamarin_invoke_trampoline
	0x101538c2c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : xamarin_arch_trampoline
	0x101539a10 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : xamarin_arm64_common_trampoline
	0x1ba04e0c0 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]
	0x1ba04d56c - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:]
	0x1ba04b830 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _runWithMainScene:transitionContext:completion:]
	0x1ba04b328 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:]
	0x1bafaf194 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _compellApplicationLaunchToCompleteUnconditionally]
	0x1ba031384 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : -[UIApplication _run]
	0x1ba027190 - /System/iOSSupport/System/Library/PrivateFrameworks/UIKitCore.framework/Versions/A/UIKitCore : UIApplicationMain
	0x1015105f4 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : xamarin_UIApplicationMain
	0x1017d63a0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : do_icall
	0x1017d489c - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : do_icall_wrapper
	0x1017c9f80 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_interp_exec_method
	0x1017c7a48 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : interp_runtime_invoke
	0x10170fca0 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_jit_runtime_invoke
	0x1016b0690 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_invoke_checked
	0x1016b65d8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_runtime_exec_main_checked
	0x101761488 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : mono_jit_exec
	0x101538ad8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : xamarin_main
	0x1018b72b8 - /Users/elias/Documents/repos/carly-simulator-tool/CST.Desktop/bin/Debug/net9.0-maccatalyst/maccatalyst-arm64/CST.Desktop.app/Contents/MacOS/CST.Desktop : main
	0x1882c8274 - /usr/lib/dyld : start

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x188612600):0x1886125f0  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......
0x188612600  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......
0x188612610  67 e0 ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  g........{...._.
0x188612620  c0 03 5f d6 70 0a 80 d2 01 10 00 d4 03 01 00 54  .._.p..........T

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at System.Environment:FailFast <0x00036>
	  at System.Environment:FailFast <0x00026>
	  at System.SR:InternalGetResourceString <0x00214>
	  at System.SR:GetResourceString <0x0004a>
	  at System.SR:get_IO_FileName_Name <0x00016>
	  at System.IO.FileNotFoundException:ToString <0x000b0>
	  at System.Diagnostics.Debug:WriteLine <0x00036>
	  at <>c:<CreateMauiApp>b__0_0 <0x00048>
	  at <Module>:runtime_invoke_direct_void__this___object_FirstChanceExceptionEventArgs <0x000c0>
	  at <unknown> <0x00000>
	  at <unknown> <0xffffffff>
	  at System.Reflection.Assembly:Load <0x000ce>
	  at System.Reflection.RuntimeAssembly:InternalGetSatelliteAssembly <0x0019c>
	  at System.Resources.ManifestBasedResourceGroveler:InternalGetSatelliteAssembly <0x00032>
	  at System.Resources.ManifestBasedResourceGroveler:GetSatelliteAssembly <0x00128>
	  at System.Resources.ManifestBasedResourceGroveler:GrovelForResourceSet <0x000e6>
	  at System.Resources.ResourceManager:InternalGetResourceSet <0x002fa>
	  at System.Resources.ResourceManager:GetString <0x00192>
	  at System.SR:InternalGetResourceString <0x00370>
	  at System.SR:GetResourceString <0x0004a>
	  at System.SR:get_IO_FileName_Name <0x00016>
	  at System.IO.FileNotFoundException:ToString <0x000b0>
	  at System.Diagnostics.Debug:WriteLine <0x00036>
	  at <>c:<CreateMauiApp>b__0_0 <0x00048>
	  at <Module>:runtime_invoke_direct_void__this___object_FirstChanceExceptionEventArgs <0x000c0>
	  at <unknown> <0x00000>
	  at <unknown> <0xffffffff>
	  at System.Reflection.Assembly:Load <0x000ce>
	  at System.Reflection.RuntimeAssembly:InternalGetSatelliteAssembly <0x0019c>
	  at System.Resources.ManifestBasedResourceGroveler:InternalGetSatelliteAssembly <0x00032>
	  at System.Resources.ManifestBasedResourceGroveler:GetSatelliteAssembly <0x00128>
	  at System.Resources.ManifestBasedResourceGroveler:GrovelForResourceSet <0x000e6>
	  at System.Resources.ResourceManager:InternalGetResourceSet <0x002fa>
	  at System.Resources.ResourceManager:GetString <0x00192>
	  at System.SR:InternalGetResourceString <0x00370>
	  at System.SR:GetResourceString <0x0004a>
	  at System.SR:get_Globalization_cp_1200 <0x00016>
	  at System.Text.EncodingTable:GetDisplayName <0x0012a>
	  at System.Text.EncodingTable:InternalGetCodePageDataItem <0x00102>
	  at System.Text.EncodingTable:GetCodePageDataItem <0x0029e>
	  at System.Text.Encoding:GetDataItem <0x0003a>
	  at System.Text.Encoding:get_WebName <0x0002c>
	  at System.Xml.XmlTextReaderImpl:SwitchEncoding <0x0001e>
	  at System.Xml.XmlTextReaderImpl:ParseXmlDeclaration <0x006cc>
	  at System.Xml.XmlTextReaderImpl:Read <0x001a2>
	  at Microsoft.Maui.Controls.Xaml.XamlLoader:Load <0x003d8>
	  at Microsoft.Maui.Controls.Xaml.XamlLoader:Load <0x00032>
	  at Microsoft.Maui.Controls.Xaml.XamlLoader:Load <0x000d0>
	  at Microsoft.Maui.Controls.Xaml.Extensions:LoadFromXaml <0x00020>
	  at CST.Desktop.App:InitializeComponent <0x00024>
	  at CST.Desktop.App:.ctor <0x00032>
	  at System.Object:InvokeStub_App..ctor <0x00012>
	  at System.Reflection.MethodBaseInvoker:InvokeWithNoArgs <0x000bc>
	  at System.Reflection.RuntimeConstructorInfo:Invoke <0x00114>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver:VisitConstructor <0x00184>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2:VisitCallSiteMain <0x0011c>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver:VisitRootCache <0x001bc>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2:VisitCallSite <0x00140>
	  at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver:Resolve <0x000c4>
	  at Microsoft.Extensions.DependencyInjection.ServiceProvider:CreateServiceAccessor <0x00170>
	  at System.Collections.Concurrent.ConcurrentDictionary`2:GetOrAdd <0x0014e>
	  at Microsoft.Extensions.DependencyInjection.ServiceProvider:GetService <0x0006c>
	  at Microsoft.Extensions.DependencyInjection.ServiceProvider:GetService <0x0004a>
	  at WrappedServiceProvider:GetService <0x000d2>
	  at WrappedServiceProvider:GetService <0x000d2>
	  at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions:GetRequiredService <0x000be>
	  at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions:GetRequiredService <0x00040>
	  at Microsoft.Maui.MauiUIApplicationDelegate:FinishedLaunching <0x00084>
	  at CST.Desktop.AppDelegate:FinishedLaunching <0x001fa>
	  at <Module>:runtime_invoke_direct_bool__this___UIApplication_NSDictionary <0x000ac>
	  at <unknown> <0x00000>
	  at <unknown> <0xffffffff>
	  at UIKit.UIApplication:xamarin_UIApplicationMain <0x000b8>
	  at UIKit.UIApplication:UIApplicationMain <0x0006e>
	  at UIKit.UIApplication:Main <0x00152>
	  at CST.Desktop.Program:Main <0x0002c>
	  at <Module>:runtime_invoke_direct_void_string[] <0x0007e>
	  at <unknown> <0x00000>
=================================================================

Apple Console Log


default	19:39:43.163708+0100	CST.Desktop	[0x600000018000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.daemon
default	19:39:43.163774+0100	CST.Desktop	[0x600000014000] activating connection: mach=true listener=false peer=false name=com.apple.cfprefsd.agent
default	19:39:43.166014+0100	CST.Desktop	[0x147204ad0] activating connection: mach=true listener=false peer=false name=com.apple.lsd.mapdb
default	19:39:43.170603+0100	CST.Desktop	[0x6000000140f0] activating connection: mach=true listener=false peer=false name=com.apple.coreservices.launchservicesd
default	19:39:43.171097+0100	CST.Desktop	[0x6000000100f0] activating connection: mach=true listener=false peer=false name=com.apple.analyticsd
default	19:39:43.171432+0100	CST.Desktop	[0x600000000000] activating connection: mach=true listener=false peer=false name=com.apple.pasteboard.1
default	19:39:43.171827+0100	CST.Desktop	[0x600000004000] activating connection: mach=true listener=false peer=false name=com.apple.distributed_notifications@Uv3
default	19:39:43.179337+0100	CST.Desktop	Received configuration update from daemon (initial)
default	19:39:48.882015+0100	CST.Desktop	void _NSDisableAutomaticTerminationAndLog(NSString *) No windows open yet
default	19:39:48.883215+0100	CST.Desktop	[0x6000000381e0] activating connection: mach=true listener=false peer=false name=com.apple.tccd.system
default	19:39:48.890328+0100	CST.Desktop	[0x6000000381e0] invalidated after the last release of the connection object
default	19:39:48.890613+0100	CST.Desktop	server port 0x00005607, session port 0x00005607
default	19:39:48.918462+0100	CST.Desktop	New connection 0x117713 main
default	19:39:48.943022+0100	CST.Desktop	CHECKIN: pid=64470
default	19:39:48.946491+0100	CST.Desktop	CHECKEDIN: pid=64470 asn=0x0-0x467467 foreground=1
default	19:39:48.946790+0100	CST.Desktop	[0x1472224f0] activating connection: mach=false listener=true peer=false name=(anonymous)
default	19:39:48.946799+0100	CST.Desktop	[0x1472224f0] Channel could not return listener port.
default	19:39:48.947863+0100	CST.Desktop	[0x1470063c0] activating connection: mach=false listener=false peer=true name=com.apple.xpc.anonymous.0x1472224f0.peer[374].0x1470063c0
default	19:39:48.953041+0100	CST.Desktop	FRONTLOGGING: version 1
default	19:39:48.953087+0100	CST.Desktop	Registered, pid=64470 ASN=0x0,0x467467
default	19:39:48.955434+0100	CST.Desktop	[0x1472224f0] Channel could not return listener port.
default	19:39:48.969938+0100	CST.Desktop	BringForward: pid=64470 asn=0x0-0x467467 bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
default	19:39:48.970187+0100	CST.Desktop	BringFrontModifier: pid=64470 asn=0x0-0x467467 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
default	19:39:48.970391+0100	CST.Desktop	BringForward: pid=64470 asn=0x0-0x467467
default	19:39:48.970479+0100	CST.Desktop	SetFrontProcess: asn=0x0-0x467467 options=0
default	19:39:48.978985+0100	CST.Desktop	Current system appearance, (HLTB: 2), (SLS: 1)
default	19:39:48.985157+0100	CST.Desktop	No persisted cache on this platform.
default	19:39:48.986629+0100	CST.Desktop	Current system appearance, (HLTB: 2), (SLS: 1)
default	19:39:48.993417+0100	CST.Desktop	Post-registration system appearance: (HLTB: 2)
default	19:39:49.044229+0100	CST.Desktop	[0x1472224f0] Channel could not return listener port.
default	19:39:49.047614+0100	CST.Desktop	[0x1472224f0] Channel could not return listener port.
default	19:39:49.057115+0100	CST.Desktop	Initializing connection
default	19:39:49.057146+0100	CST.Desktop	Removing all cached process handles
default	19:39:49.057280+0100	CST.Desktop	Creating new assertion because there is no existing background assertion.
default	19:39:49.057322+0100	CST.Desktop	Creating new background assertion
default	19:39:49.057421+0100	CST.Desktop	Created new background assertion <BKSProcessAssertion: 0x600001c00f00>
default	19:39:49.060703+0100	CST.Desktop	Deactivation reason added: 10; deactivation reasons: 0 -> 1024; animating application lifecycle event: 0
default	19:39:49.060758+0100	CST.Desktop	activating monitor for service com.apple.frontboard.open
default	19:39:49.102905+0100	CST.Desktop	Handshake succeeded
default	19:39:49.102925+0100	CST.Desktop	Identity resolved as app<application.com.mycarly.CST.desktop.85872637.85874848(501)>
default	19:39:49.109720+0100	CST.Desktop	[0x1472224f0] Channel could not return listener port.
default	19:39:49.112963+0100	CST.Desktop	NSApp cache appearance:
-NSRequiresAquaSystemAppearance: 0
-appearance: (null)
-effectiveAppearance: <NSCompositeAppearance: 0x600001189b80
 (
    "<NSDarkAquaAppearance: 0x600001189b00>",
    "<NSSystemAppearance: 0x600001145700>"
)>
default	19:39:49.114269+0100	CST.Desktop	Incrementing reference count for background assertion <private>
default	19:39:49.114303+0100	CST.Desktop	Created background task <private>.
default	19:39:49.114376+0100	CST.Desktop	Realizing settings extension _UIApplicationSceneKeyboardSettings on FBSSceneSettings
default	19:39:49.114718+0100	CST.Desktop	Realizing settings extension ___UISceneOcclusionSettings__ on FBSSceneSettings
default	19:39:49.115061+0100	CST.Desktop	Realizing settings extension _UISystemShellSceneHostingEnvironmentSettings on FBSSceneSettings
default	19:39:49.115272+0100	CST.Desktop	Realizing settings extension _UISceneRenderingEnvironmentSettings on FBSSceneSettings
default	19:39:49.115616+0100	CST.Desktop	Realizing settings extension ___UISceneTransitioningHostSettings__ on FBSSceneSettings
default	19:39:49.115828+0100	CST.Desktop	Realizing settings extension ___UISceneHostingContentSizePreferenceClientSettings__ on FBSSceneClientSettings
default	19:39:49.115972+0100	CST.Desktop	Realizing settings extension _UISceneHostingTraitCollectionPropagationSettings on FBSSceneSettings
default	19:39:49.116143+0100	CST.Desktop	Realizing settings extension ___UISceneHostingSheetPresentationSettings__ on FBSSceneSettings
default	19:39:49.116216+0100	CST.Desktop	Realizing settings extension ___UISceneHostingSheetPresentationClientSettings__ on FBSSceneClientSettings
default	19:39:49.116378+0100	CST.Desktop	Realizing settings extension __UIKit__UITypedKeyValueSceneSettings__ on FBSSceneSettings
default	19:39:49.116453+0100	CST.Desktop	Realizing settings extension __UIKit__UITypedKeyValueSceneSettings__ on FBSSceneClientSettings
default	19:39:49.117882+0100	CST.Desktop	activating monitor for service com.apple.frontboard.workspace-service
default	19:39:49.117944+0100	CST.Desktop	FBSWorkspace registering source: <private>
default	19:39:49.118294+0100	CST.Desktop	FBSWorkspace connected to endpoint : <private>
default	19:39:49.118347+0100	CST.Desktop	<FBSWorkspaceScenesClient:0x6000011b4d00 <private>> attempting immediate handshake from activate
default	19:39:49.118377+0100	CST.Desktop	<FBSWorkspaceScenesClient:0x6000011b4d00 <private>> sent handshake
default	19:39:49.118407+0100	CST.Desktop	Added observer for process assertions expiration warning: <_RBSExpirationWarningClient: 0x600003fb7960>
default	19:39:49.176089+0100	CST.Desktop	Registering for test daemon availability notify post.
default	19:39:49.176275+0100	CST.Desktop	notify_get_state check indicated test daemon not ready.
default	19:39:49.176363+0100	CST.Desktop	notify_get_state check indicated test daemon not ready.
default	19:39:49.176440+0100	CST.Desktop	notify_get_state check indicated test daemon not ready.
default	19:39:49.176764+0100	CST.Desktop	Deactivation reason added: 11; deactivation reasons: 1024 -> 3072; animating application lifecycle event: 0
default	19:39:49.176812+0100	CST.Desktop	Realizing settings extension FBSSceneTransitionContextCore on FBSSceneTransitionContext
default	19:39:49.178741+0100	CST.Desktop	You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
default	19:39:49.246514+0100	CST.Desktop	[0x6000000000f0] activating connection: mach=true listener=false peer=false name=com.apple.webprivacyd
default	19:39:49.253726+0100	CST.Desktop	0x14722d0e8 - WebsiteDataStore::WebsiteDataStore sessionID=1
default	19:39:49.254053+0100	CST.Desktop	0x14722cef8 - PageConfiguration::delaysWebProcessLaunchUntilFirstLoad() -> false because of associated processPool value
default	19:39:49.254065+0100	CST.Desktop	0x147229d78 - WebProcessPool::createWebPage: Not delaying WebProcess launch
default	19:39:49.254080+0100	CST.Desktop	0x131018680 - [PID=0] WebProcessProxy::constructor:
default	19:39:49.254189+0100	CST.Desktop	[0x6000000002d0] activating connection: mach=false listener=false peer=false name=com.apple.WebKit.WebContent
default	19:39:49.262558+0100	CST.Desktop	0x13100c3f0 - [PID=0, throttler=0x131018748] ProcessThrottler::Activity::Activity: Starting background activity / 'WebProcess initialization'
default	19:39:49.277101+0100	CST.Desktop	<<<< Alt >>>> fpSupport_GetVideoRangeForCoreDisplayWithPreference: displayID 1 reported potentialHeadRoom=16 wideColorSupported=YES marz=YES almd=NO deviceAllowsHDR=YES isBuiltinPanel=YES externalPanel=YES prefersHDR10=NO
default	19:39:49.278868+0100	CST.Desktop	iomfb_populate_all_display_infos_block_invoke: Spawn separate thread and wait for all FBs to be enumerated
default	19:39:49.278877+0100	CST.Desktop	iomfb_populate_all_display_infos_block_invoke: pthread_dependency_wait_np expect: 3 current: 0
default	19:39:49.278873+0100	CST.Desktop	iomfb_populate_thread: iomfb_populate_matched_displays
default	19:39:49.279319+0100	CST.Desktop	IOMFB: /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox not found
default	19:39:49.279331+0100	CST.Desktop	IOMFB: FigInstallVirtualDisplay not found
default	19:39:49.279426+0100	CST.Desktop	iomfb_populate_matched_displays: Local call to iomfb_match_callback
default	19:39:49.279452+0100	CST.Desktop	iomfb_match_callback: primary
default	19:39:49.279483+0100	CST.Desktop	iomfb_match_callback: external-0
default	19:39:49.279505+0100	CST.Desktop	iomfb_match_callback: external-1
default	19:39:49.279520+0100	CST.Desktop	iomfb_match_callback: Notify main thread as all FB callbacks hit
default	19:39:49.279540+0100	CST.Desktop	iomfb_populate_all_display_infos: All Display Instances enumerated successfully - FB Count = 3
default	19:39:49.282659+0100	CST.Desktop	 IOMobileFramebufferOpen:  success, return 0
error	19:39:49.331943+0100	CST.Desktop	Could not create a sandbox extension for '<private>'
default	19:39:49.332297+0100	CST.Desktop	[0x6000000240f0] activating connection: mach=false listener=false peer=false name=com.apple.accessibility.mediaaccessibilityd
default	19:39:49.333010+0100	CST.Desktop	0x150a2c818 - [pageProxyID=7, webPageID=8, PID=0] WebPageProxy::constructor:
default	19:39:49.333180+0100	CST.Desktop	VideoPresentationManagerProxy::PlaybackSessionManagerProxy(AD402B50)
default	19:39:49.333348+0100	CST.Desktop	VideoPresentationManagerProxy::VideoPresentationManagerProxy(AD402B50)
default	19:39:49.333605+0100	CST.Desktop	0x131018680 - [PID=0] WebProcessProxy::addExistingWebPage: webPage=0x150a2c818, pageProxyID=7, webPageID=8
default	19:39:49.333673+0100	CST.Desktop	[0x6000000143c0] activating connection: mach=false listener=false peer=false name=com.apple.WebKit.GPU
default	19:39:49.334191+0100	CST.Desktop	Conforming to legacy UIKit interaction and text input protocols
default	19:39:49.334939+0100	CST.Desktop	[0x6000000101e0] activating connection: mach=true listener=false peer=false name=com.apple.webinspector
default	19:39:49.473721+0100	CST.Desktop	warning: Process terminated.
default	19:39:49.473766+0100	CST.Desktop	warning: Encountered infinite recursion while looking up resource 'IO_FileName_Name' in System.Private.CoreLib. Verify the installation of .NET is complete and does not need repairing, and that the state of the process has not become corrupted.


@elias-ik
Copy link
Author

I removed every line from my MauiProgram.cs and restart the App.
when I commented this out the app stopped crashing on startup.


        AppDomain.CurrentDomain.FirstChanceException += (s, e) =>
        {
            System.Diagnostics.Debug.WriteLine("********** OMG! FirstChanceException **********");
            System.Diagnostics.Debug.WriteLine(e.Exception);
            System.Diagnostics.Debug.WriteLine(e.Exception.StackTrace);
        };

        AppDomain.CurrentDomain.UnhandledException += (s, e) =>
        {
            System.Diagnostics.Debug.WriteLine("********** OMG! UnhandledException **********");
            System.Diagnostics.Debug.WriteLine(e.ExceptionObject);
        };

I am leaving this issue open, so one of the maintainers can comment. Once you gave your thoughts (or not) feel free to close the issue.

@elias-ik elias-ik closed this as completed Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant