hackiftekhar / IQDropDownTextField

TextField with DropDown support using UIPickerView
MIT License
309 stars 87 forks source link

CALayer bounds contains NaN: [0 nan; 320 291] #89

Closed Shelley-ND closed 6 years ago

Shelley-ND commented 6 years ago

I have a crash problem, and log like this :

CRASH: CALayer bounds contains NaN: [0 nan; 320 291] 2018-03-12 19:23:13.096676+0800 *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 nan; 320 291]'

hackiftekhar commented 6 years ago

@Shelley-ND Can you please try https://stackoverflow.com/a/42960746/1582217 and let me know more information about this, specially at which line of code it get's crash.

hackiftekhar commented 6 years ago

Duplicate of #86

ycwjjjj commented 3 years ago

we are using v2.0. but still encounter this CAlayer crash as below. Is it possible to keep on investigate it and fix it? Thanks!

libc++abi.dylib: terminating with uncaught exception of type NSException *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer bounds contains NaN: [0 nan; 320 291]. Layer: <CALayer:0x283c19480; position = CGPoint (151 16.8333); bounds = CGRect (0 -129.667; 320 291); delegate = <UIPickerTableView: 0x116520200; frame = (-9 -128.667; 320 291); opaque = NO; gestureRecognizers = <NSArray: 0x2832bff30>; layer = <CALayer: 0x283c19480>; contentOffset: {0, -129.66666666666666}; contentSize: {320, 0}; adjustedContentInset: {129.66666666666666, 0, 129.33333333333334, 0}; dataSource: <UIPickerColumnView: 0x1168ae430; frame = (9 0; 302 216); autoresize = W+TM+H; gestureRecognizers = <NSArray: 0x2832ba160>; layer = <CALayer: 0x283c07220>>>; sublayers = (<CALayer: 0x283c4d820>, <CALayer: 0x283c3b3e0>); allowsGroupOpacity = YES; backgroundColor = (null)>' terminating with uncaught exception of type NSException (Recorded stack frame)