ibireme / YYText

Powerful text framework for iOS to display and edit rich text.
MIT License
8.85k stars 1.69k forks source link

_YYTextKeyboardViewFrameObserver 移除KVO时崩溃了 #842

Open killerdarkios opened 5 years ago

killerdarkios commented 5 years ago

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x119bc9640 of class UIInputSetHostView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x1736370e0> ( <NSKeyValueObservance 0x173840b40: Observer: 0x171c2c2c0, Key path: frame, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x17544c9f0> <NSKeyValueObservance 0x17345eed0: Observer: 0x171c2c2c0, Key path: center, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x17544c8a0> <NSKeyValueObservance 0x17105fd70: Observer: 0x171c2c2c0, Key path: bounds, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x17544c7b0> <NSKeyValueObservance 0x173859da0: Observer: 0x171c2c2c0, Key path: transform, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x17544c6c0> )'

最近突然冒了很多这种错误出来

wanyakun commented 5 years ago

+1

lsmakethebest commented 5 years ago

你们是iOS几系统出现的这种情况

CoderYLM commented 3 years ago

+1 iOS14.3 iphone12 pro max 偶尔出现crash