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

.NET 8.0 iOS app crashes on lauch since updating to iOS 18.3 beta #23753

Closed
Nijnhoofd opened this issue Jul 22, 2024 · 11 comments
Closed

.NET 8.0 iOS app crashes on lauch since updating to iOS 18.3 beta #23753

Nijnhoofd opened this issue Jul 22, 2024 · 11 comments
Labels
partner/macios Issues for the Mac / iOS SDK platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working

Comments

@Nijnhoofd
Copy link

Description

My .NET 8.0 iOS app is crashing since updating to iOS 18.3 beta. The app shows the splash screen and crashes afterwards. In the stack trace I don't see any information that can guide me in the right direction.

Do others have the same issue? Or have a lead how I can fix this?

Installed Workload Id Manifest Version Installation Source

maui-ios 8.0.40/8.0.100 SDK 8.0.300
maui-android 8.0.40/8.0.100 SDK 8.0.300

The crash didn't occur on previous iOS 18 beta versions (18.1 and 18.2)

Steps to Reproduce

  1. Click on the app icon
  2. Splash screen is shown
  3. App crashes

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 18.3 beta

Did you find any workaround?

Not yet.

Relevant log output

The app 'xxx.xxx.xxx' launched with pid 1144
2024-07-19 14:48:20.777 XXX.iOS[1144:56237] [Verbose] Setup: Primary start
2024-07-19 14:48:20.788 XXX.iOS[1144:56237] [Verbose] Setup: FirstChance start
2024-07-19 14:48:20.803 XXX.iOS[1144:56237] [Verbose] Setup: MvvmCross settings start
2024-07-19 14:48:20.804 XXX.iOS[1144:56237] [Verbose] Setup: Singleton Cache start
2024-07-19 14:48:20.804 XXX.iOS[1144:56237] [Verbose] Setup: ViewDispatcher start
2024-07-19 14:48:20.804 XXX.iOS[1144:56237] [Verbose] Setup: Bootstrap actions
2024-07-19 14:48:20.813 XXX.iOS[1144:56237] [Verbose] Setup: StringToTypeParser start
2024-07-19 14:48:20.814 XXX.iOS[1144:56237] [Verbose] Setup: FillableStringToTypeParser start
2024-07-19 14:48:20.814 XXX.iOS[1144:56237] [Verbose] Setup: Create App
2024-07-19 14:48:20.814 XXX.iOS[1144:56237] [Verbose] Setup: NavigationService
2024-07-19 14:48:20.815 XXX.iOS[1144:56237] [Verbose] Setup: Load navigation routes
2024-07-19 14:48:20.816 XXX.iOS[1144:56237] [Verbose] Setup: App start
2024-07-19 14:48:20.816 XXX.iOS[1144:56237] [Verbose] Setup: Application Initialize - On background thread
2024-07-19 14:48:20.955 XXX.iOS[1144:56237] [Verbose] Setup: ViewModelTypeFinder start
2024-07-19 14:48:20.961 XXX.iOS[1144:56237] [Verbose] Setup: ViewsContainer start
2024-07-19 14:48:20.961 XXX.iOS[1144:56237] [Verbose] Setup: Lookup Dictionary start
2024-07-19 14:48:21.034 XXX.iOS[1144:56237] [Verbose] Setup: Views start
2024-07-19 14:48:21.034 XXX.iOS[1144:56237] [Verbose] Setup: CommandCollectionBuilder start
2024-07-19 14:48:21.035 XXX.iOS[1144:56237] [Verbose] Setup: NavigationSerializer start
2024-07-19 14:48:21.035 XXX.iOS[1144:56237] [Verbose] Setup: InpcInterception start
2024-07-19 14:48:21.035 XXX.iOS[1144:56237] [Verbose] Setup: InpcInterception start
2024-07-19 14:48:21.035 XXX.iOS[1144:56237] [Verbose] Setup: LastChance start
2024-07-19 14:48:21.050 XXX.iOS[1144:56237] [Verbose] Setup: PluginManagerFramework start
2024-07-19 14:48:21.110 XXX.iOS[1144:56237] [Verbose] Setup: Secondary end
2024-07-19 14:48:21.110 XXX.iOS[1144:56237] [Verbose] AppStart: Application Startup - On UI thread
2024-07-19 14:48:21.212 XXX.iOS[1144:56237] [Verbose] Navigate requested to XXX.XXX.ViewModel
2024-07-19 14:48:21.218 XXX.iOS[1144:56237] [Verbose] PresentationAttribute nor MasterNavigationController found for XXXViewController. Assuming Root presentation
2024-07-19 14:48:21.447 XXX.iOS[1144:56237] Unhandled managed exception: Objective-C exception thrown.  Name: NSInvalidArgumentException Reason: -[Container initWithCoder:]: unrecognized selector sent to instance 0x303430000
Native stack trace:
	0   CoreFoundation                      0x000000019f0ba098 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 540824
	1   libobjc.A.dylib                     0x000000019c3c2698 objc_exception_throw + 76
	2   CoreFoundation                      0x000000019f1bf810 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 1611792
	3   CoreFoundation                      0x000000019f057728 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 137000
	4   CoreFoundation                      0x000000019f057050 _CF_forwarding_prep_0 + 96
	5   UIKitCore                           0x00000001a1b89308 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 3756808
	6   UIFoundation                        0x00000001aab3af30 D893DC98-0766-3DA9-BDD8-73614C11B808 + 81712
	7   UIFoundation                        0x00000001aab3ab84 D893DC98-0766-3DA9-BDD8-73614C11B808 + 80772
	8   UIKitCore                           0x00000001a1b85ec4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 3743428
	9   UIFoundation                        0x00000001aab3af30 D893DC98-0766-3DA9-BDD8-73614C11B808 + 81712
	10  UIFoundation                        0x00000001aab3b0bc D893DC98-0766-3DA9-BDD8-73614C11B808 + 82108
	11  UIFoundation                        0x00000001aab3ab84 D893DC98-0766-3DA9-BDD8-73614C11B808 + 80772
	12  UIKitCore                           0x00000001a1b894b4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 3757236
	13  UIKitCore                           0x00000001a1c6aa48 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 4680264
	14  UIKitCore                           0x00000001a19836c4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 1636036
	15  UIKitCore                           0x00000001a184c49c D2E47210-1C46-3CA7-BBC2-35021B146A13 + 361628
	16  UIKitCore                           0x00000001a226c7a8 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 10979240
	17  UIKitCore                           0x00000001a226cc20 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 10980384
	18  UIKitCore                           0x00000001a2a5baa0 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 19298976
	19  UIKitCore                           0x00000001a194b590 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 1406352
	20  UIKitCore                           0x00000001a1bf2ab4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 4188852
	21  UIKitCore                           0x00000001a18047b4 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 67508
	22  QuartzCore                          0x00000001a0b3a6d8 EC26DDF2-2731-3CF2-A310-543557961180 + 489176
	23  QuartzCore                          0x00000001a0b3a264 EC26DDF2-2731-3CF2-A310-543557961180 + 488036
	24  QuartzCore                          0x00000001a0b92edc EC26DDF2-2731-3CF2-A310-543557961180 + 851676
	25  QuartzCore                          0x00000001a0b10560 EC26DDF2-2731-3CF2-A310-543557961180 + 316768
	26  UIKitCore                           0x00000001a19a95f0 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 1791472
	27  CoreFoundation                      0x000000019f09c218 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 418328
	28  CoreFoundation                      0x000000019f08a4c0 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 345280
	29  CoreFoundation                      0x000000019f089b84 7AD2298D-5B8F-3AF4-9EED-B09B8E0A9653 + 342916
	30  CoreFoundation                      0x000000019f089368 CFRunLoopRunSpecific + 572
	31  GraphicsServices                    0x00000001eb27c1c4 GSEventRunModal + 164
	32  UIKitCore                           0x00000001a1bd69b0 D2E47210-1C46-3CA7-BBC2-35021B146A13 + 4073904
	33  UIKitCore                           0x00000001a1c84d54 UIApplicationMain + 340
	34  XXX.iOS                      0x0000000104c505f4 xamarin_UIApplicationMain + 60
	35  XXX.iOS                      0x0000000104fa3340 do_icall + 316
	36  XXX.iOS                      0x0000000104fa1c40 do_icall_wrapper + 348
	37  XXX.iOS                      0x0000000104f9664c mono_interp_exec_method + 2784
	38  XXX.iOS                      0x0000000104f94218 interp_runtime_invoke + 236
	39  XXX.iOS                      0x0000000104f62e9c mono_jit_runtime_invoke + 1116
	40  XXX.iOS                      0x0000000104f0a600 mono_runtime_invoke_checked + 148
	41  XXX.iOS                      0x0000000104f108fc mono_runtime_exec_main_checked + 116
	42  XXX.iOS                      0x0000000104f6849c mono_jit_exec + 356
	43  XXX.iOS                      0x0000000104c7cffc xamarin_main + 2336
	44  XXX.iOS                      0x000000010505b874 main + 64
	45  dyld                                0x00000001c52c4734 94AF19E0-4F2A-332F-A08C-04B9B7CB6FAC + 210740
