Js Execption Error Bug?

Hi I keep getting this crash of a bad exception happening at random parts of my game there is no signal to where is causing the issue i think it could be an issue with garbage collector removing a reference to something? here is my stack print out please hopefully someone can help

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 org.cocos2dx.testingFb 0x0000000101109128 js::gc::MarkObjectRoot(JSTracer*, JSObject**, char const*) + 56
1 org.cocos2dx.testingFb 0x00000001011112e3 js::gc::MarkRuntime(JSTracer*, bool) + 483
2 org.cocos2dx.testingFb 0x00000001012ffa1d IncrementalCollectSlice(JSRuntime*, long long, JS::gcreason::Reason, js::JSGCInvocationKind) + 3677
3 org.cocos2dx.testingFb 0x00000001012fe284 GCCycle(JSRuntime*, bool, long long, js::JSGCInvocationKind, JS::gcreason::Reason) + 564
4 org.cocos2dx.testingFb 0x00000001012fd6b5 Collect(JSRuntime*, bool, long long, js::JSGCInvocationKind, JS::gcreason::Reason) + 581
5 org.cocos2dx.testingFb 0x00000001012d421d js_HandleExecutionInterrupt(JSContext*) + 77
6 org.cocos2dx.testingFb 0x000000010128ff8b js::jit::CheckOverRecursedWithExtra(JSContext*, js::jit::BaselineFrame*, unsigned int, unsigned int) + 155
7 ??? 0x000000010accb572 0 + 4476155250
8 ??? 0x000000010acc1658 0 + 4476114520

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff95df7232 kevent64 + 10
1 libdispatch.dylib 0x00007fff9609aa6a _dispatch_mgr_thread + 52

Thread 2:
0 libsystem_kernel.dylib 0x00007fff95df63fa __select + 10
1 org.cocos2dx.testingFb 0x000000010179be78 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (cocos2d::Console::)(), cocos2d::Console> > >(void*) + 616
2 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff95df633a __recvfrom + 10
1 org.cocos2dx.testingFb 0x0000000100a24200 FileServer::loopReceiveFile() + 208
2 org.cocos2dx.testingFb 0x0000000100a2cc28 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (FileServer::)(), FileServer> > >(void*) + 616
3 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
4 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
5 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 4:
0 libsystem_kernel.dylib 0x00007fff95df648a __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff91045e50 usleep + 54
2 org.cocos2dx.testingFb 0x0000000100a2510f FileServer::loopWriteFile() + 223
3 org.cocos2dx.testingFb 0x0000000100a2cc28 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (FileServer::)(), FileServer> > >(void*) + 616
4 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
5 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
6 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff95df648a __semwait_signal + 10
1 libsystem_c.dylib 0x00007fff91045e50 usleep + 54
2 org.cocos2dx.testingFb 0x0000000100a26bcd FileServer::loopResponse() + 237
3 org.cocos2dx.testingFb 0x0000000100a2cc28 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::__bind<void (FileServer::)(), FileServer> > >(void*) + 616
4 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
5 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
6 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 6:
0 libsystem_kernel.dylib 0x00007fff95df633a __recvfrom + 10
1 org.cocos2dx.testingFb 0x000000010105574c void* std::__1::__thread_proxy<std::__1::tuple<void ()(unsigned int), unsigned int> >(void) + 428
2 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 7:
0 libsystem_kernel.dylib 0x00007fff95df14de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff95df064f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8d59feb4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8d59f37b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff8d59ebd8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff9152d66b _NSEventThread + 137
6 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 8:: com.apple.audio.IOThread.client
0 libsystem_kernel.dylib 0x00007fff95df14de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff95df064f mach_msg + 55
2 com.apple.audio.CoreAudio 0x00007fff8cd9f57e HALB_MachPort::SendMessageWithReply(unsigned int, unsigned int, unsigned int, unsigned int, mach_msg_header_t*, bool, unsigned int) + 98
3 com.apple.audio.CoreAudio 0x00007fff8cd9f50c HALB_MachPort::SendSimpleMessageWithSimpleReply(unsigned int, unsigned int, int, int&, bool, unsigned int) + 42
4 com.apple.audio.CoreAudio 0x00007fff8cd9daa9 HALC_ProxyIOContext::IOWorkLoop() + 965
5 com.apple.audio.CoreAudio 0x00007fff8cd9d612 HALC_ProxyIOContext::IOThreadEntry(void*) + 88
6 com.apple.audio.CoreAudio 0x00007fff8cd9d4e3 HALB_IOThread::Entry(void*) + 157
7 libsystem_pthread.dylib 0x00007fff8f86d268 _pthread_body + 131
8 libsystem_pthread.dylib 0x00007fff8f86d1e5 _pthread_start + 176
9 libsystem_pthread.dylib 0x00007fff8f86b41d thread_start + 13

