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

iOS crashes in release configuration #21737

Closed
jsabiometric opened this issue Dec 2, 2024 · 14 comments
Closed

iOS crashes in release configuration #21737

jsabiometric opened this issue Dec 2, 2024 · 14 comments
Labels
need-info Waiting for more information before the bug can be investigated

Comments

@jsabiometric
Copy link

jsabiometric commented Dec 2, 2024

Apple platform

iOS

Framework version

net9.0-*

Affected platform version

.NET 9.0.100

Description

We're attempting to run our existing .NET maui project (originally created with .NET 7, later upgraded to .NET 8.0) after upgrading our machine to .NET 9.0, but we're experiencing crash on launch. Debug mode works without any issues.
When upgrading the project itself to net9.0-ios, we're still experiencing the crash when running in Release. We've ensured all of our dependancies are running on the latest version.

On a machine with .NET 8.0, the project runs fine on both Debug and Release with project version net8.0-ios.
Other observations:

  • When publishing (archiving and exporting as IPA), the issue persists (not surprising).

Device: iPhone 15 Pro

Works on machine with:

.NET 8.0.201

Installed Workload Id      Manifest Version      Installation Source
--------------------------------------------------------------------
maui                       8.0.7/8.0.100         SDK 8.0.200    

Where project net version is

  • net8.0-ios

Does not work on machine with:

  • .NET 9.0.100
Installed Workload Id      Manifest Version       Installation Source
---------------------------------------------------------------------
maui                       9.0.0/9.0.100          SDK 9.0.100        

Where project net version is

  • net8.0-ios
  • net9.0-ios

Steps to Reproduce

We're currently reproducing it simply by

  1. dotnet clean
  2. dotnet build -t:Build -p:Configuration=Release -f net9.0-ios -r ios-arm64 -p:CustomAfterMicrosoftCSharpTargets="/Users/{name}/.vscode/extensions/ms-dotnettools.dotnet-maui-1.6.4-darwin-arm64/dist/resources/Custom.After.Microsoft.CSharp.targets" -p:MauiVSCodeBuildOutputFile="/var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/dotnet-maui/maui-vsc-8e92a6e2-b4ec-4c9c-a9e1-3114090df4ef.json" -p:XamlTools="/Users/jsa/.vscode/extensions/ms-dotnettools.csharp-2.58.20-darwin-arm64/.xamlTools" /Users/jsa/Documents/Repositories/{repo_name}/{proj_name}/project.csproj

We haven't managed to reproduce it outside of our project, we've tried the following:

  1. Create a new project with .NET 9.0 and run it in release mode -> works fine
  2. Create a new project with .NET 8.0 and run it with .NET 9.0 installed in release mode -> works fine

Did you find any workaround?

No, unfortunately not.

Relevant logs

Here are the crash logs:

-----------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
xcrun devicectl -j /var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/tmpkmDzMB.tmp device process launch --terminate-existing --device 00008130-000A74462E41001C --console {bundle_id}

=================================================================

	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.

2
=================================================================

	Native stacktrace:

=================================================================

	0x10871328c - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x1086fda68 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x10881b120 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x108712ba0 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x20fa58afc - /usr/lib/system/libsystem_platform.dylib : <redacted>

	0x20fc22ef8 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
	0x18f4a7ad8 - /usr/lib/system/libsystem_c.dylib : abort

	0x1085d6eb0 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x1085ccb58 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x1085ccca0 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x1086eaa18 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x10862c704 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x10862c220 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure
    
    0x10862dec4 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x10854fb24 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : xamarin_get_original_working_directory_path

	0x10862e0ec - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x10862e2d4 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x108629a2c - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x1086e0ee8 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x1086e8574 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

	0x10854f038 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : xamarin_localized_string_format_9

	0x10854ff34 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : xamarin_get_original_working_directory_path

	0x10875a720 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

0x1ad0d6ec8 - /usr/lib/dyld : <redacted>

=================================================================

	Basic Fault Address Reporting

=================================================================

Memory around native instruction pointer (0x1d7ab51d4):0x1d7ab51c4  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......

