iOS Universal build - Game crashes on iPad2 only

Discussion in 'iOS Programming' started by ketan.sakariya, Oct 3, 2011.

  1. ketan.sakariya macrumors newbie

    Joined:
    Oct 3, 2011
    #1
    The game we developed using Cocos2D-iPhone engine crashes on iPad2 (with latest iOS 4.3.5 also). The game is a universal application and is working properly on iPhone3GS, iPhone4, iPod3, iPod4 and iPad1.
    We have cleared all the analyzer results and removed memory leaks as much as we can.

    Game crashes randomly at any place in the game and even on Menu. crash log on devices is as below.


    Can anyone help out ? It always crashes with this log.


    Date/Time: 2011-10-03 10:33:19.195 +0530
    OS Version: iPhone OS 4.3.5 (8L1)
    Report Version: 104

    Exception Type: EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000
    Crashed Thread: 0

    Thread 0 name: Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0 ??? 0000000000 0 + 0
    1 libdispatch.dylib 0x34ec10e8 _dispatch_main_queue_callback_4CF$VARIANT$mp + 284
    2 CoreFoundation 0x3498f936 __CFRunLoopRun + 1330
    3 CoreFoundation 0x3491febe CFRunLoopRunSpecific + 226
    4 CoreFoundation 0x3491fdc6 CFRunLoopRunInMode + 54
    5 GraphicsServices 0x3354641a GSEventRunModal + 110
    6 GraphicsServices 0x335464c6 GSEventRun + 58
    7 UIKit 0x3357dd64 -[UIApplication _run] + 400
    8 UIKit 0x3357b802 UIApplicationMain + 666
    9 AC_Rearmed 0x00003cc4 main (main.m:13)
    10 AC_Rearmed 0x00003c98 start + 36

    Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
    Thread 1:
    0 libsystem_kernel.dylib 0x31d1ffbc kevent + 24
    1 libdispatch.dylib 0x34ebfed4 _dispatch_mgr_invoke + 744
    2 libdispatch.dylib 0x34ec0f3a _dispatch_queue_invoke + 70
    3 libdispatch.dylib 0x34ec04ec _dispatch_worker_thread2 + 228
    4 libsystem_c.dylib 0x32ae658a _pthread_wqthread + 258
    5 libsystem_c.dylib 0x32ae6bbc start_wqthread + 0

    Thread 2 name: WebThread
    Thread 2:
    0 libsystem_kernel.dylib 0x31d1cc00 mach_msg_trap + 20
    1 libsystem_kernel.dylib 0x31d1c758 mach_msg + 44
    2 CoreFoundation 0x3498d2b8 __CFRunLoopServiceMachPort + 88
    3 CoreFoundation 0x3498f562 __CFRunLoopRun + 350
    4 CoreFoundation 0x3491febc CFRunLoopRunSpecific + 224
    5 CoreFoundation 0x3491fdc4 CFRunLoopRunInMode + 52
    6 WebCore 0x32b4227e RunWebThread(void*) + 382
    7 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    8 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 3 name: AURemoteIO::IOThread
    Thread 3:
    0 libsystem_kernel.dylib 0x31d1cc00 mach_msg_trap + 20
    1 libsystem_kernel.dylib 0x31d1c758 mach_msg + 44
    2 AudioToolbox 0x300ce824 AURemoteIO::IOThread::Run() + 80
    3 AudioToolbox 0x300d4342 AURemoteIO::IOThread::Entry(void*) + 2
    4 AudioToolbox 0x3000948a CAPThread::Entry(CAPThread*) + 138
    5 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    6 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 4:
    0 libsystem_kernel.dylib 0x31d1cc00 mach_msg_trap + 20
    1 libsystem_kernel.dylib 0x31d1c758 mach_msg + 44
    2 CoreFoundation 0x3498d2b8 __CFRunLoopServiceMachPort + 88
    3 CoreFoundation 0x3498f562 __CFRunLoopRun + 350
    4 CoreFoundation 0x3491febc CFRunLoopRunSpecific + 224
    5 CoreFoundation 0x3491fdc4 CFRunLoopRunInMode + 52
    6 Foundation 0x35f627f6 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
    7 Foundation 0x35f55382 -[NSThread main] + 38
    8 Foundation 0x35fc75c6 __NSThread__main__ + 966
    9 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    10 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 5 name: com.apple.CFSocket.private
    Thread 5:
    0 libsystem_kernel.dylib 0x31d1ec60 __select + 20
    1 CoreFoundation 0x349928f2 __CFSocketManager + 582
    2 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    3 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 6 name: com.apple.coremedia.player.async
    Thread 6:
    0 libsystem_kernel.dylib 0x31d1ed18 __semwait_signal + 24
    1 libsystem_c.dylib 0x32b0c860 _pthread_cond_wait + 756
    2 libsystem_c.dylib 0x32ab3eb2 pthread_cond_wait + 26
    3 CoreMedia 0x34e008f4 WaitOnCondition + 4
    4 CoreMedia 0x34e0083a FigSemaphoreWaitRelative + 66
    5 MediaToolbox 0x331f7a64 fpa_AsyncMovieControlThread + 48
    6 CoreMedia 0x34e1e4dc figThreadMain + 156
    7 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    8 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 7 name: com.apple.coremedia.player.async
    Thread 7:
    0 libsystem_kernel.dylib 0x31d1ed18 __semwait_signal + 24
    1 libsystem_c.dylib 0x32b0c860 _pthread_cond_wait + 756
    2 libsystem_c.dylib 0x32ab3eb2 pthread_cond_wait + 26
    3 CoreMedia 0x34e008f4 WaitOnCondition + 4
    4 CoreMedia 0x34e0083a FigSemaphoreWaitRelative + 66
    5 MediaToolbox 0x331f7a64 fpa_AsyncMovieControlThread + 48
    6 CoreMedia 0x34e1e4dc figThreadMain + 156
    7 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    8 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 8 name: com.apple.coremedia.player.remote
    Thread 8:
    0 libsystem_kernel.dylib 0x31d1cc00 mach_msg_trap + 20
    1 libsystem_kernel.dylib 0x31d1c758 mach_msg + 44
    2 MediaToolbox 0x331fc9b4 FigExpressNotificationThread + 36
    3 CoreMedia 0x34e1e4dc figThreadMain + 156
    4 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    5 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 9 name: AQClient
    Thread 9:
    0 libsystem_kernel.dylib 0x31d1cc00 mach_msg_trap + 20
    1 libsystem_kernel.dylib 0x31d1c758 mach_msg + 44
    2 CoreFoundation 0x3498d2b8 __CFRunLoopServiceMachPort + 88
    3 CoreFoundation 0x3498f562 __CFRunLoopRun + 350
    4 CoreFoundation 0x3491febc CFRunLoopRunSpecific + 224
    5 CoreFoundation 0x3491fdc4 CFRunLoopRunInMode + 52
    6 AudioToolbox 0x30009772 GenericRunLoopThread::RunLoop() + 30
    7 AudioToolbox 0x3001bea6 TRunLoop<AQClient>::Entry(void*) + 90
    8 AudioToolbox 0x3000948a CAPThread::Entry(CAPThread*) + 138
    9 libsystem_c.dylib 0x32ae530a _pthread_start + 242
    10 libsystem_c.dylib 0x32ae6bb4 thread_start + 0

    Thread 10:
    0 libsystem_kernel.dylib 0x31d1f3ec __workq_kernreturn + 8
    1 libsystem_c.dylib 0x32ae66d8 _pthread_wqthread + 592
    2 libsystem_c.dylib 0x32ae6bbc start_wqthread + 0

    Thread 0 crashed with ARM Thread State:
    r0: 0x01078e30 r1: 0x00000000 r2: 0x00000000 r3: 0x0000011d
    r4: 0x01078e30 r5: 0x3f05b540 r6: 0x3f05b540 r7: 0x2fdfec6c
    r8: 0x00000000 r9: 0x00000014 r10: 0x0111da60 r11: 0x00000000
    ip: 0x3f05a080 sp: 0x2fdfec68 lr: 0x31c118e7 pc: 0x00000000
    cpsr: 0x40080010

    Binary Images:
    0x1000 - 0x18ffff +AC_Rearmed armv7 <608079766d7ed658b7bc969660f5b8e2> /var/mobile/Applications/A8443937-5C6C-4EBB-AD71-2F9E6D683F65/AC_Rearmed.app/AC_Rearmed
    0x2fe00000 - 0x2fe25fff dyld armv7 <4d3190188cbf32a8a73f32a8b5bb7adf> /usr/lib/dyld
    0x30f2c000 - 0x30f5ffff QuickLook armv7 <29d2d981d1d6358381f5716ee37314b4> /System/Library/Frameworks/QuickLook.framework/QuickLook
    0x3105e000 - 0x31064fff StoreKit armv7 <0deee3e11c7632aab98ab3c026d41e41> /System/Library/Frameworks/StoreKit.framework/StoreKit
    0x3106b000 - 0x31099fff DataAccess armv7 <3a2e67aa1d8834b7a8fc2fbb56654b15> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
    0x3109a000 - 0x31140fff GameKit armv7 <844f6d90111f3e81961a723f557dd2a1> /System/Library/Frameworks/GameKit.framework/GameKit
    0x31165000 - 0x31224fff CFNetwork armv7 <b09e0d53de9f3bc8bde494780f3cdd4f> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
    0x31227000 - 0x312abfff AVFoundation armv7 <eeaf5f4f822436a5bd1655f536e69879> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
    0x312ac000 - 0x312aefff JPEGH1.videodecoder armv7 <eb3dd4c5195e35758a06be081139326f> /System/Library/VideoDecoders/JPEGH1.videodecoder
    0x313ad000 - 0x314adfff libGLProgrammability.dylib armv7 <c0e6b958279639c098136283c6ad06a8> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
    0x314ae000 - 0x314b1fff ActorKit armv7 <f7aa6cdd654231988aafcf448978f450> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
    0x314b2000 - 0x314f8fff CoreTelephony armv7 <af7d1e770e5a3ffd8834a57fb5d40557> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
    0x314fc000 - 0x31503fff AggregateDictionary armv7 <ab9777b39e8e3026ad64dc90323cad7e> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
    0x3152b000 - 0x31618fff libiconv.2.dylib armv7 <f4146ce07e3031ea8a81fa5516fd77d0> /usr/lib/libiconv.2.dylib
    0x31620000 - 0x31655fff AddressBook armv7 <3f2071a77bc134cd82065eef90d4082f> /System/Library/Frameworks/AddressBook.framework/AddressBook
    0x31656000 - 0x31777fff CoreGraphics armv7 <65f6c8701b563542820a26b0dfc4f6a4> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
    0x317af000 - 0x317e7fff IOKit armv7 <80ae313ad69d3363935c88e51a11862d> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x317e8000 - 0x31841fff EventKit armv7 <0d4e597ee229337183e96e921a72e30a> /System/Library/Frameworks/EventKit.framework/EventKit
    0x31912000 - 0x31a0cfff GameKitServices armv7 <a69426414c4634cda77409d5890696ac> /System/Library/PrivateFrameworks/GameKitServices.framework/GameKitServices
    0x31a0f000 - 0x31a4cfff CoreText armv7 <fb6a72faec2330c4b2cd33c2e9c59588> /System/Library/Frameworks/CoreText.framework/CoreText
    0x31a4d000 - 0x31a51fff libGFXShared.dylib armv7 <a0772a32cd8b3b9194bb0c29807c1c5b> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
    0x31a6e000 - 0x31abffff libsqlite3.dylib armv7 <8a41cc6a6d9332308bc415d27577fd24> /usr/lib/libsqlite3.dylib
    0x31bca000 - 0x31bccfff libAccessibility.dylib armv7 <d55f1553d14831a2a5435ae27ef75ef4> /usr/lib/libAccessibility.dylib
    0x31bcd000 - 0x31c05fff libCGFreetype.A.dylib armv7 <416c77100b453e3f838831c4c857f8c7> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
    0x31c06000 - 0x31c13fff libdispatch.dylib armv7 <9a0511ad5ebc3db898f1f49ed1a73d34> /usr/lib/system/libdispatch.dylib
    0x31c24000 - 0x31d09fff CoreFoundation armv7 <a8444f997111304c9571b3ff974b769c> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
    0x31d3d000 - 0x31d74fff Security armv7 <6599f42a910b3b31a0e1d98c883d61cb> /System/Library/Frameworks/Security.framework/Security
    0x31d75000 - 0x31d95fff PrintKit armv7 <e5a01ca9083a36afacc08611a398e2ad> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
    0x31df7000 - 0x31dfefff libbz2.1.0.dylib armv7 <0a082e1d475432959ba93aa3dbf7fb31> /usr/lib/libbz2.1.0.dylib
    0x32146000 - 0x3214efff MobileBluetooth armv7 <63f11756c4aa3262b2317ff3b8e2a977> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
    0x3214f000 - 0x3215ffff AppleVXD390Framework armv7 <e69308deaa1f39b2b2cf08ea29a97d9f> /System/Library/PrivateFrameworks/AppleVXD390Framework.framework/AppleVXD390Framework
    0x32162000 - 0x321e3fff libsystem_c.dylib armv7 <17ee3fe220c23b1f898d21ba25b2bcac> /usr/lib/system/libsystem_c.dylib
    0x32200000 - 0x32312fff MediaPlayer armv7 <da848c0745a637af81d7edd962a09324> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
    0x32313000 - 0x323b0fff AddressBookUI armv7 <e354aeb3d96e30338e90cc3638ffe81b> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
    0x323b1000 - 0x323e0fff SystemConfiguration armv7 <1d73b8a159363f96bb9c039655c5eae6> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
    0x323e8000 - 0x323f1fff MobileWiFi armv7 <03d98d5cf6383695aa7d8a88da52f410> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
    0x323f2000 - 0x323f2fff libCVMSPluginSupport.dylib armv7 <42d8aa2a31843a6e8bfff745644a7ba5> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
    0x323f3000 - 0x323f3fff Accelerate armv7 <7d5ad465049136afaa1f0d89aac600bc> /System/Library/Frameworks/Accelerate.framework/Accelerate
    0x32411000 - 0x32414fff CaptiveNetwork armv7 <fc834fd33a18341ea7506587ad895703> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
    0x32428000 - 0x3243dfff libresolv.9.dylib armv7 <e92cfbb83f7b330db19181e797bb3f7b> /usr/lib/libresolv.9.dylib
    0x3243e000 - 0x32449fff libz.1.dylib armv7 <ac706bee36593dc683fd5a96a389d72e> /usr/lib/libz.1.dylib
    0x32479000 - 0x32496fff libsystem_info.dylib armv7 <48016be86e3f3cd9aeee1c6590e1ac6f> /usr/lib/system/libsystem_info.dylib
    0x32498000 - 0x3249afff libgcc_s.1.dylib armv7 <a2631ac302f4310dae8367939e16b7c2> /usr/lib/libgcc_s.1.dylib
    0x324b2000 - 0x324e5fff AppSupport armv7 <0217468bd9f839229a47910b7816b3d5> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
    0x324e6000 - 0x324e9fff IOSurface armv7 <ad50e71624583d06b891344d832f9b08> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
    0x3250a000 - 0x3251ffff OpenAL armv7 <162722d7da273d649798b27ae0e4458c> /System/Library/Frameworks/OpenAL.framework/OpenAL
    0x3254e000 - 0x3255dfff MobileDeviceLink armv7 <563a09bcdb2f32369b1e22f53f58273a> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
    0x3255e000 - 0x3259afff libGLImage.dylib armv7 <9d97699e44ee3651ba4ac37e5adec35b> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
    0x3259b000 - 0x325e5fff libstdc++.6.dylib armv7 <e98c3fd72ba43d02aac24b08f7219eb7> /usr/lib/libstdc++.6.dylib
    0x325ea000 - 0x325f1fff libMobileGestalt.dylib armv7 <55f29184efcc3046bb833dd72a4487e1> /usr/lib/libMobileGestalt.dylib
    0x3260d000 - 0x3260efff MP4VH4.videodecoder armv7 <b931911b0ee439d8a4a176698bac259b> /System/Library/VideoDecoders/MP4VH4.videodecoder
    0x32655000 - 0x32679fff MediaControl armv7 <1cfc7d79f554357ab59eb69f9efebf07> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
    0x3267a000 - 0x3267bfff MP4VH2.videodecoder armv7 <c6870344155434598d9986111e155ce4> /System/Library/VideoDecoders/MP4VH2.videodecoder
    0x3267c000 - 0x32681fff libcopyfile.dylib armv7 <e32cf2d48a1f3060b372ca7623e4a12b> /usr/lib/system/libcopyfile.dylib
    0x32685000 - 0x3268bfff BluetoothManager armv7 <7861bc6128d93f72877df2f234434a47> /System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager
    0x32698000 - 0x3269dfff liblaunch.dylib armv7 <f5ccc8234aea3ebd9a88bd37f0fa23ae> /usr/lib/system/liblaunch.dylib
    0x326ca000 - 0x326cdfff MobileIcons armv7 <08e426f8a707388d8adda670bfed0c2e> /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
    0x32713000 - 0x32746fff iCalendar armv7 <34ce1957082f3518b5740ac33cfc92eb> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
    0x3278b000 - 0x32797fff GraphicsServices armv7 <ff78a9636e933f0dbd222f8d26209788> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
    0x32798000 - 0x327d7fff libSystem.B.dylib armv7 <64cf947dd8423eeeb677f81dd3eb2d9d> /usr/lib/libSystem.B.dylib
    0x327d8000 - 0x32801fff ContentIndex armv7 <ecd71782cd833360872b943ecc65d203> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
    0x3284c000 - 0x32880fff VideoToolbox armv7 <570c63dc3a273a5a8c9072fd5567f5c1> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
    0x328a7000 - 0x329affff CoreData armv7 <9843a401dd1d322383e3e40021cc8b95> /System/Library/Frameworks/CoreData.framework/CoreData
    0x329b0000 - 0x329b2fff Marco armv7 <53203fa831ab34f894f3a3811bf3917c> /System/Library/PrivateFrameworks/Marco.framework/Marco
    0x329e6000 - 0x329e9fff ArtworkCache armv7 <4863e321afee3ac5a3749e50cd926597> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
    0x329ea000 - 0x329f8fff OpenGLES armv7 <5a76beaeaa013f0cbf16e5cb154598ab> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
    0x32a0e000 - 0x32a2dfff Bom armv7 <b178e3efb4d733c694bd5a55e57a314f> /System/Library/
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    Bad acces I prefer to call it, means you are probably trying to use an object that is deallocated already, have u tried running in NSZombieEnabled = YES as an environment variable, that should shed a light :)
     
  3. ketan.sakariya thread starter macrumors newbie

    Joined:
    Oct 3, 2011
    #3
    Yes I tried that. But no help.
    It doesn't show any specific line.
    It just crashes on main thread in apple API call stack
     

Share This Page