@Nijnhoofd Nijnhoofd added the t/bug Something isn't working label Jul 22, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@PureWeen PureWeen added s/needs-repro Attach a solution or code which reproduces the issue platform/iOS 🍎 labels Jul 22, 2024
@PureWeen
Copy link
Member

@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Jul 29, 2024
@RobGibbens
Copy link

I get the same behavior, on both iOS 18 beta 3 and beta 4

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-repro Attach a solution or code which reproduces the issue s/no-recent-activity Issue has had no recent activity labels Jul 29, 2024
@Nijnhoofd
Copy link
Author

I get the same behavior, on both iOS 18 beta 3 and beta 4

Do you also have a .NET-iOS project that crashes after showing the splashscreen?

@jfversluis
Copy link
Member

Is this on your project or a new MAUI project? Do we have some way of reproducing this behavior?

Otherwise I think this is probably what we're waiting for: xamarin/xamarin-macios#20802

@jfversluis jfversluis added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Jul 31, 2024
@samhouts samhouts added the partner/macios Issues for the Mac / iOS SDK label Jul 31, 2024
@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Aug 5, 2024
@Nijnhoofd
Copy link
Author

Nijnhoofd commented Aug 6, 2024

We are somehow not able to reproduce the issue in a sample project. We don't understand why because the setup is the same. For now we changed the register name of our object that seemed to cause the crash to a project specific name and changed all the names of this object in the xib custom classes. That is a temporary workaround.

Good to know: we couldn't reproduce the crash in the simulator. So before we changed the register name we could run our app in the simulator but it crashed on a physical device.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity labels Aug 6, 2024
@jfversluis
Copy link
Member

I'm a bit unclear on the current status. It seems that this is not showing anymore? Or only on a physical device?

I still think it's probably better to report this to the macios repo as they might know more and it's probably not specific to .NET MAUI from what I can tell right now.

@jfversluis
Copy link
Member

@rolfbjarne ?

@jfversluis jfversluis added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Aug 13, 2024
@rolfbjarne
Copy link
Member

We are somehow not able to reproduce the issue in a sample project.

We need a way to reproduce it, otherwise we won't be able to figure out what's going on.

That said, with a way to reproduce it, feel free to move it to xamarin-macios.

@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Aug 19, 2024
@pininfarino
Copy link

@jfversluis Please save US.
Mac OS: Sequoia
Xcode - 16 - latest
Visual Studio Code - Latest

After update Xcode and Mac OS

Snímek obrazovky 2024-09-19 v 15 27 09

@jfversluis
Copy link
Member

@pininfarino please see #24819

@dotnet-policy-service dotnet-policy-service bot removed the s/no-recent-activity Issue has had no recent activity label Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
partner/macios Issues for the Mac / iOS SDK platform/iOS 🍎 s/needs-info Issue needs more info from the author t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants