MaddTheSane / SVGKit

A Cocoa framework for rendering SVG files as Core Animation layers
http://mattrajca.com
Other
47 stars 19 forks source link

Crash on example #9

Closed oks closed 9 years ago

oks commented 9 years ago

Hi, you done a great awesome work! Thank you!

I found a crash in example app, IOS target. IOS8, iPhone 6 simulator.

CrashLog:

2014-11-27 00:34:26.252 Demo-iOS[14397:511701] *\ Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7f987adcf000 of class SVGKFastImageView was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x7f987ae4ce80> ( <NSKeyValueObservance 0x7f987add2760: Observer: 0x7f987adcf000, Key path: layer, Options: <New: YES, Old: NO, Prior: NO> Context: 0x1051320f0, Property: 0x7f987ac1a980> <NSKeyValueObservance 0x7f987add5020: Observer: 0x7f987adcf000, Key path: image, Options: <New: YES, Old: NO, Prior: NO> Context: 0x1051320f0, Property: 0x7f987ac206e0> <NSKeyValueObservance 0x7f987add4fb0: Observer: 0x7f987adcf000, Key path: tileRatio, Options: <New: YES, Old: NO, Prior: NO> Context: 0x1051320f0, Property: 0x7f987ac20bc0> <NSKeyValueObservance 0x7f987add6b40: Observer: 0x7f987adcf000, Key path: showBorder, Options: <New: YES, Old: NO, Prior: NO> Context: 0x1051320f0, Property: 0x7f987ac18750> )'

P.S. Do not forget unsubscribe). P.P.S. I really recommend Facebook KVOController, it handles all this situations correctly, when native observer fails.

oks commented 9 years ago

Also, do you an idea to put it in a pod?

MaddTheSane commented 9 years ago

I have, myself, encountered the error. I’ll look into debugging it soon.

And no, I have no plans on making a pod file.

On Nov 26, 2014, at 3:38 PM, Oks notifications@github.com wrote:

Hi, you done a great awesome work! Thank you!

I found a crash in example app, IOS target. IOS8, iPhone 6 simulator.

CrashLog:

2014-11-27 00:34:26.252 Demo-iOS[14397:511701] *\ Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x7f987adcf000 of class SVGKFastImageView was deallocated while key value observers were still registered with it. Current observation info: ( Context: 0x1051320f0, Property: 0x7f987ac1a980> Context: 0x1051320f0, Property: 0x7f987ac206e0> Context: 0x1051320f0, Property: 0x7f987ac20bc0> Context: 0x1051320f0, Property: 0x7f987ac18750> )'

P.S. Do not forget unsubscribe). P.P.S. I really recommend Facebook KVOController, it handles all this situations correctly, when native observer fails.

— Reply to this email directly or view it on GitHub https://github.com/MaddTheSane/SVGKit/issues/9.