maui icon indicating copy to clipboard operation
maui copied to clipboard

XCode 16/iOS 18 - Stable app now crashes almost immediately.

Open RobTF opened this issue 1 year ago • 6 comments

Description

Our app was reasonably stable - enough for production, however our iOS build machine died and the new one runs MacOS 15 with XCode 16.

We have updated to the latest iOS workload and managed to make one app work stably by using a nightly MAUI build (8.0.99-ci.net8.24477.4) however the other app is very unstable and crashes out in the gut of XAML parsing code.

Any ideas? Are we waiting on the MAUI team to release something more stable for iOS 18/Xcode 16???

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.91 SR9.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.91 SR9.1

Affected platforms

iOS

Affected platform versions

iOS 18, XCode 16

Did you find any workaround?

No

Relevant log output

error MT1046: Additional output: 2024-10-12 17:48:06.721 MyApp[1080:118663] Unhandled managed exception: Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
error MT1046: Additional output:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
error MT1046: Additional output:    at System.RuntimeType.CreateInstanceMono(Boolean nonPublic, Boolean wrapExceptions)
error MT1046: Additional output:    at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
error MT1046: Additional output:    at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
error MT1046: Additional output:    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
error MT1046: Additional output:    at System.Activator.CreateInstance(Type type)
error MT1046: Additional output:    at Microsoft.Maui.Controls.ElementTemplate.<>c__DisplayClass5_0.<.ctor>b__0()
error MT1046: Additional output:    at Microsoft.Maui.Controls.ElementTemplate.CreateContent()
error MT1046: Additional output:    at Microsoft.Maui.Controls.Handlers.Items.TemplatedCell.Bind(DataTemplate template, Object bindingContext, ItemsView itemsView)
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: 	0x103994374 - /private/var/containers/Bundle/Application/C368ABBA-D417-45D3-9FD6-9512CDC8E349/MyApp.app/MyApp : AppleCryptoNative_X509ImportCollection
error MT1046: Additional output: 	0x10397bd9c - /private/var/containers/Bundle/Application/C368ABBA-D417-45D3-9FD6-9512CDC8E349/MyApp.app/MyApp : AppleCryptoNative_X509ImportCollection
error MT1046: Additional output:    at Microsoft.Maui.Controls.Handlers.Items.ItemsViewController`1[[Microsoft.Maui.Controls.CarouselView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].UpdateTemplatedCell(TemplatedCell cell, NSIndexPath indexPath)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Handlers.Items.CarouselViewController.GetCell(UICollectionView collectionView, NSIndexPath indexPath)
error MT1046: Additional output: --- End of stack trace from previous location ---
error MT1046: Additional output:    at ObjCRuntime.Runtime.ThrowException(IntPtr gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 2719
error MT1046: Additional output:    at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 64
error MT1046: Additional output:    at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 96
error MT1046: Additional output:    at MyApp.Program.Main(String[] args) in /Users/rob/source/MyApp/myapp/MyApp/Platforms/iOS/Program.cs:line 22
error MT1046: Additional output: Exception has been thrown by the target of an invocation. (System.Reflection.TargetInvocationException)
error MT1046: Additional output:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
error MT1046: Additional output:    at System.RuntimeType.CreateInstanceMono(Boolean nonPublic, Boolean wrapExceptions)
error MT1046: Additional output:    at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)
error MT1046: Additional output:    at System.Activator.CreateInstance(Type type, Boolean nonPublic, Boolean wrapExceptions)
error MT1046: Additional output:    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
error MT1046: Additional output:    at System.Activator.CreateInstance(Type type)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.CreateValuesVisitor.Visit(ElementNode node, INode parentNode)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.ElementNode.Accept(IXamlNodeVisitor visitor, INode parentNode)

error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.ElementNode.Accept(IXamlNodeVisitor visitor, INode parentNode)

error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.ElementNode.Accept(IXamlNodeVisitor visitor, INode parentNode)

error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.ElementNode.Accept(IXamlNodeVisitor visitor, INode parentNode)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.RootNode.Accept(IXamlNodeVisitor visitor, INode parentNode)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.XamlLoader.Visit(RootNode rootnode, HydrationContext visitorContext, Boolean useDesignProperties)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.XamlLoader.Load(Object view, String xaml, Assembly rootAssembly, Boolean useDesignProperties)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.XamlLoader.Load(Object view, String xaml, Boolean useDesignProperties)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.XamlLoader.Load(Object view, Type callingType)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.Extensions.LoadFromXaml[LocationStepView](LocationStepView view, Type callingType)
error MT1046: Additional output:    at MyApp.Views.Onboarding.Steps.LocationStepView.InitializeComponent() in /Users/rob/source/MyApp/myapp/MyApp/obj/Debug/net8.0-ios/ios-arm64/Microsoft.Maui.Controls.SourceGen/Microsoft.Maui.Controls.SourceGen.CodeBehindGenerator/Views_Onboarding_Steps_LocationStepView.xaml.sg.cs:line 22
error MT1046: Additional output:    at MyApp.Views.Onboarding.Steps.LocationStepView..ctor() in /Users/rob/source/MyApp/myapp/MyApp/Views/Onboarding/Steps/LocationStepView.xaml.cs:line 17
error MT1046: Additional output:    at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Constructor(Object obj, IntPtr* args)
error MT1046: Additional output:    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
error MT1046: Additional output: Object reference not set to an instance of an object. (System.NullReferenceException)
error MT1046: Additional output:    at Microsoft.Maui.Controls.Xaml.ApplyPropertiesVisitor.SetPropertyValue(Object xamlelement, XmlName propertyName, Object value, Object rootElement, INode node, HydrationContext context, IXmlLineInfo lineInfo)

RobTF avatar Oct 12 '24 17:10 RobTF