Crash on Archive binary

Member
Posts: 241
Joined: 2008.07
Post: #1
I've got a project that builds, installs, and runs perfectly on an iPad using the developer certificate with no problems at all. It runs on the simulator just fine as well.

The problem is with Ad-Hoc distribution. I have everything set up exactly according to how every guide I can find suggests. I've tried everything.

The archive completes successfully with no problems and appears in the archives list of the organizer. Clicking distribute, I select the valid and correct provision and save my ipa no problems. I double click the ipa in the Finder and open up iTunes and the app installs onto the iPad with no problems.

The problem is when I load the app. It loads and starts off and then crashes immediately. Regardless of my approach this happens consistently. It must be a configuration issue, but I don't know what else I can do. Any help is greatly appreciated. Much thanks in advance.
Quote this message in a reply
⌘-R in Chief
Posts: 1,261
Joined: 2002.05
Post: #2
The answer is going to be in the crash log.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #3
I was hoping this would be one of those quick and simple, "oh I had that happen to me, it's because..." things.

I did look at the crash log and could make neither head nor tail of it. I'll make a nice fresh and smelly one and paste it here when I get to work with hopes that somebody may be able to help me make sense of it.

Many thanks!!!
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #4
Here's the log:

Code:
Incident Identifier: 47CF5D9C-293B-45B3-93BF-0AD72748E488
CrashReporter Key:   85b30678abde2a2c09ba01616274701fb30fb96e
Hardware Model:      iPad2,1
Process:         ExploriaCMS [2458]
Path:            /var/mobile/Applications/F1A2530B-2CD1-4F75-A674-CDD5C2B22551/ExploriaCMS.app/ExploriaCMS
Identifier:      ExploriaCMS
Version:         ??? (???)
Code Type:       ARM (Native)
Parent Process:  launchd [1]

Date/Time:       2012-05-09 11:55:01.923 -0400
OS Version:      iPhone OS 5.0.1 (9A405)
Report Version:  104

Exception Type:  EXC_CRASH (SIGSYS)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   ExploriaCMS                       0x0000b398 0x1000 + 41880
1   ExploriaCMS                       0x0000b5f4 0x1000 + 42484
2   ExploriaCMS                       0x0000694a 0x1000 + 22858
3   Foundation                        0x35475508 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_0 + 12
4   CoreFoundation                    0x3811d570 ___CFXNotificationPost_block_invoke_0 + 64
5   CoreFoundation                    0x380a90c8 _CFXNotificationPost + 1400
6   Foundation                        0x353e93f4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 60
7   Foundation                        0x353eac24 -[NSNotificationCenter postNotificationName:object:] + 24
8   ExploriaCMS                       0x0000b150 0x1000 + 41296
9   SystemConfiguration               0x3644dce4 reachPerform + 528
10  CoreFoundation                    0x38125afc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 8
11  CoreFoundation                    0x381252c8 __CFRunLoopDoSources0 + 208
12  CoreFoundation                    0x3812406e __CFRunLoopRun + 646
13  CoreFoundation                    0x380a74d6 CFRunLoopRunSpecific + 294
14  CoreFoundation                    0x380a739e CFRunLoopRunInMode + 98
15  GraphicsServices                  0x37e7efc6 GSEventRunModal + 150
16  UIKit                             0x31c2773c UIApplicationMain + 1084
17  ExploriaCMS                       0x0003f776 0x1000 + 255862
18  ExploriaCMS                       0x000022c8 main (main.m:19)
19  ExploriaCMS                       0x0000223c 0x1000 + 4668

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib            0x307a23b4 kevent + 24
1   libdispatch.dylib                 0x30d0df74 _dispatch_mgr_invoke + 708
2   libdispatch.dylib                 0x30d0dc92 _dispatch_mgr_thread + 30

Thread 2:
0   libsystem_kernel.dylib            0x307b2cd4 __workq_kernreturn + 8
1   libsystem_c.dylib                 0x37c1030a _pthread_wqthread + 610
2   libsystem_c.dylib                 0x37c1009c start_wqthread + 0

Thread 3:
0   libsystem_kernel.dylib            0x307b2cd4 __workq_kernreturn + 8
1   libsystem_c.dylib                 0x37c1030a _pthread_wqthread + 610
2   libsystem_c.dylib                 0x37c1009c start_wqthread + 0

Thread 4 name:  WebThread
Thread 4:
0   libsystem_kernel.dylib            0x307a2010 mach_msg_trap + 20
1   libsystem_kernel.dylib            0x307a2206 mach_msg + 50
2   CoreFoundation                    0x3812541c __CFRunLoopServiceMachPort + 120
3   CoreFoundation                    0x38124154 __CFRunLoopRun + 876
4   CoreFoundation                    0x380a74d6 CFRunLoopRunSpecific + 294
5   CoreFoundation                    0x380a739e CFRunLoopRunInMode + 98
6   WebCore                           0x32b7e128 _ZL12RunWebThreadPv + 396
7   libsystem_c.dylib                 0x37c15c16 _pthread_start + 314
8   libsystem_c.dylib                 0x37c15ad0 thread_start + 0

Thread 5:
0   libsqlite3.dylib                  0x30c853e0 0x30c32000 + 340960
1   libsqlite3.dylib                  0x30c39a6e 0x30c32000 + 31342
2   libsqlite3.dylib                  0x30c39a6e 0x30c32000 + 31342
3   libsqlite3.dylib                  0x30c3934a 0x30c32000 + 29514
4   libsqlite3.dylib                  0x30c38e9a 0x30c32000 + 28314
5   libsqlite3.dylib                  0x30c38bf0 0x30c32000 + 27632
6   libsqlite3.dylib                  0x30c458f2 0x30c32000 + 80114
7   libsqlite3.dylib                  0x30c3886a sqlite3_exec + 678
8   libsqlite3.dylib                  0x30c45642 0x30c32000 + 79426
9   libsqlite3.dylib                  0x30c45196 0x30c32000 + 78230
10  libsqlite3.dylib                  0x30c41dc6 0x30c32000 + 64966
11  libsqlite3.dylib                  0x30c3e322 0x30c32000 + 49954
12  libsqlite3.dylib                  0x30c39b80 0x30c32000 + 31616
13  libsqlite3.dylib                  0x30c3936c 0x30c32000 + 29548
14  libsqlite3.dylib                  0x30c38e9a 0x30c32000 + 28314
15  libsqlite3.dylib                  0x30c38bf0 0x30c32000 + 27632
16  libsqlite3.dylib                  0x30c6ff9c sqlite3_prepare_v2 + 20
17  AppSupport                        0x32a6a8a4 CPSqlitePreparedStatement + 40
18  AppSupport                        0x32a6abde CPSqliteConnectionStatementForSQLAndIgnoreErrors + 114
19  AppSupport                        0x32a6b64e CPSqliteConnectionPerformSQL + 6
20  AppSupport                        0x32a6ba44 _createConnectionForWriting + 360
21  AppSupport                        0x32a6bc06 _connectAndCheckVersion + 18
22  AppSupport                        0x32a6c0b8 CPSqliteDatabaseConnectionForWriting + 36
23  AppSupport                        0x32a6c18e CPSqliteDatabaseRegisterFunction + 14
24  AddressBook                       0x316676c0 ABCDBContextCreateWithPathAndAddressBook + 208
25  AddressBook                       0x3165b6de ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigrationInProcessLink​ingAndResetSortKeys + 226
26  AddressBook                       0x31669f6c ABAddressBookCreate + 8
27  TextInput                         0x30edfbea KB::fill_with_matchable_strings_from_address_book(KB::Hashmap<KB::String, bool>&) + 10
28  TextInput                         0x30ee6802 KB::DynamicDictionaryImpl::background_load_address_book(KB::StaticDictionary const&) + 194
29  TextInput                         0x30ee713c _ZN2KBL14BackgroundLoadEPv + 272
30  libsystem_c.dylib                 0x37c15c16 _pthread_start + 314
31  libsystem_c.dylib                 0x37c15ad0 thread_start + 0

Thread 6 name:  Dispatch queue: com.apple.root.low-priority
Thread 6:
0   CoreFoundation                    0x380a7cac CFArrayCreateMutable + 0
1   CoreFoundation                    0x38107262 __CFBinaryPlistCreateObject2 + 2870
2   CoreFoundation                    0x38107544 __CFBinaryPlistCreateObject2 + 3608
3   CoreFoundation                    0x3810777e __CFTryParseBinaryPlist + 158
4   CoreFoundation                    0x380b09d0 _CFPropertyListCreateWithData + 80
5   CoreFoundation                    0x380b6c9e CFPropertyListCreateFromXMLData + 50
6   CoreFoundation                    0x380c29d8 _CFBundleCopyInfoDictionaryInDirectoryWithVersion + 1632
7   CoreFoundation                    0x380b82ea _CFBundleCreate + 414
8   CoreFoundation                    0x380d63d4 _CFBundleEnsureBundleExistsForImagePath + 60
9   CoreFoundation                    0x380d62e4 CFBundleGetBundleWithIdentifier + 148
10  Foundation                        0x35410890 +[NSBundle bundleWithIdentifier:] + 12
11  WebCore                           0x32b9a410 WebCore::localizedString(char const*) + 136
12  WebKit                            0x308146da WebLocalizedStringInternal + 18
13  libdispatch.dylib                 0x30d0ad4e _dispatch_call_block_and_release + 6
14  libdispatch.dylib                 0x30d0d890 _dispatch_worker_thread2 + 252
15  libsystem_c.dylib                 0x37c101c8 _pthread_wqthread + 288
16  libsystem_c.dylib                 0x37c1009c start_wqthread + 0

