-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Bug] [iOS] Apps are crashed on iOS 15, NSInvalidArgumentException Reason: removeChildViewController #14750
Comments
Do you have any idea what code triggers this? At what moments in the app is this happening? The logs don't tell me anything unfortunately so without more info this is going to be near impossible to solve. |
Today I updated the app to Xamarin.Forms 5.0.0.2196. But in this case, I have both iOS Crash Report and our app crash report with a Stack Trace. KCMobilityTechnicianiOS-2021-10-19-182318.ips.zip
I cannot say what I did at the moment when the app was crashed. As I remember, I was just opening one page from another. Additionally, I already have a lot of app crash reports with a stack trace from different our users. These crash reports were collected during the last two weeks from different iPhone devices with different iOS 15.x versions. The app from these crash reports was built with Xamarin.Forms 5.0.0.2083, 5.0.0.2125, and 5.0.0.2196.
Where the XXXXX is different in different cases. But the removeChildViewController is the common part. There is a ZIP file with different examples of stack traces: We have been already developing our app for 5 years. But I haven't seen such crashes before iOS 15. |
We are also seeing this issue in two of our applications after a device has been upgraded to use iOS 15. We can see this on both iPhone and iPad. We see this issue occurring sporadically in our application as well with the only thing tying all the crashes (and sometimes freezes/hangs) together to be movement between pages on our navigation stack. We get the same mono errors referencing the removeChildViewController
From what we have found in our application it has something to do when we are using custom page renderers for platform specific implementations. One of our applications uses both non custom and custom pages and the issue only occurs after a user has traveled to a page that we have the custom implementation for. This is severely hurting our customers ability to use our application and we have been researching a solution since iOS15 has come out. Is there any movement on a solution of this issue? |
Any plan for resolving this? We are seeing it as well, on various devices running iOS 15.1 and iOS 15.0.2. Not sure if it's related, but we are also seeing some non-crash error logs for removeChildViewController. I can upload the crash log if you provide an upload URL - this is the start of it: This is the start of the error logged when there isn't a crash: This is the Main thread info from the logs. It seems to be the same whether the app crashes or not.
|
I would love to get rid of this, but I have yet to see some kind of reproduction that will help us pinpoint the exact cause of this :) |
@jfversluis #14783 (comment) I asked in another ticket if i should link to other ticket but was told it was not needed. That is my comment in another ticket around the exact same issue. It has a reproduction sample for you to look at. |
@FDDenny I'm not 100% convinced this is the exact same thing. The other issue describes a hang, this describes a direct crash. Also something we can rule out by another repro :) |
Hi, just wondering if there's any news on this issue? We have also been getting lots of crash reports from users who updated their device to iOS15. |
Hi, |
Thanks for your reply, will try it out! |
Please let us know @TrsThomas ! |
Hello, We built the latest version of our app with Visual Studio 2022 (Xamarin.iOS 15.6.0.3 and Xcode 13.2.1). Unfortunately, the problem has not been solved. |
As I commented in bug #14782, even if our app is built with Xamarin.iOS 15.4 and Xcode 13.2.1, we anyway have hangs and crashes on iOS 15. |
@jfversluis Is this fixed in latest Xamarin.Forms or is it being worked on? The workarounds seem to bandaid the hanging / crashing for about 10 minutes of app usage with TabbedPages, but eventually it still crashes on iOS 15 builds. |
Hello, are there an updates regarding this issue? Code Type: arm64 Date/Time: 2022-11-04T16:59:48.999Z Exception Type: SIGABRT *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableView removeChildViewController:]: unrecognized selector sent to instance 0x122388a00'
Last Exception Backtrace: |
Description
Our app is forcibly closed by iOS 15 from time to time. I never see such an issue on iOS before version 15.
We updated Xamarin.Forms in our app to version 5.0.0.2125.
We use Xamarin.iOS version 15.0.0.6 and Xcode 13.0 for builds.
Some of our users updated iOS to version 15.0.2 (and some of them to version 15.1 beta) on their devices.
But the issue is still here.
We have no crash log reports from our app.
But we have some logs from iPhone devices. And I provide several logs here.
Basic Information
Environment
Show/Hide Visual Studio info
Build Logs
This ZIP file contains several examples of iOS .ips log files.
iOS_15_issues.zip
The text was updated successfully, but these errors were encountered: