Firebase Crash Report Debugging - CALayer Position Contains NAN

Looking at the generated crash reports, I saw that this error appears a lot. However, it is really hard to say what makes him fail:

Exception name: CALayer position contains NaN:

In my code, I have an NSTimer that removes a custom MKAnnotationone that contains animated CALayersafter X delay. I guess I need to call view.layer removeAllAnimationsbefore the call removeFromSuperView.

I am currently calling only removeFromSuperView.

Stack Log:

Exception name: CALayer position contains NaN: [nan 163.74]
__exceptionPreprocess + 1241536
objc_exception_throw + 34136
+[NSException raise:format:] + 1241348
CA::Layer::set_position(CA::Vec2<double> const&, bool) + 1101236
-[CALayer setPosition:] + 1101608
-[CALayer setFrame:] + 1103040
-[UIView(Geometry) setFrame:] + 39996
Mapbox (4306594984 + 60584)
Mapbox (4306593356 + 58956)
Mapbox (4306685072 + 150672)
Mapbox (4306682568 + 148168)
__NSFireDelayedPerform + 998556

Any entry is welcome!

+4
source share
1 answer

, , , . . .

[viewObject snapshotViewAfterScreenUpdates:YES];
+2

Source: https://habr.com/ru/post/1659127/


All Articles