Thread 7:
0   libsystem_kernel.dylib            0x307b2cd4 __workq_kernreturn + 8
1   libsystem_c.dylib                 0x37c1030a _pthread_wqthread + 610
2   libsystem_c.dylib                 0x37c1009c start_wqthread + 0

Thread 0 crashed with ARM Thread State:
    r0: 0x0000004e    r1: 0x0006573e      r2: 0x00000002      r3: 0x00000000
    r4: 0x00000002    r5: 0x35f735ae      r6: 0x00000000      r7: 0x2fdfeb18
    r8: 0x000833a0    r9: 0x00000009     r10: 0x000f426a     r11: 0x00000640
    ip: 0x0000b431    sp: 0x2fdfeb14      lr: 0x0000b447      pc: 0x0000b398
  cpsr: 0x60070010

Binary Images:
    0x1000 -    0x6dfff +ExploriaCMS armv7  <06b32d98886e38f791f7ecee33164e98> /var/mobile/Applications/F1A2530B-2CD1-4F75-A674-CDD5C2B22551/ExploriaCMS.app/ExploriaCMS
0x2feeb000 - 0x2ff0cfff  dyld armv7  <be7c0b491a943054ad12eb5060f1da06> /usr/lib/dyld
0x3054a000 - 0x306a7fff  libmecabra.dylib armv7  <170c82a3c716372abe7ae0aae96d4805> /usr/lib/libmecabra.dylib
0x306a8000 - 0x306affff  libc++abi.dylib armv7  <f769ce305c3033ee90e8c2ecc4846619> /usr/lib/libc++abi.dylib
0x306b0000 - 0x306f9fff  libc++.1.dylib armv7  <ad15503487243836b7c296f3439ba0c1> /usr/lib/libc++.1.dylib
0x3076c000 - 0x3076efff  MobileInstallation armv7  <4ccf76f0e6cb3cd7b4e0087c2f284a1d> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x3076f000 - 0x3076ffff  libkeymgr.dylib armv7  <791bb8b832943b2392c0c35228f52e09> /usr/lib/system/libkeymgr.dylib
0x307a1000 - 0x307b7fff  libsystem_kernel.dylib armv7  <afd3cb06e20336dca2e5a6e11d080504> /usr/lib/system/libsystem_kernel.dylib
0x307b8000 - 0x307c4fff  libCRFSuite.dylib armv7  <ea460e3f1ac338a9885d5752864dbffb> /usr/lib/libCRFSuite.dylib
0x307c8000 - 0x307d9fff  libxpc.dylib armv7  <7d49e385ee5d3e7eb08d06525abd6435> /usr/lib/system/libxpc.dylib
0x30804000 - 0x308d4fff  WebKit armv7  <74661b1bf4613aafb827bfe0134ed92b> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x30a18000 - 0x30a1bfff  libsystem_network.dylib armv7  <b18e0a845b1e317c8abcf6b5d06b29a0> /usr/lib/system/libsystem_network.dylib
0x30b1a000 - 0x30bd5fff  AVFoundation armv7  <c971a925b82934f8881283aabb2992f5> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x30bd6000 - 0x30be2fff  libz.1.dylib armv7  <eef915ed9b2c3433b03fd9030957b945> /usr/lib/libz.1.dylib
0x30be3000 - 0x30be6fff  libmacho.dylib armv7  <3237bc9c109e3354bc4b38b957243f31> /usr/lib/system/libmacho.dylib
0x30be7000 - 0x30c2afff  libcommonCrypto.dylib armv7  <be9a231cfe6e3ae387abb444a098bce9> /usr/lib/system/libcommonCrypto.dylib
0x30c30000 - 0x30c31fff  libsystem_blocks.dylib armv7  <4bb9797771d037879bec814fe750d86d> /usr/lib/system/libsystem_blocks.dylib
0x30c32000 - 0x30cb1fff  libsqlite3.dylib armv7  <af4718fee01734748c42f2214ab6883d> /usr/lib/libsqlite3.dylib
0x30cf0000 - 0x30cfdfff  libbsm.0.dylib armv7  <a6414b0a5fd53df58c4f0b2f8878f81f> /usr/lib/libbsm.0.dylib
0x30cfe000 - 0x30d04fff  libnotify.dylib armv7  <1e374857ac68370095ddbafe94f021a1> /usr/lib/system/libnotify.dylib
0x30d0a000 - 0x30d20fff  libdispatch.dylib armv7  <defe319d1f4d3c1c8c4f18ebd96b396a> /usr/lib/system/libdispatch.dylib
0x30d3b000 - 0x30d3ffff  libcache.dylib armv7  <4511f0ec5b713636aaade7245a12553c> /usr/lib/system/libcache.dylib
0x30d4b000 - 0x30d4efff  CaptiveNetwork armv7  <c3a5b1659eb0302eb205498ffacb09f1> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x30d51000 - 0x30d8cfff  libCGFreetype.A.dylib armv7  <753daf497ca736739a30126661a522f1> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x30de5000 - 0x30de6fff  libdyld.dylib armv7  <f1963e7ef64e39a58ec1e39ed7c74849> /usr/lib/system/libdyld.dylib
0x30df2000 - 0x30e08fff  DictionaryServices armv7  <5bbab664f97932a79a1566fda3a4383e> /System/Library/PrivateFrameworks/DictionaryServices.framework/DictionaryServices
0x30eb3000 - 0x30ec2fff  OpenGLES armv7  <6d1afb451f50310895ec59864739e781> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x30ecb000 - 0x30ecbfff  liblangid.dylib armv7  <342170169bf232a0888912f5ef97112d> /usr/lib/liblangid.dylib
0x30ecc000 - 0x3123dfff  TextInput armv7  <64d1227219b03c51ba4854ec2f79c335> /System/Library/PrivateFrameworks/TextInput.framework/TextInput
0x31658000 - 0x316a1fff  AddressBook armv7  <0a858565acd03f28a1bc69a650b64a7b> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x316a2000 - 0x316a2fff  vecLib armv7  <106ef8294b0d3c2d89e9230527846227> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x316b7000 - 0x316b8fff  libremovefile.dylib armv7  <9c8cee9652453241ac1fc99eab05c40a> /usr/lib/system/libremovefile.dylib
0x31770000 - 0x31774fff  libAccessibility.dylib armv7  <ee734c0e964934a887a66d170270b114> /usr/lib/libAccessibility.dylib
0x31777000 - 0x3190ffff  CoreData armv7  <dd6d139d99e5309f9df33f7b6a044b16> /System/Library/Frameworks/CoreData.framework/CoreData
0x31bf6000 - 0x3208ffff  UIKit armv7  <97b527cd6fba35c6bb39263e0f362223> /System/Library/Frameworks/UIKit.framework/UIKit
0x32651000 - 0x32652fff  libsystem_sandbox.dylib armv7  <b8612b4ce18535aaa94f4b75c730e090> /usr/lib/system/libsystem_sandbox.dylib
0x32653000 - 0x326aafff  CoreAudio armv7  <2e4975a2156e328585f2a478e80704fc> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x3290b000 - 0x32910fff  libsystem_dnssd.dylib armv7  <4d8b38f1cb603f0d8af78c56c485f05a> /usr/lib/system/libsystem_dnssd.dylib
0x32911000 - 0x32920fff  GenerationalStorage armv7  <c581bffc87013530b3c2d017142395e6> /System/Library/PrivateFrameworks/GenerationalStorage.framework/GenerationalStorage
0x32961000 - 0x329b2fff  CoreText armv7  <23150093d39b393e9bc5f8230176df47> /System/Library/Frameworks/CoreText.framework/CoreText
0x329c5000 - 0x32a35fff  CoreImage armv7  <b1d0678497f43769840f173c0f9dce20> /System/Library/Frameworks/CoreImage.framework/CoreImage
0x32a36000 - 0x32a39fff  libcompiler_rt.dylib armv7  <414332f9a55238bab2cbec323e0fc8da> /usr/lib/system/libcompiler_rt.dylib
0x32a4c000 - 0x32a52fff  MobileIcons armv7  <2f4c13053206306996726629b0b7eb01> /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
0x32a65000 - 0x32aa1fff  AppSupport armv7  <de0c2fbb95f8383db43acfb44e9c66fe> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x32ad6000 - 0x3328dfff  WebCore armv7  <7137e0ea008f3a3e8ae9e57f96d34d1d> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x332a0000 - 0x332fbfff  StoreServices armv7  <1463a9f90fbd3d349544cf016e1ddd46> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x33304000 - 0x3330dfff  libMobileGestalt.dylib armv7  <bf8d7c30f11a393a8adf4c8277e65aa3> /usr/lib/libMobileGestalt.dylib
0x333c8000 - 0x333e7fff  libSystem.B.dylib armv7  <31a0ffbb18bf3a28b46fd286733e7d9f> /usr/lib/libSystem.B.dylib
0x3350f000 - 0x33532fff  PrintKit armv7  <279fb51deec3377ab9f820af2da4d915> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x33549000 - 0x3355dfff  PersistentConnection armv7  <81eb1b3e08cf3d7196313307ad60649d> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x3355e000 - 0x33565fff  AssetsLibraryServices armv7  <c0093954f6ee329aa6b4848215bcb8c0> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x3361d000 - 0x3362efff  DataAccessExpress armv7  <6bc443b0f87e338698cac9e5a96e8f8f> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x336c3000 - 0x336dcfff  libRIP.A.dylib armv7  <ad22ea5ee99a358691f9820e62c85058> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x336e1000 - 0x336e8fff  ProtocolBuffer armv7  <6ca7dca9370132a2a592356bf9f2170b> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x33700000 - 0x33704fff  libGFXShared.dylib armv7  <0a36fb9d60a43479943bafb2f81313b1> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x33705000 - 0x337cefff  Celestial armv7  <c18e76311fc33016be930da83050b96d> /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x338b9000 - 0x33a75fff  MusicLibrary armv7  <7be04d376ebc3d419ad408284cef681d> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x33b87000 - 0x33b89fff  libCoreVMClient.dylib armv7  <6ddb7cf8a93830628787a5b83eea0f1d> /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib
0x33bd7000 - 0x33bd7fff  Accelerate armv7  <a62771c826753815a5cae96eaa60ffd7> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x33c13000 - 0x33c29fff  EAP8021X armv7  <16801802d86e3c479f3034034192faed> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x33c2a000 - 0x33c73fff  ManagedConfiguration armv7  <05711081dd883c58a844c5f9c251e8c9> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x33c82000 - 0x33d05fff  CoreMotion armv7  <f4365ff3974b3049b3f04b3f55a46ae6> /System/Library/Frameworks/CoreMotion.framework/CoreMotion
0x33e9e000 - 0x33ee3fff  GeoServices armv7  <6c9eb6372f723a57852cfc9ed7b78e31> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x33f0a000 - 0x33fe1fff  CFNetwork armv7  <6fbc9f187eaa30009780e70288c9f289> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x3414a000 - 0x3414bfff  libdnsinfo.dylib armv7  <dbd1e77a4beb309d8f160d927d442467> /usr/lib/system/libdnsinfo.dylib
0x34160000 - 0x34197fff  Security armv7  <b89c9f6373f037f2a4801558f97b9a95> /System/Library/Frameworks/Security.framework/Security
0x341de000 - 0x34228fff  libvDSP.dylib armv7  <d8489a4ce77933abac52394c43ff5513> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x342d0000 - 0x3452afff  MediaToolbox armv7  <ab91ec33f2b23606bd0443163beff710> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x34536000 - 0x34537fff  DataMigration armv7  <d067b65a904a3f438b5d9e13b208b117> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x34538000 - 0x347f9fff  libLAPACK.dylib armv7  <5490a87fe5153771b9c67940292842ba> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x3483a000 - 0x34841fff  MediaRemote armv7  <3deff2252a8231e7b0135a517b8391ba> /System/Library/PrivateFrameworks/MediaRemote.framework/MediaRemote
0x34859000 - 0x34892fff  VideoToolbox armv7  <49f9f09f23f7396b94a29bb1280759fe> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x34893000 - 0x34899fff  IAP armv7  <f6a99995c7de3db8a52e9a35aac063bc> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x34e8f000 - 0x34ea5fff  libmis.dylib armv7  <fd046316dedc34dd81a6601ea3b1e8a6> /usr/lib/libmis.dylib
0x34ea6000 - 0x34eaafff  IOMobileFramebuffer armv7  <c2e6bd6dafde3097b47bc255a8c871ef> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x34eb6000 - 0x34eb7fff  CoreSurface armv7  <fcb6a869daef3a3abc4300c28b218e9f> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x34ed8000 - 0x3501dfff  CoreGraphics armv7  <641fb6e558f239588a8bd05dbefff99a> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x35020000 - 0x35026fff  MobileKeyBag armv7  <f5633749a1c83058a28cd7d0b488e19f> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x35033000 - 0x35033fff  libCVMSPluginSupport.dylib armv7  <85582e1094633fccb52b50ca13c5a5d0> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
0x350d5000 - 0x35286fff  MediaPlayer armv7  <ef8f1f4574823f41899569ea48367903> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x35287000 - 0x353d0fff  libicucore.A.dylib armv7  <1bc960f75d633190a09b093209a9f0c5> /usr/lib/libicucore.A.dylib
0x353d1000 - 0x353d5fff  AggregateDictionary armv7  <cfd957904957310381369729bfd9b2b0> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x353d6000 - 0x353e5fff  SpringBoardServices armv7  <79f1564c1b23303eb3b7db67f9375228> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x353e6000 - 0x35564fff  Foundation armv7  <ce466f428d953caaac6641d186665809> /System/Library/Frameworks/Foundation.framework/Foundation
0x35621000 - 0x356cbfff  libBLAS.dylib armv7  <9aabff01422f3cb8960f93d11d2b6de1> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x356d0000 - 0x356f0fff  libxslt.1.dylib armv7  <f37418b7e89137bba433677d61cd779d> /usr/lib/libxslt.1.dylib
0x35a0b000 - 0x35a54fff  CoreMedia armv7  <d585cf4e0cfa34fa8beaa43b06a4bcd7> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x35bc5000 - 0x35da2fff  AudioToolbox armv7  <da4f78fd20fb3b42b1a8be4f383d9c12> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x35dad000 - 0x35de7fff  iTunesStore armv7  <abf9395fcf8b3c13b9638b85541484c7> /System/Library/PrivateFrameworks/iTunesStore.framework/iTunesStore
0x36007000 - 0x3600afff  CoreTime armv7  <e2f02260f2a63359b9a0a47c69f59c9e> /System/Library/PrivateFrameworks/CoreTime.framework/CoreTime
0x3600b000 - 0x36011fff  liblockdown.dylib armv7  <bfaf7fb16e5a3b2ea07c47b8b2f2b64e> /usr/lib/liblockdown.dylib
0x36127000 - 0x36172fff  CoreLocation armv7  <e959d4dd596b31eeaa49c8c0156b1e12> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x361ab000 - 0x362cffff  JavaScriptCore armv7  <24ff2747b3973aecb9c37960eba5ff4d> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x36413000 - 0x3641bfff  MobileWiFi armv7  <f07cb8d6dadf36919bae8ef6e5ce1749> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x36439000 - 0x3646efff  SystemConfiguration armv7  <753be0ebdcb13b24b1a4adcdc94d6bd9> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x3646f000 - 0x3651cfff  libxml2.2.dylib armv7  <78462273eb5b38d1a0873b02f0e35e23> /usr/lib/libxml2.2.dylib
0x3653c000 - 0x36546fff  libbz2.1.0.dylib armv7  <28583efb9f1b38e7ae83c667b07dbd08> /usr/lib/libbz2.1.0.dylib
0x36547000 - 0x3656cfff  OpenCL armv7  <e1d5bfcdb59934b0923b9307c75e7457> /System/Library/PrivateFrameworks/OpenCL.framework/OpenCL
0x3656d000 - 0x3656dfff  libgcc_s.1.dylib armv7  <69d8dab7388b33d38b30708fd6b6a340> /usr/lib/libgcc_s.1.dylib
0x36575000 - 0x36580fff  AccountSettings armv7  <090bb6a4f97433089b5cabc6a40c619a> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x36581000 - 0x36581fff  libunwind.dylib armv7  <d21222aad8c93d6c9580f9bf47071946> /usr/lib/system/libunwind.dylib
0x36582000 - 0x365c2fff  libGLImage.dylib armv7  <9440420d838a382caa175399d74a5044> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x365c3000 - 0x366b1fff  libiconv.2.dylib armv7  <6e858938edb93162ba8cf25702f08b16> /usr/lib/libiconv.2.dylib
0x367c2000 - 0x367ccfff  libvMisc.dylib armv7  <b93ee3136d1c3d44b1e513a56bb0f86c> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvMisc.dylib
0x367cd000 - 0x368a7fff  vImage armv7  <42a5e58ff1b9350cad90de36bd3ceb09> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
0x368a8000 - 0x36979fff  HomeSharing armv7  <c336db6393593be0ae24d18d34363b35> /System/Library/PrivateFrameworks/HomeSharing.framework/HomeSharing
0x36995000 - 0x36b51fff  ImageIO armv7  <df300f66a317352e92354a8a48af3453> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x36b52000 - 0x36bfefff  MediaControlSender armv7  <4c0982b21ecf35aead8e0bef55d842b0> /System/Library/PrivateFrameworks/MediaControlSender.framework/MediaControlSender
0x36cb7000 - 0x36cbcfff  CrashReporterSupport armv7  <c3062554536438f9874c88363df7f60b> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x37112000 - 0x37116fff  IOSurface armv7  <0f003f50b18e3dbf87607d819e0ac6b9> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x37186000 - 0x376cafff  FaceCoreLight armv7  <cc2edb3645d2390dbca5471d35f1bf6e> /System/Library/PrivateFrameworks/FaceCoreLight.framework/FaceCoreLight
0x37744000 - 0x37834fff  QuartzCore armv7  <ff595b1a042933249466e92433e1af6f> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x3797c000 - 0x379b9fff  IOKit armv7  <e5f727892ee034a4be04e6da608f413f> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x37bb6000 - 0x37bcbfff  libresolv.9.dylib armv7  <97d6ebbb53ae3e0480f51771c9665613> /usr/lib/libresolv.9.dylib
0x37be2000 - 0x37c05fff  Bom armv7  <0e6087f75a81345ea81751197ccb712c> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x37c06000 - 0x37c93fff  libsystem_c.dylib armv7  <1707c3cf3c5b3045af4bed38ff8420a6> /usr/lib/system/libsystem_c.dylib
0x37c94000 - 0x37d5afff  libobjc.A.dylib armv7  <ebbb32df194b331e9b3dc14e40f46833> /usr/lib/libobjc.A.dylib
0x37d8f000 - 0x37dd3fff  MobileCoreServices armv7  <9a79a2d389ba35389a30782ed01c46dd> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x37de7000 - 0x37dedfff  liblaunch.dylib armv7  <09f21c3e774c30b1aab1b56c2d6efbc3> /usr/lib/system/liblaunch.dylib
0x37e27000 - 0x37e33fff  CoreVideo armv7  <474c89eb09fe3464851a20d76052341b> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x37e69000 - 0x37e7afff  AirTraffic armv7  <187da49948ed3897aeac049cab658528> /System/Library/PrivateFrameworks/AirTraffic.framework/AirTraffic
0x37e7b000 - 0x37e86fff  GraphicsServices armv7  <4ec745ffb2e039faab4b39a30268f707> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x37ed7000 - 0x37f50fff  ProofReader armv7  <09d057676f6837cd9e7a735444b67e77> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x3806a000 - 0x38087fff  libsystem_info.dylib armv7  <1e36ab94661c372bab5a801d68c79353> /usr/lib/system/libsystem_info.dylib
0x38098000 - 0x381affff  CoreFoundation armv7  <de9eefc6109735369cfd8f3de9895da0> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x381c7000 - 0x38218fff  libstdc++.6.dylib armv7  <dc2061145c1a3307829d4f3bfc547c1a> /usr/lib/libstdc++.6.dylib
0x38263000 - 0x38268fff  libcopyfile.dylib armv7  <9072462f28af3665875b3ecaba002c00> /usr/lib/system/libcopyfile.dylib
0x3826a000 - 0x382b4fff  CoreTelephony armv7  <1f4cacb552533c948122cb180f4192b3> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
Quote this message in a reply
Moderator
Posts: 3,579
Joined: 2003.06
Post: #5
I'm going to take a wild guess that the observer which gets added on line 3 is gone, and may have been released by the OS because it is part of a view which is hidden, and was released for memory conservation.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #6
Released for memory conservation? What would release it? It works fine on the iPad in development mode and in the simulator. We're using MRC. Are you thinking it's optimized out?
Quote this message in a reply
Moderator
Posts: 3,579
Joined: 2003.06
Post: #7
The operating system flushes out views that aren't visible (i.e. not part of the current view hierarchy). Be sure to implement didReceiveMemoryWarning.

I don't think it always sends a release message. My recollection is fuzzy since I haven't dealt with this in quite some time, but I seem to recall that nib objects are simply flushed without a release. What I do recall is that this is a great way to have mystery crashes on iOS.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #8
So you think that it could be a flushed out invisible view that is only flushed out when running an ad-hoc build, but not when running in debug mode, whether on the iPad as a developer or in the Simulator?

I wonder if I could reproduce the crash in the debugger if I changed the optimization settings... Hmmm

I've got many view controllers. They all appear to be implementing the didReceiveMemoryWarning, but what should I be doing in that method that would help me?
Quote this message in a reply
Moderator
Posts: 3,579
Joined: 2003.06
Post: #9
(May 9, 2012 10:37 AM)bmantzey Wrote:  So you think that it could be a flushed out invisible view that is only flushed out when running an ad-hoc build, but not when running in debug mode, whether on the iPad as a developer or in the Simulator?
It's possible. I've seen several bugs which only manifest under certain settings on the device. One of which was actually a compiler bug, so anything is possible. In that case, I was able to avoid the bug by setting optimization to -O0 until they fixed it after I filed the bug report. So yeah, changing your settings around in the different builds might give you a hint.

There is also something like a "Simulate memory warning" in the simulator in one of the menus which you could try.

