Closed franzdevel closed 5 years ago
I'm getting the same exception on iOS 12.3.1 using XF v4.0.0.497661
Is this issue fixed..?
I'm getting the same exception on iOS 12.3.1 using XF v4.0.0.497661
I'm also getting it on iOS 12+
Same problem here
@juanmalm, I got this resolved by removing a plugin that has animations in the content page that I navigated to.
EDIT: See below https://forums.xamarin.com/discussion/94260/ios-crash-when-entering-text
I figured out my issue. I had an animation looping. When I opened a page on top of it, UIKit would eventually dispose the object being animated, but Forms would keep animating it. The solution was to simply start and stop the animation with the page's lifecycle.
To find this, I pulled down the source for Xamarin Forms and added logging about the object just before it crashed. I hadn't even considered that the animation could be the problem, but with the logging it was obvious.
DId you see the Device logs...?
@PaulsonMac this is the crash stack trace:
UIView_UITextField.EndEditing (UIKit.UIView This, System.Boolean force) /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.157/src/Xamarin.iOS/UIKit/UIView_UITextField.g.cs:56 PageRenderer.<ViewDidLoad>b__39_0 (UIKit.UITapGestureRecognizer a) D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:210 UITapGestureRecognizer+Callback.Activated (UIKit.UITapGestureRecognizer sender) /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.157/src/Xamarin.iOS/UIKit/UIGestureRecognizer.cs:223 (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.157/src/Xamarin.iOS/UIKit/UIApplication.cs:86 UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.157/src/Xamarin.iOS/UIKit/UIApplication.cs:65
As workaround I had to downgrade Xamarin.Forms to 3.6.0.344457
Ok.. 👍
Is this fix in any of the released versions yet? Still getting this exception on 4.2.0.618605-pre2
.
I am waiting for this fix too. Do you guys have an estimate on this?
If it helps, I did a hacky workaround that removes the UITapGestureRecognizer and then readds it with the fix, this resolves it until the fix is released.
https://gist.github.com/DuncWatts/6d43a539b5e15710fdd76aa92d542065
A response would have been nice. Anyway, seems like it is working now with Xamarin.Forms 4.2.0.709249...
Description
After upgrading Xamarin.Forms to a version higher than 3.6.0.344457, we experience an app crash when tapping on icons / labels on our app's home page that should take the user to new pages within the page navigation.
The issue is reproducible on iOS versions 10 and below.
I have created a minimal sample project to demonstrate the issue.
Steps to Reproduce
Expected Behavior
Steps 2 to 4 should be repeatable infinitely.
Actual Behavior
At some point, a crash will occur at step 2. The application output shows the following information:
Basic Information
Tested with the following Xamarin.Forms versions:
Tested with the following device / iOS versions:
Build & debug environment:
Reproduction Link
myapp.zip