Thread 9:
0 libsystem_kernel.dylib 0x00007fff95df694a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff8f86b40d start_wqthread + 13

Thread 10:

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x18858b4800000000 rbx: 0x00007fa37b844358 rcx: 0x0000000000c82cb1 rdx: 0x0000000101c9e1ca
rdi: 0x00007fa37b844348 rsi: 0x00007fa381892e20 rbp: 0x00007fa37b5f6860 rsp: 0x00007fff5f1fa980
r8: 0x0000000000000000 r9: 0x000000010b2fc0b0 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000101cce514 r13: 0x00007fa37b844348 r14: 0x00000001015e0009 r15: 0x00007fa37b5fe800
rip: 0x0000000101109128 rfl: 0x0000000000010206 cr2: 0x00007fa37b106000

Logical CPU: 0
Error Code: 0x00000000
Trap Number: 13

Binary Images:
0x100a03000 - 0x102021fff +org.cocos2dx.testingFb (1.0 - 1) <908D612D-BB0A-304B-9D36-BD5211F934FC> /Users/USER/Documents/*/BlockRunner Mac.app/Contents/MacOS/BlockRunner Mac
0x102bd7000 - 0x102bfdff7 com.apple.audio.OpenAL (1.8 - 1.8) /System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL
0x10aaa6000 - 0x10aaa6ff5 +cl_kernels (???) cl_kernels
0x10aaac000 - 0x10aaacfef +cl_kernels (???) cl_kernels
0x10c6da000 - 0x10c6defff com.apple.audio.AppleHDAHALPlugIn (272.18 - 272.18) /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bundle/Contents/MacOS/AppleHDAHALPlugIn
0x10c82c000 - 0x10c912fef unorm8_bgra.dylib (2.4.5) <7BFE1DA8-2BE4-3B4F-8A7F-F3D6D4D36ADA> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/ImageFormats/unorm8_bgra.dylib
0x10cf00000 - 0x10d11dff3 com.apple.audio.units.Components (1.12 - 1.12) /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
0x10d2da000 - 0x10d58efff com.apple.audio.codecs.Components (5.0 - 5.0) /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs
0x123400000000 - 0x123400508fff com.apple.driver.AppleIntelHD5000GraphicsGLDriver (10.6.20 - 10.0.6) /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsGLDriver
0x7fff67e17000 - 0x7fff67e4d837 dyld (353.2.1) <65DCCB06-339C-3E25-9702-600A28291D0E> /usr/lib/dyld
0x7fff8afa0000 - 0x7fff8afb2ff7 libsasl2.2.dylib (194.1) <35371406-75EF-304A-A073-956C40373555> /usr/lib/libsasl2.2.dylib
0x7fff8afb3000 - 0x7fff8afb3fff com.apple.Cocoa (6.8 - 21) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x7fff8afb4000 - 0x7fff8afb6ffb libCGXType.A.dylib (779.11) <51607E77-F183-3CC2-A78C-238AFBDF6262> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
0x7fff8b218000 - 0x7fff8b21cff7 libGIF.dylib (1237) <8A40FED5-FA90-3E76-A359-CD974C43A962> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
0x7fff8b25d000 - 0x7fff8b2f1fff com.apple.ink.framework (10.9 - 213) <8E029630-1530-3734-A446-13353F0E7AC5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x7fff8b8b0000 - 0x7fff8b8beff7 com.apple.opengl (11.1.2 - 11.1.2) <864B35BF-1E76-382B-8D5F-38C7282621E6> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
0x7fff8b8c4000 - 0x7fff8bbdffcf com.apple.vImage (8.0 - 8.0) <1183FE6A-FDB6-3B3B-928D-50C7909F2308> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
0x7fff8bbe9000 - 0x7fff8bc03ff7 libextension.dylib (55.2) <3BB019CA-199A-36AC-AA22-14B562138545> /usr/lib/libextension.dylib
0x7fff8c3bc000 - 0x7fff8c46bfe7 libvMisc.dylib (516) <6739E390-46E7-3BFA-9B69-B278562326E6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x7fff8c46d000 - 0x7fff8c50ce27 com.apple.AppleJPEG (1.0 - 1) <6627DDD9-A8FE-3968-B23A-B6A29AA3919A> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
0x7fff8c50d000 - 0x7fff8c53dfff com.apple.GSS (4.0 - 2.0) /System/Library/Frameworks/GSS.framework/Versions/A/GSS
0x7fff8c53e000 - 0x7fff8c53efff com.apple.Accelerate (1.10 - Accelerate 1.10) <2C8AF258-4F11-3BEC-A826-22D7199B3975> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x7fff8c55c000 - 0x7fff8c587fff libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
0x7fff8c588000 - 0x7fff8c6cefef libsqlite3.dylib (168) <8B78BED1-7B9B-3943-80DC-0871015AEAC4> /usr/lib/libsqlite3.dylib
0x7fff8c6cf000 - 0x7fff8c6d0ff7 libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
0x7fff8c6d5000 - 0x7fff8c721fff com.apple.corelocation (1486.17 - 1615.24) <8825B3E2-E053-3E01-AE31-793443962D06> /System/Library/Frameworks/CoreLocation.framework/Versions/A/CoreLocation
0x7fff8ca6c000 - 0x7fff8cbcdfff com.apple.avfoundation (2.0 - 889.210) <0CFF0D47-7C6B-388E-87BD-404F43A6B1E0> /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation
0x7fff8cbce000 - 0x7fff8cbe8fff com.apple.AppleVPAFramework (1.4.3 - 1.4.3) /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
0x7fff8ccc3000 - 0x7fff8ccc5fff libsystem_sandbox.dylib (358.20.5) <4CF77128-6BE0-3958-B646-707FA9CE61B2> /usr/lib/system/libsystem_sandbox.dylib
0x7fff8cd68000 - 0x7fff8cd73ff7 com.apple.CrashReporterSupport (10.10 - 631) /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
0x7fff8cd74000 - 0x7fff8cdc5fff com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <450293F7-DAE7-3DD0-8F7C-71FC2FD72627> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x7fff8cdc6000 - 0x7fff8d2b6fff com.apple.MediaToolbox (1.0 - 1562.235) <9813E9A6-5BD6-3E56-9D20-0023703D5096> /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox
0x7fff8d2b8000 - 0x7fff8d32efe7 libcorecrypto.dylib (233.1.2) /usr/lib/system/libcorecrypto.dylib
0x7fff8d344000 - 0x7fff8d3b2ffb com.apple.Heimdal (4.0 - 2.0) <7697A837-98B8-3BDB-A7D2-8ED4C9ABC510> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
0x7fff8d3b3000 - 0x7fff8d40efe7 libTIFF.dylib (1237) <6C8BBCA3-C233-3941-ACF9-F06C5E6EE2E6> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
0x7fff8d40f000 - 0x7fff8d51eff3 com.apple.desktopservices (1.9.3 - 1.9.3) /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x7fff8d51f000 - 0x7fff8d52cfff libxar.1.dylib (255) <7CD69BB5-97BA-3858-8A8B-2F33F129E6E7> /usr/lib/libxar.1.dylib
0x7fff8d52d000 - 0x7fff8d8c5ff7 com.apple.CoreFoundation (6.9 - 1153.18) <5C0892B8-9691-341F-9279-CA3A74D59AA0> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fff8d9c6000 - 0x7fff8d9fffff com.apple.AirPlaySupport (2.0 - 215.18) <6AF8E973-3643-3FEE-AA8F-541B9F093EEE> /System/Library/PrivateFrameworks/AirPlaySupport.framework/Versions/A/AirPlaySupport
0x7fff8da01000 - 0x7fff8da0cfff libGL.dylib (11.1.2) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x7fff8da0d000 - 0x7fff8da1efff libcmph.dylib (1) <46EC3997-DB5E-38AE-BBBB-A035A54AD3C0> /usr/lib/libcmph.dylib
0x7fff8da23000 - 0x7fff8da2aff7 libCGCMS.A.dylib (779.11) <5D33FF8C-AC74-3B7B-A602-4AA470FEAF79> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGCMS.A.dylib
0x7fff8da34000 - 0x7fff8db18fff libcrypto.0.9.8.dylib (52.20.2) <977DA067-2588-3BF8-A7B2-F08FC6E9088F> /usr/lib/libcrypto.0.9.8.dylib
0x7fff8db19000 - 0x7fff8db1afff com.apple.TrustEvaluationAgent (2.0 - 25) <2D61A2C3-C83E-3A3F-8EC1-736DBEC250AB> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
0x7fff8db1b000 - 0x7fff8db82ffb com.apple.datadetectorscore (6.0 - 396.1.1) <9B0B3198-DDBE-36C0-8BA9-3EC89C725282> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
0x7fff8dbc8000 - 0x7fff8dbe3ff7 libCRFSuite.dylib (34) /usr/lib/libCRFSuite.dylib
0x7fff8dbe4000 - 0x7fff8dee9ff3 com.apple.HIToolbox (2.1.1 - 758.7) <6711FAA9-904A-3B49-9665-FC8D13B93C42> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x7fff8dfea000 - 0x7fff8dff2fff libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
0x7fff8dff3000 - 0x7fff8e06bff7 com.apple.SystemConfiguration (1.14 - 1.14) <06A8405D-53BA-30A9-BA8A-222099176091> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x7fff8e06c000 - 0x7fff8e06efff libsystem_configuration.dylib (699.1.5) <20F3B077-179D-3CB0-A3C1-C8602D53B4DB> /usr/lib/system/libsystem_configuration.dylib
0x7fff8e08b000 - 0x7fff8e0befff com.apple.MediaKit (16 - 757.2) <2912E5C2-085F-3FE2-8531-23B6E894B0F0> /System/Library/PrivateFrameworks/MediaKit.framework/Versions/A/MediaKit
0x7fff8e0bf000 - 0x7fff8e0c4fff libsystem_stats.dylib (163.20.16) /usr/lib/system/libsystem_stats.dylib
0x7fff8e0c5000 - 0x7fff8e0ceff7 libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
0x7fff8e0cf000 - 0x7fff8e0feff7 com.apple.CoreServicesInternal (221.7.2 - 221.7.2) /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal
0x7fff8e132000 - 0x7fff8e132ff7 libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
0x7fff8e13b000 - 0x7fff8e18cff7 com.apple.AppleVAFramework (5.0.31 - 5.0.31) /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
0x7fff8e1ba000 - 0x7fff8e1f2fff com.apple.RemoteViewServices (2.0 - 99) /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
0x7fff8e1f3000 - 0x7fff8e1f6ff7 libdyld.dylib (353.2.1) <9EACCA38-291D-38CC-811F-7E9D1451E2D3> /usr/lib/system/libdyld.dylib
0x7fff8e24b000 - 0x7fff8e250ffb libheimdal-asn1.dylib (398.10.1) /usr/lib/libheimdal-asn1.dylib
0x7fff8e279000 - 0x7fff8e27bfff libCVMSPluginSupport.dylib (11.1.2) <6EFEC4A6-2EAC-3C27-820E-C28BE71B9FCB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
0x7fff8e283000 - 0x7fff8e2c9ff7 libauto.dylib (186) /usr/lib/libauto.dylib
0x7fff8e2ca000 - 0x7fff8e2f5ff3 libarchive.2.dylib (30) <8CBB4416-EBE9-3574-8ADC-44655D245F39> /usr/lib/libarchive.2.dylib
0x7fff8e2f6000 - 0x7fff8e2fbff7 com.apple.MediaAccessibility (1.0 - 61) <00A3E0B6-79AC-387E-B282-AADFBD5722F6> /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility
0x7fff8e2fc000 - 0x7fff8e37dff7 com.apple.CoreUtils (1.1 - 110.1) /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils
0x7fff8e380000 - 0x7fff8e381fff liblangid.dylib (117) /usr/lib/liblangid.dylib
0x7fff8e382000 - 0x7fff8e3c2ff7 libGLImage.dylib (11.1.2) <260A4BF3-DC45-369C-A0CD-B667F9D17179> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x7fff8e3fe000 - 0x7fff8e406fff libMatch.1.dylib (24) /usr/lib/libMatch.1.dylib
0x7fff8e407000 - 0x7fff8e412ff7 libkxld.dylib (2782.20.48) <28EF8328-E3E2-336A-974B-FB1BF119D55A> /usr/lib/system/libkxld.dylib
0x7fff8e413000 - 0x7fff8e60d46f libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib
0x7fff8e688000 - 0x7fff8e6a2ff3 com.apple.Ubiquity (1.3 - 313) /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
0x7fff8e6a3000 - 0x7fff8e6defff com.apple.QD (301 - 301) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x7fff8e6df000 - 0x7fff8e6e6fff com.apple.network.statistics.framework (1.2 - 1) <61B311D1-7F15-35B3-80D4-99B8BE90ACD9> /System/Library/PrivateFrameworks/NetworkStatistics.framework/Versions/A/NetworkStatistics
0x7fff8e777000 - 0x7fff8e7a0ffb libxslt.1.dylib (13) /usr/lib/libxslt.1.dylib
0x7fff8e7a1000 - 0x7fff8e7acff7 com.apple.speech.synthesis.framework (5.3.3 - 5.3.3) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x7fff8f14d000 - 0x7fff8f1d1fff com.apple.PerformanceAnalysis (1.0 - 1) <599AED3E-B689-3C40-8B91-93AD36C97658> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
0x7fff8f1d2000 - 0x7fff8f1fcfff GLRendererFloat (11.1.2) <87953360-E0E4-3523-8EC3-2062C26C7FD2> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLRendererFloat.bundle/GLRendererFloat
0x7fff8f1fd000 - 0x7fff8f27bfff com.apple.CoreServices.OSServices (640.4 - 640.4) <20121A5E-7AB5-3624-8CF0-3562F97C8A95> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x7fff8f27c000 - 0x7fff8f280fff libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
0x7fff8f2b4000 - 0x7fff8f2b4fff com.apple.audio.units.AudioUnit (1.12 - 1.12) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x7fff8f2b5000 - 0x7fff8f2befff libGFXShared.dylib (11.1.2) <0BAF2EA8-3BC4-3BF4-ABB6-A6E0A1F3F6A5> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
0x7fff8f2e3000 - 0x7fff8f337fff libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
0x7fff8f376000 - 0x7fff8f385fff com.apple.LangAnalysis (1.7.0 - 1.7.0) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x7fff8f401000 - 0x7fff8f402ffb libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
0x7fff8f403000 - 0x7fff8f433fff libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
0x7fff8f43e000 - 0x7fff8f4feff7 com.apple.backup.framework (1.6.4 - 1.6.4) /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
0x7fff8f507000 - 0x7fff8f50bfff com.apple.IOAccelerator (156.14 - 156.14) <5D593364-14AA-3DDA-96FE-B9CF4FE09143> /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator
0x7fff8f50c000 - 0x7fff8f61eff7 libvDSP.dylib (516) <151B3CCB-77D3-3715-A3D0-7C74CD5C7FFC> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x7fff8f642000 - 0x7fff8f7f1fff GLEngine (11.1.2) <68FDFD73-F15C-3460-9984-10F5DEF79907> /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine
0x7fff8f7f2000 - 0x7fff8f83dfff com.apple.CloudDocs (1.0 - 321.6) <4C54EDB7-4377-3722-8C47-F3C3D260FCBA> /System/Library/PrivateFrameworks/CloudDocs.framework/Versions/A/CloudDocs
0x7fff8f83e000 - 0x7fff8f869fff com.apple.DictionaryServices (1.2 - 229) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
0x7fff8f86a000 - 0x7fff8f873fff libsystem_pthread.dylib (105.10.1) <3103AA7F-3BAE-3673-9649-47FFD7E15C97> /usr/lib/system/libsystem_pthread.dylib
0x7fff8faf4000 - 0x7fff8faffff7 libcsfde.dylib (471.20.7) <44E51549-CECC-3C7B-867B-01901CA9C756> /usr/lib/libcsfde.dylib
0x7fff8fb00000 - 0x7fff8fb16ff7 libsystem_asl.dylib (267) /usr/lib/system/libsystem_asl.dylib
0x7fff8fb17000 - 0x7fff8fb31ff7 liblzma.5.dylib (7) <1D03E875-A7C0-3028-814C-3C27F7B7C079> /usr/lib/liblzma.5.dylib
0x7fff8fbb5000 - 0x7fff8fbbdffb libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
0x7fff8fbbe000 - 0x7fff8ffeefff com.apple.vision.FaceCore (3.1.6 - 3.1.6) /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
0x7fff9006e000 - 0x7fff90187ffb com.apple.CoreText (352.0 - 454.6) /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
0x7fff9018e000 - 0x7fff902b2ff7 com.apple.LaunchServices (644.56 - 644.56) <20AABB1C-9319-3E4D-A024-51B0DD5FCD3B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x7fff903d3000 - 0x7fff90419ff7 libFontRegistry.dylib (134.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
0x7fff9045b000 - 0x7fff90481fff com.apple.ChunkingLibrary (2.1 - 163.6) <29D4CB95-42EF-34C6-8182-BDB6F7BB1E79> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
0x7fff90482000 - 0x7fff90610fff libBLAS.dylib (1128) <497912C1-A98E-3281-BED7-E9C751552F61> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x7fff9068d000 - 0x7fff9077fff7 libiconv.2.dylib (42) <2A06D02F-8B76-3864-8D96-64EF5B40BC6C> /usr/lib/libiconv.2.dylib
0x7fff90780000 - 0x7fff90965ff7 libicucore.A.dylib (531.48) <3CD34752-B1F9-31D2-865D-B5B0F0BE3111> /usr/lib/libicucore.A.dylib
0x7fff90966000 - 0x7fff90983fff com.apple.MultitouchSupport.framework (263.9.1 - 263.9.1) <6ABD3AE2-DF6A-3AB2-994B-9C0FB42CE2B7> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
0x7fff90984000 - 0x7fff90a22fff com.apple.Metadata (10.7.0 - 917.35) <8CBD1D32-4F4B-3F9A-AC65-76F2B5376FBF> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
0x7fff90a23000 - 0x7fff90a2dff7 com.apple.NetAuth (5.2 - 5.2) <2BBD749A-8E18-35B8-8E48-A90347C1CCA7> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
0x7fff90cad000 - 0x7fff90cd5fff libRIP.A.dylib (779.11) <88434DA0-B6B8-304A-9DC0-41D3947E8734> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x7fff90cd6000 - 0x7fff90dc6fef libJP2.dylib (1237) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
0x7fff90dc7000 - 0x7fff90ebbfff libFontParser.dylib (134.2) <9F57B025-AB9C-31DD-9D54-2D7AB1298885> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
0x7fff90ebc000 - 0x7fff90f23ff7 com.apple.framework.CoreWiFi (3.0 - 300.4) <19269C1D-EB29-384A-83F3-7DDDEB7D9DAD> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
0x7fff90f24000 - 0x7fff90fc6fff com.apple.Bluetooth (4.3.4 - 4.3.4f4) /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
0x7fff90fc7000 - 0x7fff91053ff7 libsystem_c.dylib (1044.10.1) <86FBED7A-F2C8-3591-AD6F-486DD57E6B6A> /usr/lib/system/libsystem_c.dylib
0x7fff910a0000 - 0x7fff913d3ff7 libmecabra.dylib (666.7) <0ED8AE5E-7A5B-34A6-A2EE-2B852E60E1E2> /usr/lib/libmecabra.dylib
0x7fff913d4000 - 0x7fff91f55ff7 com.apple.AppKit (6.9 - 1347.57) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7fff91f56000 - 0x7fff91f6dff7 libLinearAlgebra.dylib (1128) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
0x7fff92057000 - 0x7fff920a1ff7 com.apple.HIServices (1.22 - 522.1) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x7fff920a2000 - 0x7fff9210eff3 com.apple.MMCS (1.3 - 327.5) /System/Library/PrivateFrameworks/MMCS.framework/Versions/A/MMCS
0x7fff9210f000 - 0x7fff9210ffff com.apple.CoreServices (62 - 62) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x7fff92110000 - 0x7fff92138fff libxpc.dylib (559.20.9) /usr/lib/system/libxpc.dylib
0x7fff9227f000 - 0x7fff9229bfff com.apple.GenerationalStorage (2.0 - 209.11) <9FF8DD11-25FB-3047-A5BF-9415339B3EEC> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
0x7fff9229c000 - 0x7fff9229ffff com.apple.IOSurface (97.4 - 97.4) /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
0x7fff922a0000 - 0x7fff9260bfff com.apple.VideoToolbox (1.0 - 1562.235) <0E996B8C-BE1C-3749-ACCA-DACBC89AFABB> /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox
0x7fff9260c000 - 0x7fff92634fff libsystem_info.dylib (459.20.1) /usr/lib/system/libsystem_info.dylib
0x7fff9279d000 - 0x7fff92baaff7 libLAPACK.dylib (1128) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x7fff92bab000 - 0x7fff92db8ff3 com.apple.CFNetwork (720.3.13 - 720.3.13) <69E15385-5784-3912-88F6-03B16F1C1A5C> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x7fff9377d000 - 0x7fff93782ff7 libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
0x7fff93783000 - 0x7fff937a8fff libPng.dylib (1237) /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
0x7fff937ab000 - 0x7fff93866ff7 com.apple.DiscRecording (9.0 - 9000.4.2) <4655B4B8-523D-3AE6-92A0-8486A2258B3B> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
0x7fff93867000 - 0x7fff939ceffb com.apple.audio.toolbox.AudioToolbox (1.12 - 1.12) <5678FC94-456A-3F5F-BA9A-10EB6E462997> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x7fff939cf000 - 0x7fff93b5efff libGLProgrammability.dylib (11.1.2) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x7fff93b5f000 - 0x7fff93b72ff7 com.apple.CoreBluetooth (1.0 - 1) <8D7BA9BA-EB36-307A-9119-0B3D9732C953> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
0x7fff93b73000 - 0x7fff93b94fff com.apple.framework.Apple80211 (10.3 - 1030.71.6) /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
0x7fff93b95000 - 0x7fff93c2aff7 com.apple.ColorSync (4.9.0 - 4.9.0) <9150C2B7-2E6E-3509-96EA-7B3F959F049E> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x7fff93c2b000 - 0x7fff93c4bfff com.apple.IconServices (47.1 - 47.1) /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
0x7fff93c4c000 - 0x7fff93f4effb com.apple.GeoServices (1.0 - 1077.0.18) <2BBF8B44-DD46-3432-8C84-6D6AA004C233> /System/Library/PrivateFrameworks/GeoServices.framework/Versions/A/GeoServices
0x7fff94321000 - 0x7fff9435cfff com.apple.Symbolication (1.4 - 56045) /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
0x7fff9435d000 - 0x7fff9462cff3 com.apple.CoreImage (10.3.4) /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage

Ok i have narrowed it down its causing an exception with the scheduler!
This is the call stack from Xcode

It’s probably caused by your update logic in your game, search for issues in update functions that you scheduled using scheduleUpdate

Thanks for your response i have narrowed it down that it only happens when i press the restart button this is my code for the restart

case 5:
	this.playerRef.moveForCollision();
	GameVars.isAccelLvl = false;
	cc.director.resume();
	cc.audioEngine.playEffect(res.buttonClick_mp3);
	cc.director.runScene(new gameSceneLvl5());
	break;

I dont know if this is the corret way to restart im just re-runnig a new scene again?!
Could it be something to do with on the scene being replaced its removing something from the new scene?
Or the garbage collection could be slow and it removes objects from the new scene?
Thanks so much for your help!

I have narrowed it down again I think it is coming from this class somewhere can you see an issues with this class that could be causing an issue?

var SpinningSaw = cc.Layer.extend

space:null,
sprite:null,
body:null,
body2:null,
shape2:null,
chainSprite:null,
shape:null,

ctor:function ( space, pos, type) 
{
	this._super();
	this.space = space;

	var bodySize = 50 * GameVars.scaleFactor;
	var radius = 60 * GameVars.scaleFactor;
	var offSet = 200 * GameVars.scaleFactor;
	var pivotPoint = 150 * GameVars.scaleFactor;

	this.body = new cp.Body(Infinity, Infinity);
	this.body.p = cc.p(pos.x,pos.y);

	var shape = new cp.BoxShape(this.body, bodySize, bodySize);
	shape.setCollisionType(0);
	var bodySprite = cc.Sprite(res.metalBox_png);
	this.addChild(bodySprite,5); 
	bodySprite.setPosition(this.body.p.x,this.body.p.y);
	shape.image = bodySprite;
	this.space.addShape(shape);

	this.body2 = new cp.Body(1,cp.momentForCircle(1, bodySize, bodySize, cp.vzero));
	this.body2.p = cc.p(pos.x - offSet,pos.y);
	this.space.addBody(this.body2);

	this.shape2 = new cp.CircleShape(this.body2,radius,cp.vzero);
	var bodySprite = cc.Sprite("#blade.png");
	this.addChild(bodySprite,5); 
	bodySprite.setPosition(this.body2.p.x,this.body2.p.y);
	this.shape2.image = bodySprite;
	this.shape2.setAsSensor = true;
	this.shape2.setCollisionType(SpriteTag.saw);
	this.space.addShape(this.shape2);

	var sprite_action = cc.RepeatForever.create(cc.RotateBy.create(0.6, 360));
	this.shape2.image.runAction(sprite_action);

	var constraint = cp.PivotJoint(this.body, this.body2, cp.v(0, 0), cp.v(-offSet, 0));
	this.space.addConstraint(constraint);

	if(type == 2)
	{
		var simpleMotor = new cp.SimpleMotor(this.body, this.body2, -Math.PI);
	}
	else
	{
		var simpleMotor = new cp.SimpleMotor(this.body, this.body2, Math.PI);
	}
	//this.space.addConstraint(simpleMotor);

	this.chainSprite = new cc.Sprite(res.chain_png);
	this.chainSprite.x = this.body.p.x;
	this.chainSprite.y = this.body.p.y;
	this.chainSprite.setScale(0.3 * GameVars.scaleFactor);
	this.chainSprite.setRotation(90);
	this.chainSprite.setAnchorPoint(cc.p(0, -0.01));
	this.addChild(this.chainSprite,0);
	
	//this.scheduleUpdate();
	
},

update:function()
{
	cc.log("Update Saw");
	
	this.shape2.image.x = this.body2.p.x;
	this.shape2.image.y = this.body2.p.y;

	var deltaY = this.body2.p.y - this.body.p.y;
	var deltaX = this.body2.p.x - this.body.p.x;
	var angle = Math.atan2(deltaY, deltaX) * 180 / Math.PI;
	angle -= 90;
	this.chainSprite.setRotation(-angle);
}

Ok guys im really really stuck with this have spent way to many hours on it so far really need some help have a big deadline coming up
Here are the three classes conserned
BaseLevel.js all levels inherit this
http://pastebin.com/HVnUcMMv

Pause Menu this is the restart case 5 in the switch statement
http://pastebin.com/KNsCtmXc

Level five this is where we run our scene from need to see why when i restart or re-enter the level it randomly crashes with the error above it says its scheduler but i just cant see whats going on
http://pastebin.com/9PVL66qM

Thanks guys in advance Really need the help haha

Is the case 5 code located in a collision detection callback ?
Be noticed that do not do anything that may delete any physic object/shape in a collision callback, in this case, run a new scene may effectively do something wrong. The suggestion is to scheduleOnce the scene transition logic.

Otherwise, I didn’t see any problem in this update function.

You can try to remove the logic in update functions one by one to see which one caused the problem.

Thank you for your time think i found where the issue is its the spinning saw class I create a static body for the centre of the of the rotation but when this object deletes theres still a refrence to the static body but because you dont add the static body to the space i cant remove it in onExit() how can i fix this issue
Heres the Class

var SpinningSaw = cc.Layer.extend

space:null,
body:null,
body2:null,
shape:null,
shape2:null,
chainSprite:null,

ctor:function ( space, pos, type) 
{
	this._super();
	
	this.space = space;
	var bodySize = 50 * GameVars.scaleFactor;
	var radius = 60 * GameVars.scaleFactor;
	var offSet = 200 * GameVars.scaleFactor;
	var pivotPoint = 150 * GameVars.scaleFactor;

	this.body = new cp.Body(Infinity, Infinity);
	this.body.p = cc.p(pos.x,pos.y);
	this.shape = new cp.BoxShape(this.body, bodySize, bodySize);
	this.shape.setCollisionType(0);
	var bodySprite = cc.Sprite(res.metalBox_png);
	this.addChild(bodySprite,5); 
	bodySprite.setPosition(this.body.p.x,this.body.p.y);
	this.shape.image = bodySprite;
	this.space.addShape(this.shape);

	this.body2 = new cp.Body(1,cp.momentForCircle(1, bodySize, bodySize, cp.vzero));
	this.body2.p = cc.p(pos.x - offSet,pos.y);
	this.space.addBody(this.body2);

	this.shape2 = new cp.CircleShape(this.body2,radius,cp.vzero);
	var bodySprite = cc.Sprite("#blade.png");
	this.addChild(bodySprite,5); 
	bodySprite.setPosition(this.body2.p.x,this.body2.p.y);
	this.shape2.image = bodySprite;
	this.shape2.setAsSensor = true;
	this.shape2.setCollisionType(SpriteTag.saw);
	this.space.addShape(this.shape2);

	var sprite_action = cc.RepeatForever.create(cc.RotateBy.create(0.6, 360));
	this.shape2.image.runAction(sprite_action);

	var constraint = cp.PivotJoint(this.body, this.body2, cp.v(0, 0), cp.v(-offSet, 0));
	this.space.addConstraint(constraint);

	if(type == 2)
	{
		var simpleMotor = new cp.SimpleMotor(this.body, this.body2, -Math.PI);
	}
	else
	{
		var simpleMotor = new cp.SimpleMotor(this.body, this.body2, Math.PI);
	}
	this.space.addConstraint(simpleMotor);

	this.chainSprite = new cc.Sprite(res.chain_png);
	this.chainSprite.x = this.body.p.x;
	this.chainSprite.y = this.body.p.y;
	this.chainSprite.setScale(0.3 * GameVars.scaleFactor);
	this.chainSprite.setRotation(90);
	this.chainSprite.setAnchorPoint(cc.p(0, -0.01));
	this.addChild(this.chainSprite,0);
	
	this.scheduleUpdate();
},

update:function()
{
	this.shape2.image.x = this.body2.p.x;
	this.shape2.image.y = this.body2.p.y;

	var deltaY = this.body2.p.y - this.body.p.y;
	var deltaX = this.body2.p.x - this.body.p.x;
	var angle = Math.atan2(deltaY, deltaX) * 180 / Math.PI;
	angle -= 90;
	this.chainSprite.setRotation(-angle);
},

onExit:function()
{
	cc.log("Exit Saw");
	this.space.removeShape(this.shape);
	this.space.removeShape(this.shape2);
	this.space.removeBody(this.body2);
	this._super();
}

If i comment out the update for moving the sprites it works fine it could be somehow still referencing the body or shape after its been deleted?
Works too if i never add the saw to the layer just create the bodies its fine