(May 9, 2012 10:37 AM)bmantzey Wrote:  I've got many view controllers. They all appear to be implementing the didReceiveMemoryWarning, but what should I be doing in that method that would help me?
I wish I could recall exactly what I've done in the past to track these buggers down. One inelegant technique I suppose, would be to comment out [super didReceiveMemoryWarning] in each didReceiveMemoryWarning method and see if the crash goes away.

Take this all with a grain of salt too. My hunch that it's an OS memory management issue really is just a hunch after all. Wink
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #10
http://en.wikipedia.org/wiki/SIGSYS

It'd be easier to figure out if you symbolicated your crash log so we can at least see your function/method names.

But yes, my guess is that you should've unregistered an object for a notification before releasing it. Anywhere you use NSNotificationCenter would be suspect.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #11
Thanks Cookie.

Maybe there's something else I can do to that log file to symbolicate it further. I found 2 files, one was even less readable than the one I posted above and this one was in the MyIPadName.symbolicated folder while the less readable one was in the MyIPadName folder.

We spent a while trying to symbolicate it. This is what we did:

1) Archive once -> distribute and provision -> save as ipa.
2) Archive again -> Export as Xcode Archive -> go into the archive, find the Dsym file, apply the symbolicate command to the log generated by the above saved ipa.
• We get the same log. :| Are we doing something silly with it? I would like to know how to properly symbolicate a log file.

