iOS 12 NSInternalInconsistencyException An -observeValueForKeyPath:ofObject:change:context: message was received but not handled Crash

Hi, The latest version of my app has a lot of comments about An -observeValueForKeyPath:ofObject:change:context: message was received but not handled crashes.However, the codes that caused the crash have not been changed in this version. Crash log 0:


NSInternalInconsistencyException

<CTRun: 0x1147bfd90>{string range = (8, 1), string = "\u7BEE", attributes = <CFBasicHash 0x280356480 [0x20dd53a30]>{type = mutable dict, count = 3, entries => 0 : <CFString 0x20e455978 [0x20dd53a30]>{contents = "NSFont"} = <CTFont: 0x1147550a0>{name = PingFangSC-Regular, size = 27.000000, matrix = 0x0, descriptor = <CTFontDescriptor: 0x283c31ce0>{attributes = <CFBasicHash 0x280225cc0 [0x20dd53a30]>{type = mutable dict, count = 1, entries => 2 : <CFString 0x20e45bc38 [0x20dd53a30]>{contents = "NSFontNameAttribute"} = <CFString 0x281730060 [0x20dd53a30]>{contents = "PingFangSC-Regular"} } >}} 1 : <CFString 0x20ef906b0 [0x20dd53a30]>{contents = "NSParagraphStyle"} = <CTParagraphStyle: 0x28332e370>{base writing direction = -1, alignment = 0, line break mode = 0, default tab interval = 0 first line head indent = 0, head indent = 0, tail indent = 0 line height multiple = 0, maximum line height = 0, minimum line height = 0 line spacing adjustment = 0, paragraph spacing = 0, paragraph spacing before = 0 maximum li...too long be cutted!

0 CoreFoundation ___exceptionPreprocess + 232
14 UIKitCore -[UIViewController loadView] + 256
15 *** -[SNThemeViewController loadView] (SNThemeViewController.m:52)

Log1


NSInternalInconsistencyException

<CTFont: 0x118a0f7a0>{name = .PingFangSC-Regular, size = 19.000000, matrix = 0x0, descriptor = <CTFontDescriptor: 0x282b5c1e0>{attributes = <CFBasicHash 0x281427000 [0x21b4a9430]>{type = mutable dict, count = 1, entries => 2 : <CFString 0x21bb98888 [0x21b4a9430]>{contents = "NSFontNameAttribute"} = <CFString 0x21bb87408 [0x21b4a9430]>{contents = ".PingFangSC-Regular"} } >}}: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: position Observed object: <CALayer: 0x280e5e4c0> Change: { kind = 1; new = "NSPoint: {207, 0.5}"; } Context: 0x0

0 CoreFoundation ___exceptionPreprocess + 228
12 UIKitCore -[UITableViewHeaderFooterView layoutSubviews] + 84
13 *** -[SNCommentCellFooter layoutSubviews] (SNCommentCellFooter.m:63)

Log2


NSInternalInconsistencyException

<NWConcrete_nw_endpoint_flow: 0x10908f400>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: contentOffset Observed object: <UITableView: 0x1088b9a00; frame = (0 0; 428 799); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x28338cff0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x283d1d5a0>; contentOffset: {0, 21781.666666666668}; contentSize: {428, 24466}; adjustedContentInset: {0, 0, 156, 0}; dataSource: <SNNewsPageTableDataSource: 0x281e0b250>> Change: { kind = 1; new = "NSPoint: {0, 21781.666666666668}"; } Context: 0x0

0 CoreFoundation ___exceptionPreprocess + 164
21 UIKitCore _UIApplicationMain + 340
22 *** main (main.m:15)

Log3


NSInternalInconsistencyException

<UILongPressGestureRecognizer: 0x135b942f0; state = Possible; view = <UITableViewCellContentView 0x135b81f00>; target= <(action=_longPressGestureRecognized:, target=<UITableViewCell 0x136a23200>)>>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled. Key path: position Observed object: <CALayer: 0x281bf6180> Change: { kind = 1; new = "NSPoint: {19, 19}"; } Context: 0x0

0 CoreFoundation ___exceptionPreprocess + 228
12 UIKitCore -[UIImageView _setViewGeometry:forMetric:] + 172
13 *** -[SNLikeAnimationButton layoutSubviews] (SNLikeAnimationButton.m:142)

and so on...

I don’t know how to locate it now. Please help me locate the problem. I look forward to your reply. If you need more information please let me know

iOS 12 NSInternalInconsistencyException An -observeValueForKeyPath:ofObject:change:context: message was received but not handled Crash
 
 
Q