Bug 57564 - Xamarin Forms App randomly crashing on iOS when opening drawer menu while having animations on Detail page..
Summary: Xamarin Forms App randomly crashing on iOS when opening drawer menu while hav...
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 10.3 (iOS 10.2)
Hardware: All All
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL: https://github.com/taublast/CrashClic...
Depends on:
Blocks:
 
Reported: 2017-06-16 17:15 UTC by Nick Kovalsky
Modified: 2017-07-26 18:04 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Nick Kovalsky 2017-06-16 17:15:29 UTC
Crash when opening drawer menu on iOS, while having animations with ScaleTo running on main ui thread. 
Happens on first click or after a random number of clicks. Totally random, but 100% to happen. Obviously happens when some animations sync together in a bad way.
No matter simulator or real device (was using iphone 5), no matter release or debug.

Created an empty project to reproduce the crash, reproducing works.
https://github.com/taublast/CrashClickingMenu

The project was crated from blank app, added 3 files : root, master and detail, nothing unusual, nothing special.
Just lauch app, no matter simulator or real device, no matter release or debug.
Start clicking on the left upper corner opening and closing menu.
This menu animation will suddenly (from instant to up to like 5-7 minutes) conflict with your image animation that is run on main UI thread.
Just don't stop clicking..

Log below from running that project, ends with:

2017-06-16 19:38:14.547 CrashClickingMenu.iOS[75694:2295778] critical:   at <unknown> <0xffffffff>
2017-06-16 19:38:14.547 CrashClickingMenu.iOS[75694:2295778] critical:   at (wrapper managed-to-native) ObjCRuntime.Messaging.void_objc_msgSend_CATransform3D (intptr,intptr,CoreAnimation.CATransform3D) [0x0000b] in <58a9bd8a3cbb4d0092bc0a767ff66c0f>:0
2017-06-16 19:38:14.548 CrashClickingMenu.iOS[75694:2295778] critical:   at CoreAnimation.CALayer.set_Transform (CoreAnimation.CATransform3D) [0x0000b] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/build/ios/native/CoreAnimation/CALayer.g.cs:2225
2017-06-16 19:38:14.548 CrashClickingMenu.iOS[75694:2295778] critical:   at Xamarin.Forms.Platform.iOS.VisualElementTracker/<>c__DisplayClass23_0.<OnUpdateNativeControl>b__0 () [0x003c3] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\VisualElementTracker.cs:203
2017-06-16 19:38:14.549 CrashClickingMenu.iOS[75694:2295778] critical:   at Xamarin.Forms.Platform.iOS.CADisplayLinkTicker.StartThread () [0x00025] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\CADisplayLinkTicker.cs:60
2017-06-16 19:38:14.549 CrashClickingMenu.iOS[75694:2295778] critical:   at System.Threading.ThreadHelper.ThreadStart_Context (object) [0x00014] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.36/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:68
2017-06-16 19:38:14.549 CrashClickingMenu.iOS[75694:2295778] critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00071] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.36/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:957
2017-06-16 19:38:14.549 CrashClickingMenu.iOS[75694:2295778] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.36/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:904
2017-06-16 19:38:14.55
0 CrashClickingMenu.iOS[75694:2295778] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) [0x0002b] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.36/src/mono/mcs/class/referencesource/mscorlib/system/threading/executioncontext.cs:893
2017-06-16 19:38:14.550 CrashClickingMenu.iOS[75694:2295778] critical:   at System.Threading.ThreadHelper.ThreadStart () [0x00008] in /Library/Frameworks/Xamarin.iOS.framework/Versions/10.10.0.36/src/mono/mcs/class/referencesource/mscorlib/system/threading/thread.cs:105
2017-06-16 19:38:14.550 CrashClickingMenu.iOS[75694:2295778] critical:   at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x0004f] in <2f4074c3120b4d80802e10af84b67d41>:0
2017-06-16 19:38:14.550 CrashClickingMenu.iOS[75694:2295778] critical: 
Native stacktrace:
2017-06-16 19:38:14.554 CrashClickingMenu.iOS[75694:2295778] critical: 	0   CrashClickingMenu.iOS               0x000000010ea63501 mono_handle_native_crash + 257
2017-06-16 19:38:14.555 CrashClickingMenu.iOS[75694:2295778] critical: 	1   CrashClickingMenu.iOS               0x000000010ea705d0 mono_sigsegv_signal_handler + 288
2017-06-16 19:38:14.555 CrashClickingMenu.iOS[75694:2295778] critical: 	2   libsystem_platform.dylib            0x000000011a862b3a _sigtramp + 26
2017-06-16 19:38:14.555 CrashClickingMenu.iOS[75694:2295778] critical: 	3   ???                                 0x00007fbc4520115c 0x0 + 140446590308700
2017-06-16 19:38:14.556 CrashClickingMenu.iOS[75694:2295778] critical: 	4   UIKit                               0x0000000112c284c8 -[UIViewAnimationState actionForLayer:forKey:forView:] + 99
2017-06-16 19:38:14.556 CrashClickingMenu.iOS[75694:2295778] critical: 	5   UIKit                               0x0000000112c5387e +[UIView(Animation) _defaultUIViewActionForLayer:forKey:] + 111
2017-06-16 19:38:14.556 CrashClickingMenu.iOS[75694:2295778] critical: 	6   UIKit                               0x00000001134323e4 -[UIView(UIKitManual) actionForLayer:forKey:] + 119
2017-06-16 19:38:14.556 CrashClickingMenu.iOS[75694:2295778] critical: 	7   QuartzCore                          0x000000011c8414bc -[CALayer actionForKey:] + 437
2017-06-16 19:38:14.557 CrashClickingMenu.iOS[75694:2295778] critical: 	8   QuartzCore                          0x000000011c83cade _ZL12actionForKeyP7CALayerPN2CA11TransactionEP8NSString + 76
2017-06-16 19:38:14.557 CrashClickingMenu.iOS[75694:2295778] critical: 	9   QuartzCore                          0x000000011c83ca6c _ZN2CA5Layer12begin_changeEPNS_11TransactionEjRP11objc_object + 140
2017-06-16 19:38:14.557 CrashClickingMenu.iOS[75694:2295778] critical: 	10  QuartzCore                          0x000000011c83ce04 _ZN2CA5Layer6setterEj12_CAValueTypePKv + 164
2017-06-16 19:38:14.557 CrashClickingMenu.iOS[75694:2295778] critical: 	11  QuartzCore                          0x000000011c83e371 -[CALayer setTransform:] + 68
2017-06-16 19:38:14.558 CrashClickingMenu.iOS[75694:2295778] critical: 	12  CrashClickingMenu.iOS               0x000000010ec25429 xamarin_dyn_objc_msgSend + 217
2017-06-16 19:38:14.558 CrashClickingMenu.iOS[75694:2295778] critical: 	13  ???                                 0x000000013374ab28 0x0 + 5158251304
2017-06-16 19:38:14.558 CrashClickingMenu.iOS[75694:2295778] critical: 	14  ???                                 0x000000013374a792 0x0 + 5158250386
2017-06-16 19:38:14.558 CrashC
lickingMenu.iOS[75694:2295778] critical: 	15  ???                                 0x0000000132db81a3 0x0 + 5148213667
2017-06-16 19:38:14.558 CrashClickingMenu.iOS[75694:2295778] critical: 	16  ???                                 0x0000000134344bb4 0x0 + 5170809780
2017-06-16 19:38:14.559 CrashClickingMenu.iOS[75694:2295778] critical: 	17  ???                                 0x0000000134343b0c 0x0 + 5170805516
2017-06-16 19:38:14.559 CrashClickingMenu.iOS[75694:2295778] critical: 	18  CrashClickingMenu.iOS               0x000000010ea73585 mono_jit_runtime_invoke + 1301
2017-06-16 19:38:14.559 CrashClickingMenu.iOS[75694:2295778] critical: 	19  CrashClickingMenu.iOS               0x000000010eb2db88 do_runtime_invoke + 88
2017-06-16 19:38:14.559 CrashClickingMenu.iOS[75694:2295778] critical: 	20  CrashClickingMenu.iOS               0x000000010eb7441a start_wrapper + 538
2017-06-16 19:38:14.560 CrashClickingMenu.iOS[75694:2295778] critical: 	21  CrashClickingMenu.iOS               0x000000010ebf8fed inner_start_
thread + 189
2017-06-16 19:38:14.560 CrashClickingMenu.iOS[75694:2295778] critical: 	22  libsystem_pthread.dylib             0x000000011a87493b _pthread_body + 180
2017-06-16 19:38:14.560 CrashClickingMenu.iOS[75694:2295778] critical: 	23  libsystem_pthread.dylib             0x000000011a874887 _pthread_body + 0
2017-06-16 19:38:14.560 CrashClickingMenu.iOS[75694:2295778] critical: 	24  libsystem_pthread.dylib             0x000000011a87408d thread_start + 13
2017-06-16 19:38:14.561 CrashClickingMenu.iOS[75694:2295778] critical: 
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 1 Nick Kovalsky 2017-06-28 19:29:20 UTC
Any official reaction on it please?.. Atm i have animations on for android and sadly turned off for ios.
Comment 2 Jim Bennett 2017-07-12 21:40:04 UTC
I'm hitting this as well, would be good to know when a fix is due.
Comment 3 Adam Hartley [MSFT] 2017-07-26 10:13:21 UTC
Thanks so much for taking the time to submit this report! I attempted to reproduce this issue based on the bug description and sample with the latest Xamarin.iOS 10.12.0.14, and I was unable to hit the problem. I tested this on the simulator and a device, clicking constantly for several minutes. If this issue is still occurring for you, please reopen this report attaching a screencast of the issue.
Comment 4 Nick Kovalsky 2017-07-26 18:04:53 UTC
Today i was unable to reproduce it aswell, after that was happening we had visual studio updated few times, so i would blame vs compiler for this bug now hopefully gone.