I will take a close look at everything we're doing with the Notification Center. Thanks!!
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #12
I just wanted to give a courtesy update to this issue. We found what was causing the problem. Strangely, it was with the formatting of an NSLog call. Now we have another issue, but at least we know it's not the build process that's the problem.

The strange thing is, what was indicated by the crash log had absolutely nothing to do with the crash (that we can tell).

I'd still like to know how to symbolicate that crash log a little better, if possible. I know it is getting symbolicated. It's just not really giving much helpful detail.
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #13
Odd that a broken NSLog would trash memory, rather than simply crashing.

Unfortunately, the shipping versions of clang (except maybe that in Xcode 4.4) don't provide the same typechecking for NSLog/[NSString stringWithFormat:] that they do for printf. If you compile with GCC or a sufficiently recent clang you should get warnings for broken NSLog calls.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #14
The NSLog was

Code:
#define kShouldPrintReachabilityFlags 0 // was set to 1 before fix

static void PrintReachabilityFlags(SCNetworkReachabilityFlags    flags, const char* comment)
{
#if kShouldPrintReachabilityFlags
    
    NSLog(@"Reachability Flag Status: %c%c %c%c%c%c%c%c%c %s\n",
            (flags & kSCNetworkReachabilityFlagsIsWWAN)                  ? 'W' : '-',
            (flags & kSCNetworkReachabilityFlagsReachable)            ? 'R' : '-',
            
            (flags & kSCNetworkReachabilityFlagsTransientConnection)  ? 't' : '-',
            (flags & kSCNetworkReachabilityFlagsConnectionRequired)   ? 'c' : '-',
            (flags & kSCNetworkReachabilityFlagsConnectionOnTraffic)  ? 'C' : '-',
            (flags & kSCNetworkReachabilityFlagsInterventionRequired) ? 'i' : '-',
            (flags & kSCNetworkReachabilityFlagsConnectionOnDemand)   ? 'D' : '-',
            (flags & kSCNetworkReachabilityFlagsIsLocalAddress)       ? 'l' : '-',
            (flags & kSCNetworkReachabilityFlagsIsDirect)             ? 'd' : '-',
            comment
            );
#endif
}

We do not know who wrote that or why they are using a char* rather than NSString, but we think it may be reaching into a memory space where it doesn't belong. Not sure.
Quote this message in a reply
Member
Posts: 241
Joined: 2008.07
Post: #15
We solved the problem.

What it turns out to have been was, apparently the ad-hoc builds do not agree with static C functions, although when running in the Simulator or the iPad in developer mode it's just fine.

Both our startup crash and the other problem we had when using the application were related to the use of static C functions.

Removing the static and adding a function declaration to the header fixed the problem simply.

I hope this knowledge helps other people with any similar issues in the future.

Warm regards.
Quote this message in a reply
Post Reply