Hi all, when I am changing scenes using:
[[CCDirector sharedDirector] replaceScene:gameOverScene];
I get an EXC_BAD_ACCESS from my [GameLayer dealloc] call. Using bt from gdb shows the following stack:
(gdb) continue
Program received signal: “EXC_BAD_ACCESS”.
(gdb) bt
#0 0x01594903 in objc_msgSend ()
#1 0x0563b690 in -[PBStreamReader setStream:] ()
#2 0x000096e6 in -[GameLayer dealloc] (self=0x574b520, _cmd=0x563acd6) at /Users/greg/projects/TestGame/Classes/GameLayer.m:553
#3 0x000a0a28 in ccArrayRemoveAllObjects (arr=0xa739510) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/Support/ccCArray.h:160
#4 0x000a0edb in ccArrayFree (arr=0xa739510) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/Support/ccCArray.h:80
#5 0x000a0e76 in -[CCArray dealloc] (self=0xa739500, _cmd=0x563acd6) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/Support/CCArray.m:229
#6 0x0002828b in -[CCNode dealloc] (self=0x5768cf0, _cmd=0x563acd6) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/CCNode.m:255
#7 0x0002ee1d in -[CCDirector setNextScene] (self=0xa701230, _cmd=0xbbcbb) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/CCDirector.m:829
#8 0x0002c113 in -[CCDirector drawScene] (self=0xa701230, _cmd=0xc1eb0) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/CCDirector.m:243
#9 0x00030124 in -[CCDisplayLinkDirector preMainLoop:] (self=0xa701230, _cmd=0xbcb3a, sender=0xa7002a0) at /Users/greg/repository/cocos2d-iphone-0.99.4/cocos2d/CCDirector.m:1212
#10 0x007a9784 in CA::Display::DisplayLink::dispatch ()
#11 0x007a98c9 in CA::Display::EmulatorDisplayLink::callback ()
#12 0x014138d3 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
#13 0x01414f14 in __CFRunLoopDoTimer ()
#14 0x013717a9 in __CFRunLoopRun ()
#15 0x01370d20 in CFRunLoopRunSpecific ()
#16 0x01370c41 in CFRunLoopRunInMode ()
#17 0x029b1018 in GSEventRunModal ()
#18 0x029b10dd in GSEventRun ()
#19 0x00853882 in UIApplicationMain ()
#20 0x00002460 in main (argc=1, argv=0xbffff0c8) at /Users/greg/projects/TestGame/main.m:13
What is PBStreamReader and why is it calling setStream during this deallocation? I've googled and searched here but haven't found anything talking about this class. Any ideas would be most welcome, thanks!