0x1d7ab51d4  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......

0x1d7ab51e4  31 ec ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  1........{...._.

0x1d7ab51f4  c0 03 5f d6 10 27 80 d2 01 10 00 d4 03 01 00 54  .._..'.........T

14:37:20  Acquired tunnel connection to device.

14:37:20  Enabling developer disk image services.

14:37:20  Acquired usage assertion.

Launched application with {bundle_id} bundle identifier.

Waiting for the application to terminate...

App terminated due to signal 6.

error HE1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/tmpkmDzMB.tmp device process launch --terminate-existing --device 00008130-000A74462E41001C --console {bundle_id}' returned the exit code 1.

error HE1046: Additional output: xcrun devicectl -j /var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/tmpkmDzMB.tmp device process launch --terminate-existing --device 00008130-000A74462E41001C --console {bundle_id}

error HE1046: Additional output: 

error HE1046: Additional output: =================================================================

error HE1046: Additional output: 	Native Crash Reporting

error HE1046: Additional output: =================================================================

error HE1046: Additional output: Got a SIGABRT while executing native code. This usually indicates

error HE1046: Additional output: a fatal error in the mono runtime or one of the native libraries 

error HE1046: Additional output: used by your application.

error HE1046: Additional output: =================================================================

error HE1046: Additional output: 

error HE1046: Additional output: =================================================================

error HE1046: Additional output: 	Native stacktrace:

error HE1046: Additional output: =================================================================

error HE1046: Additional output: 	0x10871328c - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1086fda68 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10881b120 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure
    
error HE1046: Additional output: 	0x108712ba0 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x20fa58afc - /usr/lib/system/libsystem_platform.dylib : <redacted>

error HE1046: Additional output: 	0x20fc22ef8 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill

error HE1046: Additional output: 	0x18f4a7ad8 - /usr/lib/system/libsystem_c.dylib : abort

error HE1046: Additional output: 	0x1085d6eb0 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1085ccb58 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1085ccca0 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1086eaa18 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10862c704 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10862c220 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10862dec4 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10854fb24 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : xamarin_get_original_working_directory_path

error HE1046: Additional output: 	0x10862e0ec - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10862e2d4 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x108629a2c - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1086e0ee8 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1086e8574 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x10854f038 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : xamarin_localized_string_format_9

error HE1046: Additional output: 	0x10854ff34 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : xamarin_get_original_working_directory_path

error HE1046: Additional output: 	0x10875a720 - /private/var/containers/Bundle/Application/6107CB24-D508-4FC7-A0BA-CF63959DA5B1/Project.app/Project : AppleCryptoNative_IsAuthenticationFailure

error HE1046: Additional output: 	0x1ad0d6ec8 - /usr/lib/dyld : <redacted>

error HE1046: Additional output: 

error HE1046: Additional output: =================================================================

error HE1046: Additional output: 	Basic Fault Address Reporting

error HE1046: Additional output: =================================================================

error HE1046: Additional output: Memory around native instruction pointer (0x1d7ab51d4):0x1d7ab51c4  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......

error HE1046: Additional output: 0x1d7ab51d4  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......

error HE1046: Additional output: 0x1d7ab51e4  31 ec ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  1........{...._.

error HE1046: Additional output: 0x1d7ab51f4  c0 03 5f d6 10 27 80 d2 01 10 00 d4 03 01 00 54  .._..'.........T

error HE1046: Additional output: 14:37:20  Acquired tunnel connection to device.

error HE1046: Additional output: 14:37:20  Enabling developer disk image services.

error HE1046: Additional output: 14:37:20  Acquired usage assertion.

error HE1046: Additional output: Launched application with {bundle_id} bundle identifier.

error HE1046: Additional output: Waiting for the application to terminate...

error HE1046: Additional output: App terminated due to signal 6.
@rolfbjarne
Copy link
Member

The first step would be to get a better stack trace from the crash report; this can be accomplished by adding the following to your build command:

/p:NoSymbolStrip=true

alternatively you can add it to the csproj like this:

<PropertyGroup>
    <NoSymbolStrip>true</NoSymbolStrip>
</PropertyGroup>

Can you do that, get the resulting crash log and post it here? The stack trace should contain better frame names now.

@rolfbjarne rolfbjarne added the need-info Waiting for more information before the bug can be investigated label Dec 3, 2024
@rolfbjarne rolfbjarne added this to the Future milestone Dec 3, 2024
@jsabiometric
Copy link
Author

Hi! @rolfbjarne

I've added the property group to csproj, please see the logs now:

------------------------------------------------------------------------------
You may only use the Microsoft Visual Studio .NET/C/C++ Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software to help you
develop and test your applications.
------------------------------------------------------------------------------
2024-12-03 20:07:03.571 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.SpriteKitQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor
2024-12-03 20:07:03.571 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.SpriteKit.GKStateMachineQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor
2024-12-03 20:07:03.578 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.IDEPlaygroundsKit.PlaygroundBottomBarExecutionAdaptor for extension Xcode.IDEPlaygroundEditor.IDEPlaygroundBottomBarExecutionAdaptor of plug-in com.apple.dt.IDEPlaygroundEditorPlugin
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEWatchSupportUI:IDEWatchSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOSSimulator.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOS.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.WatchOS.Bundle of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.WatchOS.BundleInfo of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping for extension Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping.driverkit of plug-in com.apple.dt.IDEDriverKitSupportCore
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEDriverKitSupportUI:IDEDriverKitSupportUI.plugindata/plug-in[1]/extension[2] of plug-in com.apple.dt.IDEDriverKitSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEOSXSupportUI:IDEOSXSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEOSXSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEVisionSupportUI:IDEVisionSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Framework of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Bundle of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:03.579 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Application of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEAppleTVSupportUI:IDEAppleTVSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DeviceIconProvider for extension Xcode.DebuggerFoundation.DeviceIconProvider.AppleTV of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.appletvos.BundleTargetInfo of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATVSimulator.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.appletvos.Bundle of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:03.580 mlaunch[79937:94095191] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATV.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.847 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.SpriteKit.GKStateMachineQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor
2024-12-03 20:07:09.847 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.IDEDebugger.VariablesViewQuickLookProvider for extension Xcode.IDEDebugger.SpriteKitQuickLookProvider of plug-in com.apple.IDESpriteKitParticleEditor
2024-12-03 20:07:09.851 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.IDEPlaygroundsKit.PlaygroundBottomBarExecutionAdaptor for extension Xcode.IDEPlaygroundEditor.IDEPlaygroundBottomBarExecutionAdaptor of plug-in com.apple.dt.IDEPlaygroundEditorPlugin
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.WatchOS.BundleInfo of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEWatchSupportUI:IDEWatchSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOSSimulator.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.watchOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.watchOS.ViewDescriber of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.WatchOS.Bundle of plug-in com.apple.dt.IDEWatchSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping for extension Xcode.IDEiOSSupportCore.iOSDeviceLocatorMapping.driverkit of plug-in com.apple.dt.IDEDriverKitSupportCore
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEDriverKitSupportUI:IDEDriverKitSupportUI.plugindata/plug-in[1]/extension[2] of plug-in com.apple.dt.IDEDriverKitSupportUI
2024-12-03 20:07:09.852 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEOSXSupportUI:IDEOSXSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEOSXSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Bundle of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Framework of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.Reality.Application of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEVisionSupportUI:IDEVisionSupportUI.plugindata/plug-in[1]/extension[5] of plug-in com.apple.dt.IDEVisionSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DeviceIconProvider for extension Xcode.DebuggerFoundation.DeviceIconProvider.AppleTV of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOS.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorSlice for extension Xcode.Xcode3ProjectSupport.InfoEditorSlice.appletvos.BundleTargetInfo of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATVSimulator.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.DataSourceConnection for extension Xcode.DebuggerFoundation.tvOSSimulator.DataSourceConnectionTargetHub of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3ProjectSupport.InfoEditorType for extension Xcode.Xcode3ProjectSupport.InfoEditorType.appletvos.Bundle of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.DebuggerFoundation.ViewDescriber for extension Xcode.DebuggerFoundation.ATV.ViewDescriber of plug-in com.apple.dt.IDEAppleTVSupportUI
2024-12-03 20:07:09.853 mlaunch[79960:94095477] Requested but did not find extension point with identifier Xcode.Xcode3UI.Xcode3SupportedDestinations for extension IDEAppleTVSupportUI:IDEAppleTVSupportUI.plugindata/plug-in[1]/extension[11] of plug-in com.apple.dt.IDEAppleTVSupportUI
xcrun devicectl -j /var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/tmpFXkYwO.tmp device process launch --terminate-existing --device 00008130-001A051211D8001C --console {bundle.id}
=================================================================
	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:
=================================================================
	0x1078f4bc4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_dump_native_crash_info
	0x1078dfcb0 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_handle_native_crash
	0x107a12be8 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : sigabrt_signal_handler.cold.1
	0x1078f43b4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_runtime_setup_stat_profiler
	0x209647888 - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x2096f1680 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
	0x1a7d05b90 - /usr/lib/system/libsystem_c.dylib : abort
	0x1077bc288 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_log_write_os_log
	0x1077b1e1c - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : monoeg_g_logv
	0x1077b1f64 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : monoeg_g_log
	0x1078ccf98 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : load_aot_module
	0x107811f54 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_request_load_from
	0x107811a74 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_request_open
	0x1078136fc - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_open
	0x10762e4d4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : xamarin_assembly_preload_hook
	0x107813924 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : invoke_assembly_preload_hook
	0x107813b0c - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_load_corlib
	0x10780f2b0 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_init
	0x1078c3700 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mini_init
	0x1078cac5c - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_jit_init_version
	0x10762d9e8 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : xamarin_bridge_initialize
	0x10762e8e4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : xamarin_main
	0x1079339bc - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : main
	0x1c2716dcc - /usr/lib/dyld : <redacted>
=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1e71a501c):0x1e71a500c  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......
0x1e71a501c  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......
0x1e71a502c  e8 dd ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  .........{...._.
0x1e71a503c  c0 03 5f d6 7f 23 03 d5 ff c3 00 d1 f4 4f 01 a9  .._..#.......O..
20:07:09  Acquired tunnel connection to device.
20:07:09  Enabling developer disk image services.
20:07:09  Acquired usage assertion.
Launched application with {bundle.id} bundle identifier.
Waiting for the application to terminate...
App terminated due to signal 6.
error MT1045: Failed to execute 'devicectl': 'devicectl -j /var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/tmpFXkYwO.tmp device process launch --terminate-existing --device 00008130-001A051211D8001C --console {bundle.id}' returned the exit code 1.
error MT1046: Additional output: xcrun devicectl -j /var/folders/xr/cf5cx25n3kb0mjhmwqv8w6bxq1jrnl/T/tmpFXkYwO.tmp device process launch --terminate-existing --device 00008130-001A051211D8001C --console {bundle.id}
error MT1046: Additional output:
error MT1046: Additional output: =================================================================
error MT1046: Additional output: 	Native Crash Reporting
error MT1046: Additional output: =================================================================
error MT1046: Additional output: Got a SIGABRT while executing native code. This usually indicates
error MT1046: Additional output: a fatal error in the mono runtime or one of the native libraries
error MT1046: Additional output: used by your application.
error MT1046: Additional output: =================================================================
error MT1046: Additional output:
error MT1046: Additional output: =================================================================
error MT1046: Additional output: 	Native stacktrace:
error MT1046: Additional output: =================================================================
error MT1046: Additional output: 	0x1078f4bc4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_dump_native_crash_info
error MT1046: Additional output: 	0x1078dfcb0 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_handle_native_crash
error MT1046: Additional output: 	0x107a12be8 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : sigabrt_signal_handler.cold.1
error MT1046: Additional output: 	0x1078f43b4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_runtime_setup_stat_profiler
error MT1046: Additional output: 	0x209647888 - /usr/lib/system/libsystem_platform.dylib : <redacted>
error MT1046: Additional output: 	0x2096f1680 - /usr/lib/system/libsystem_pthread.dylib : pthread_kill
error MT1046: Additional output: 	0x1a7d05b90 - /usr/lib/system/libsystem_c.dylib : abort
error MT1046: Additional output: 	0x1077bc288 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_log_write_os_log
error MT1046: Additional output: 	0x1077b1e1c - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : monoeg_g_logv
error MT1046: Additional output: 	0x1077b1f64 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : monoeg_g_log
error MT1046: Additional output: 	0x1078ccf98 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : load_aot_module
error MT1046: Additional output: 	0x107811f54 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_request_load_from
error MT1046: Additional output: 	0x107811a74 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_request_open
error MT1046: Additional output: 	0x1078136fc - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_open
error MT1046: Additional output: 	0x10762e4d4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : xamarin_assembly_preload_hook
error MT1046: Additional output: 	0x107813924 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : invoke_assembly_preload_hook
error MT1046: Additional output: 	0x107813b0c - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_assembly_load_corlib
error MT1046: Additional output: 	0x10780f2b0 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_init
error MT1046: Additional output: 	0x1078c3700 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mini_init
error MT1046: Additional output: 	0x1078cac5c - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : mono_jit_init_version
error MT1046: Additional output: 	0x10762d9e8 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : xamarin_bridge_initialize
error MT1046: Additional output: 	0x10762e8e4 - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : xamarin_main
error MT1046: Additional output: 	0x1079339bc - /private/var/containers/Bundle/Application/4767BACE-24AC-4C4C-9C64-921904091EB9/Project.app/Project : main
error MT1046: Additional output: 	0x1c2716dcc - /usr/lib/dyld : <redacted>
error MT1046: Additional output:
error MT1046: Additional output: =================================================================
error MT1046: Additional output: 	Basic Fault Address Reporting
error MT1046: Additional output: =================================================================
error MT1046: Additional output: Memory around native instruction pointer (0x1e71a501c):0x1e71a500c  ff 0f 5f d6 c0 03 5f d6 10 29 80 d2 01 10 00 d4  .._..._..)......
error MT1046: Additional output: 0x1e71a501c  03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91  ...T.#...{......
error MT1046: Additional output: 0x1e71a502c  e8 dd ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6  .........{...._.
error MT1046: Additional output: 0x1e71a503c  c0 03 5f d6 7f 23 03 d5 ff c3 00 d1 f4 4f 01 a9  .._..#.......O..
error MT1046: Additional output: 20:07:09  Acquired tunnel connection to device.
error MT1046: Additional output: 20:07:09  Enabling developer disk image services.
error MT1046: Additional output: 20:07:09  Acquired usage assertion.
error MT1046: Additional output: Launched application with {bundle.id} bundle identifier.
error MT1046: Additional output: Waiting for the application to terminate...
error MT1046: Additional output: App terminated due to signal 6.

@microsoft-github-policy-service microsoft-github-policy-service bot added need-attention An issue requires our attention/response and removed need-info Waiting for more information before the bug can be investigated labels Dec 3, 2024
@rolfbjarne
Copy link
Member

Yes, that's a better stack trace, something clearly goes wrong pretty early on.

Does the crash still occur if you build the app like this?

dotnet build -t:Build -p:Configuration=Release -f net9.0-ios -r ios-arm64  /Users/jsa/Documents/Repositories/{repo_name}/{proj_name}/project.csproj

that is, without setting CustomAfterMicrosoftCSharpTargets, MauiVSCodeBuildOutputFile or XamlTools.

@rolfbjarne rolfbjarne added need-info Waiting for more information before the bug can be investigated no-auto-reply For internal use and removed need-attention An issue requires our attention/response labels Dec 4, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the no-auto-reply For internal use label Dec 4, 2024
@jsabiometric
Copy link
Author

Hey @rolfbjarne
dotnet build -t:Run /p:_DeviceName=<UDID> -p:Configuration=Release -f net9.0-ios -r ios-arm64 /Users/jsa/Documents/Repositories/{repo}/{Proj}/Proj.csproj
works on our machine!

The issue could be with the added flags CustomAfterMicrosoftCSharpTargets, MauiVSCodeBuildOutputFile or XamlTools. The .NET MAUI extension we're currently using is v1.6.14 (pre-release). Perhaps it has not adapted to .NET 9.0 yet, or the flags themselves trigger a bug in .NET 9.0.

An interesting note, is that when a newly created project in .NET 9.0 MAUI is run with the command generated by VS code (with the flags), it works fine in Release.

Let me know if there are more details you need from us, to further debug this!
Kind regards

@microsoft-github-policy-service microsoft-github-policy-service bot added need-attention An issue requires our attention/response and removed need-info Waiting for more information before the bug can be investigated labels Dec 4, 2024
@tj-devel709
Copy link
Contributor

Possibly related?
dotnet/maui#26206

@rolfbjarne
Copy link
Member

@tj-devel709

Possibly related? dotnet/maui#26206

No, that's probably unrelated. You'll need to get some logs for that crash to try to figure out the underlying cause.

@rolfbjarne
Copy link
Member

Hey @rolfbjarne dotnet build -t:Run /p:_DeviceName=<UDID> -p:Configuration=Release -f net9.0-ios -r ios-arm64 /Users/jsa/Documents/Repositories/{repo}/{Proj}/Proj.csproj works on our machine!

The issue could be with the added flags CustomAfterMicrosoftCSharpTargets, MauiVSCodeBuildOutputFile or XamlTools. The .NET MAUI extension we're currently using is v1.6.14 (pre-release). Perhaps it has not adapted to .NET 9.0 yet, or the flags themselves trigger a bug in .NET 9.0.

An interesting note, is that when a newly created project in .NET 9.0 MAUI is run with the command generated by VS code (with the flags), it works fine in Release.

Let me know if there are more details you need from us, to further debug this! Kind regards

The fact that you can't reproduce with a new project, but you can with your main project, means I'll need a way to reproduce this in order to figure out what's going on.

Would it be possible for you to share your project with us?

@rolfbjarne rolfbjarne added need-info Waiting for more information before the bug can be investigated no-auto-reply For internal use and removed need-attention An issue requires our attention/response labels Dec 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the no-auto-reply For internal use label Dec 5, 2024
@jsabiometric
Copy link
Author

@rolfbjarne
Unfortunately we can't share our current project. We'll attempt to create a project that reproduces the issue and share it with you.
Best regards.

@microsoft-github-policy-service microsoft-github-policy-service bot added need-attention An issue requires our attention/response and removed need-info Waiting for more information before the bug can be investigated labels Dec 6, 2024
@rolfbjarne rolfbjarne added need-info Waiting for more information before the bug can be investigated no-auto-reply For internal use and removed need-attention An issue requires our attention/response labels Dec 6, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the no-auto-reply For internal use label Dec 6, 2024
@jsabiometric
Copy link
Author

Hi @rolfbjarne
We've managed to reproduce it!

Running the following command:

dotnet clean -c Release
dotnet clean -c Debug
dotnet publish App -f net9.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="<distribution certificate>" -p:CodesignProvision="<we_use_adhoc_distribution>" -p:ProvisioningType="manual" -p:BuildIpa=true -p:IpaPackageName="testapp-$(date +%Y-%m-%d-%H-%M-%S).ipa" -o ~/Documents/deployments;

In the following project:
https://biometricdk-my.sharepoint.com/:u:/g/personal/jsa_biometric_dk/Ee_kKPezvEhKmkmSoeGwO6wBtMZcyWXglmFgaZno9ZQ_XA?e=QEAjEn

@microsoft-github-policy-service microsoft-github-policy-service bot removed the need-info Waiting for more information before the bug can be investigated label Dec 9, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the need-attention An issue requires our attention/response label Dec 9, 2024
@rolfbjarne
Copy link
Member

Do you get the same stack trace with that test project?

I get this, which is unrelated to what you reported originally:

	Attempting to JIT compile method '(wrapper dynamic-method) object object:InvokeStub_Grid.DefinitionsChanged (object,System.Span`1<object>)' while running in aot-only mode. See https://learn.microsoft.com/xamarin/ios/internals/limitations for more information.
	 (System.ExecutionEngineException)
	   at System.Delegate.CreateDelegate(Type , Object , MethodInfo , Boolean , Boolean )
	   at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type , Object )
	   at System.Reflection.InvokerEmitUtil.CreateInvokeDelegate_ObjSpanArgs(MethodBase , Boolean )
	   at System.Reflection.MethodInvokerCommon.DetermineStrategy_ObjSpanArgs(InvokerStrategy& , InvokeFunc_ObjSpanArgs& , MethodBase , Boolean , Boolean )
	   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object , BindingFlags , Binder , Object[] , CultureInfo )
	   at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
	   at System.Reflection.MethodBase.Invoke(Object , Object[] )
	   at Microsoft.Maui.WeakEventManager.HandleEvent(Object , Object , String )
	   at Microsoft.Maui.Controls.DefinitionCollection`1[[Microsoft.Maui.Controls.RowDefinition, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].OnItemSizeChanged(Object sender, EventArgs e)
	   at Microsoft.Maui.Controls.DefinitionCollection`1[[Microsoft.Maui.Controls.RowDefinition, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].Add(RowDefinition )
	   at App.MainPage.InitializeComponent()
	   at App.MainPage..ctor()
	   at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, IntPtr* args)
	   at System.Reflection.ConstructorInvoker.InvokeDirectByRefWithFewArgs(Span`1 )
	   at System.Reflection.ConstructorInvoker.InvokeImpl(Object , Object , Object , Object )
	   at System.Reflection.ConstructorInvoker.Invoke(Span`1 )
	   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.ConstructorMatcher.CreateInstance(IServiceProvider )
	   at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.CreateInstance(IServiceProvider , Type , Object[] )
	   at Microsoft.Maui.Controls.ShellContent.<>c__DisplayClass20_0.<Microsoft.Maui.Controls.IShellContentController.GetOrCreateContent>b__0()
	   at Microsoft.Maui.Controls.ElementTemplate.CreateContent()
	   at Microsoft.Maui.Controls.Internals.DataTemplateExtensions.CreateContent(DataTemplate , Object , BindableObject )
	   at Microsoft.Maui.Controls.ShellContent.Microsoft.Maui.Controls.IShellContentController.GetOrCreateContent()
	   at Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.LoadRenderers()
	   at Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.ViewDidLoad()
	   at Microsoft.Maui.Controls.Platform.Compatibility.ShellSectionRootRenderer.__Registrar_Callbacks__.callback_484_Microsoft_Maui_Controls_Platform_Compatibility_ShellSectionRootRenderer_ViewDidLoad(IntPtr pobj, IntPtr sel, IntPtr* exception_gchandle)

@rolfbjarne rolfbjarne added need-info Waiting for more information before the bug can be investigated and removed need-attention An issue requires our attention/response labels Dec 9, 2024
Copy link
Contributor

Hi @jsabiometric. We have added the "need-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

Copy link
Contributor

Hi @jsabiometric. Due to inactivity, we will be closing this issue. Please feel free to re-open this issue if the issue persists. For enhanced visibility, if over 7 days have passed, please open a new issue and link this issue there. Thank you.

@Yannikk1996
Copy link

Any news on this issue? I get some similiar issue in my project after upgrading to .NET 9 on iOS only:
"Attempting to JIT compile method 'void CustomTabBarView:InitializeComponent ()' while running in aot-only mode."

@rolfbjarne
Copy link
Member

Any news on this issue? I get some similiar issue in my project after upgrading to .NET 9 on iOS only: "Attempting to JIT compile method 'void CustomTabBarView:InitializeComponent ()' while running in aot-only mode."

If you're running into an exception with "Attempting to JIT compile method ...", please file a new issue with a test project, each case is likely to be different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-info Waiting for more information before the bug can be investigated
Projects
None yet
Development

No branches or pull requests

4 participants