Sunday, 15 January 2012

ios8 - Strange Exception with GameCenter -



ios8 - Strange Exception with GameCenter -

i maintain getting crash study ga , users... cannot reproduce exception testing iphone5,5s,6 both ios7 , ios8. issue comes when application did come in background. unusual part gamecenter phone call spritekit, showing achievement banner?

does has same issue?

last exception backtrace: 0 corefoundation 0x23c99e3f __exceptionpreprocess + 127 1 libobjc.a.dylib 0x31371c8b objc_exception_throw + 38 2 corefoundation 0x23c9f189 -[nsobject(nsobject) doesnotrecognizeselector:] + 188 3 corefoundation 0x23c9d0a7 ___forwarding___ + 714 4 corefoundation 0x23bcf208 _cf_forwarding_prep_0 + 24 5 spritekit 0x26fe9689 -[sknode isequal:] + 164 6 foundation 0x248ec9ff +[nsobject(nsdelayedperforming) cancelpreviousperformrequestswithtarget:] + 358 7 gamecenterfoundation 0x2a945873 -[gkplayer postchangenotification] + 38 8 gamecenterfoundation 0x2a958d21 __52-[gkdaemonproxy setlocalplayer:authenticated:reply:]_block_invoke + 848 9 libdispatch.dylib 0x318d18cb _dispatch_call_block_and_release + 10 10 libdispatch.dylib 0x318d18b7 _dispatch_client_callout + 22 11 libdispatch.dylib 0x318d50bf _dispatch_main_queue_callback_4cf + 722 12 corefoundation 0x23c5fbe9 __cfrunloop_is_servicing_the_main_dispatch_queue__ + 8 13 corefoundation 0x23c5e2e9 __cfrunlooprun + 1512 14 corefoundation 0x23bac621 cfrunlooprunspecific + 476 15 corefoundation 0x23bac433 cfrunloopruninmode + 106 16 graphicsservices 0x2af1b0a9 gseventrunmodal + 136 17 uikit 0x27197359 uiapplicationmain + 1440 18 myappname 0x001b4f27 main (main.m:16) 19 libdyld.dylib 0x318f1aaf start + 2

similar crash issue on ios8 gklocalplayerinternal unrecognized selector

i tried test using sknode , gkplayer

sknode* node = [sknode node]; gkplayer* player = [gklocalplayer localplayer]; [node isequal:player];

it cause next exception same above result, means scheme compare sknode [gkplayer postchangenotification]....it's weird.

-[gklocalplayerinternal name]: unrecognized selector sent instance 0x1b6e3f80

if can replicate crash comparing sknode gklocalplayer seem this bug in spritekit performing equality check on object should not result in crash.

if have stamina it, subclass sknode's in app , implement isequal , hash methods yourself. should avoid faulty name comparing check on objects not implement selector.

i recommend study bug apple.

this question seems indicate apple did indeed update sknode equality , hashing methods in ios8, bug caused change.

ios8 sprite-kit game-center sknode

No comments:

Post a Comment