How to debug [NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] crash
How to debug [NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] crash
- Subject: How to debug [NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] crash
- From: Alex Kac <email@hidden>
- Date: Wed, 21 Oct 2015 02:27:17 -0600
Our app is using a custom split view controller that we're getting rid of for the next major release, but for the CURRENT release we still have it. The problem I have is that on iOS 9 we're seeing the above when we hide the master view and show it a few times over and over agian.
Its random where it ends up crashing, but it always EXC_BAD_ACCESS. So…I fire up Instruments and Zombies…no issues. Does not crash. I try it with Runtime address sanitization, and finally the regular stuff. When using the any of the above - it does not crash ever. When turning it off (and of course running in Release mode), it crashes after a few tries.
• #1
• 0x000000010c54d398 in -[NSObject(NSKeyValueObserverNotification) willChangeValueForKey:] ()
• #2
• 0x000000010f171bb9 in CAAnimation_setter(CAAnimation*, unsigned int, _CAValueType, void const*) ()
• #3
• 0x000000010f16b6de in -[CAPropertyAnimation setKeyPath:] ()
• #4
• 0x000000010f16b412 in +[CAPropertyAnimation animationWithKeyPath:] ()
• #5
• 0x000000010d0e7c04 in +[UIViewSpringAnimationState defaultSpringAnimationForKey:mass:stiffness:damping:velocity:] ()
• #6
• 0x000000010d0e7de2 in -[UIViewSpringAnimationState _defaultAnimationForKey:] ()
• #7
• 0x000000010d0e7a8b in -[UIViewSpringAnimationState animationForLayer:forKey:forView:] ()
• #8
• 0x000000010ca572cc in -[UIViewAnimationState actionForLayer:forKey:forView:] ()
• #9
• 0x000000010ca77686 in +[UIView(Animation) _defaultUIViewActionForLayer:forKey:] ()
• #10
• 0x000000010ca853a6 in -[UIView(CALayerDelegate) actionForLayer:forKey:] ()
• #11
• 0x000000010f18a9fc in -[CALayer actionForKey:] ()
• #12
• 0x000000010f1861c6 in actionForKey(CALayer*, CA::Transaction*, NSString*) ()
• #13
• 0x000000010f186154 in CA::Layer::begin_change(CA::Transaction*, unsigned int, objc_object*&) ()
• #14
• 0x000000010f187839 in CA::Layer::set_position(CA::Vec2<double> const&, bool) ()
• #15
• 0x000000010f187959 in -[CALayer setPosition:] ()
• #16
• 0x000000010f187fbd in -[CALayer setFrame:] ()
• #17
• 0x000000010cf30311 in __26-[_UILabelLayer setFrame:]_block_invoke ()
• #18
• 0x000000010cf3016f in -[_UILabelLayer _setFrameOrBounds:settingAction:] ()
• #19
• 0x000000010cf302b3 in -[_UILabelLayer setFrame:] ()
• #20
• 0x000000010ca6d3f7 in -[UIView(Geometry) setFrame:] ()
• #21
• 0x000000010cc2d7e6 in -[UILabel setFrame:] ()
I'm quite sure its my bug somewhere having to do with memory…but I'm at a loss where to move forward with this. I'd love some ideas…
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden