@NSManaged crash for a CALayer animation

I've defined a custom layer property (used by a custom subclass of UIView) that I animate with a UIView.animated (or UIView.animateKeyframes). I have some strange crashes arround the property.


: -[__NSCFType doubleValue]: unrecognized selector sent to instance


Note that when used on a small sample project the animation/view never crash but crash in my main project. Any advice of what I should check? Xcode project settings seems the same. Something else in code or configuration to check?


The full callstack is:

0 CoreFoundation 0x00007fff23e39f0e __exceptionPreprocess + 350

1 libobjc.A.dylib 0x00007fff50ad79b2 objc_exception_throw + 48

2 CoreFoundation 0x00007fff23e5ac34 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132

3 CoreFoundation 0x00007fff23e3e90c ___forwarding___ + 1436

4 CoreFoundation 0x00007fff23e40bf8 _CF_forwarding_prep_0 + 120

5 QuartzCore 0x00007fff2b53a285 CA_setValueForKey + 557

6 QuartzCore 0x00007fff2b4f1e52 -[CABasicAnimation applyForTime:presentationObject:modelObject:] + 869

7 QuartzCore 0x00007fff2b4b4eb1 _ZN2CA5Layer13layer_at_timeEPNS_11TransactionEdbb + 1023

8 QuartzCore 0x00007fff2b4b4a84 _ZN2CA5Layer17layer_being_drawnEPNS_11TransactionEj + 132

9 QuartzCore 0x00007fff2b4b6671 _ZL16backing_callbackP9CGContextPv + 65

10 QuartzCore 0x00007fff2b379e48 CABackingStoreUpdate_ + 196

11 QuartzCore 0x00007fff2b4b66bd ___ZN2CA5Layer8display_Ev_block_invoke + 53

12 QuartzCore 0x00007fff2b4ad66e -[CALayer _display] + 2026

13 QuartzCore 0x00007fff2b4bfdca _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 520

14 QuartzCore 0x00007fff2b408c84 _ZN2CA7Context18commit_transactionEPNS_11TransactionEd + 324

15 QuartzCore 0x00007fff2b43c65f _ZN2CA11Transaction6commitEv + 649

16 UIKitCore 0x00007fff48bc155c _UIApplicationFlushRunLoopCATransactionIfTooLate + 104

17 UIKitCore 0x00007fff48c6e5fc __handleEventQueueInternal + 7487

18 UIKitCore 0x00007fff48c64dcb __handleHIDEventFetcherDrain + 88

19 CoreFoundation 0x00007fff23d9deb1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

20 CoreFoundation 0x00007fff23d9dddc __CFRunLoopDoSource0 + 76

21 CoreFoundation 0x00007fff23d9d5b4 __CFRunLoopDoSources0 + 180

22 CoreFoundation 0x00007fff23d981ae __CFRunLoopRun + 974

23 CoreFoundation 0x00007fff23d97ac4 CFRunLoopRunSpecific + 404

24 GraphicsServices 0x00007fff38b2fc1a GSEventRunModal + 139

25 UIKitCore 0x00007fff48bc7f80 UIApplicationMain + 1605

26 Calendar2 0x000000010c33400b main + 75

27 libdyld.dylib 0x00007fff519521fd start + 1

@NSManaged crash for a CALayer animation
 
 
Q