-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
App crashes when it looses focus in background on iPad #27483
Comments
From the logs it seems like you're deploying from Windows to your iPad without any other Mac device involved, is that correct? Couple of questions:
I think the important part is here, seems like something with the dark theme/light theming:
|
I went back to the default app and I could not recreate the exception with the default code the second time around. I have however determined the source of the exception in my code. In the default app generated by visual studio for a new maui application if you set the FlyoutBackground of the Shell in the styles.xaml to anything you will get the following exception when the app is placed in the background and another app is activated. Setting FlyoutBackgroundColor seems to work ok. I believe I was using FlyoutBackground because early on FlyoutBackgroundColor was not working. As for your questions I am testing this on an actual iPad connected to my mac and deployed using iOS Remote Devices. This did work, I think it broke when iOS 17 was released. It works fine in iOS on a phone. INFO: [iOS Debugger] Connecting to "Jeff's iPad Pro" over USB on port 10000... Thread started: #3 Thread started: .NET Timer #6 INFO: 0x1024dd408 - /private/var/containers/Bundle/Application/879E2539-A2BD-464D-B87D-58FB0F2D0CF5/DevMauiApp 9.0.30.app/DevMauiApp 9.0.30 : sigabrt_signal_handler.cold.1 INFO: 0x1023c2760 - /private/var/containers/Bundle/Application/879E2539-A2BD-464D-B87D-58FB0F2D0CF5/DevMauiApp 9.0.30.app/DevMauiApp 9.0.30 : mono_interp_exec_method INFO: 0x1021a77d0 - /private/var/containers/Bundle/Application/879E2539-A2BD-464D-B87D-58FB0F2D0CF5/DevMauiApp 9.0.30.app/DevMauiApp 9.0.30 : xamarin_ftnptr_exception_handler INFO: 0x1021a83cc - /private/var/containers/Bundle/Application/879E2539-A2BD-464D-B87D-58FB0F2D0CF5/DevMauiApp 9.0.30.app/DevMauiApp 9.0.30 : _ZL17exception_handlerP11NSException INFO: 0x10217989c - /private/var/containers/Bundle/Application/879E2539-A2BD-464D-B87D-58FB0F2D0CF5/DevMauiApp 9.0.30.app/DevMauiApp 9.0.30 : interp_to_native_trampoline INFO: 8618 0x18ee710c0 0x18e1a7c28 0x18eeb4138 0x18f9803ac 0x18f147648 0x18f147518 0x18f995310 0x18f37da50 0x18efdae40 0x18efda308 0x18f1c4cec 0x18f1c4904 0x18f03b34c 0x18f270378 0x18f270cd0 0x18f68f1e0 0x18f1f00ac 0x18f68f160 0x18eee3f30 0x18f68e20c 0x18f68e0fc 0x18f68e340 0x1901b7c64 0x18ffa7414 0x18ffa8610 0x1a5cfb088 0x1a5cfb0a4 0x1a5cfb0a4 0x1a5cfab1c 0x18ffa8560 0x18ffa7e00 0x18ffa8410 0x18f68e278 0x18f68e490 0x18ffa828c 0x19046b954 0x19046b7d0 0x18f07a190 0x18f139824 0x18f139404 0x1a5cc01bc 0x1a5cbfd6c 0x1a5c8f3c8 0x1a5c9ddb8 0x1a5c9dc44 0x1a5ca2114 0x1943d60d0 0x1943d9b14 0x1a5c9f300 0x1a5c9f280 0x1a5c9f158 0x18c6d4328 0x18c6d42bc 0x18c6d1dc0 0x18c6d0fbc 0x18c6d0830 0x1d86b01c4 0x18f236eb0 0x18f2e55b4 0x1021905f4 0x1023cba78 0x1023ca04c 0x1023bf0a8 0x1023bcc74 0x10238b5a0 0x102333390 0x102339294 0x102391fb8 0x1021bb1fc 0x1023fc710 0x1b20beec8) =================================================================
|
@JPfahl Are you using |
Hi @JPfahl. We have added the "s/needs-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. |
Description
App runs fine but crashes in the background. This makes deploying a maui app to iPad impossible.
Steps to Reproduce
Created a new .net maui app project. Changed no code. Run it on an iPad. Swipe to put it into background, select any other app. App terminates with the following error:
Link to public reproduction project repository
No response
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
18
Did you find any workaround?
no
Relevant log output
The text was updated successfully, but these errors were encountered: