2011-10-19 18 views
5

Mi aplicación funciona bien en mi ipad pero cuando la ejecuto en mi ipad, cuelga y almacena el siguiente registro del dispositivo, ¿alguna idea?La aplicación "no se pudo reanudar a tiempo" y se bloquea

Incidente Identificador: 6C33511B-7C9A-474c-B888-84A4FAFF6F91 CrashReporter Clave: 93bbba4f690eb1b7638fa7a09a3ff3aa4e6872f4 hardware Modelo: iPad2,1 proceso: Diseñador [5279] Ruta:
/var/mobile/Applications/7AA5BF4A-007D -47F8-B1C5-30667477AA12/Designer.app/Designer Identificador: Diseñador Versión: ??? (???) Tipo de código:
ARM (Nativo) Proceso de Padres: launchd [1]

Fecha/Hora: 2011-10-19 13: 29: 29.907 0100 OS Versión: iPhone OS 5.0 (9A334) Informe Versión: 104

tipo de excepción: 00000020 códigos de excepción: 0x8badf00d destacado Tema: 0

Solicitud de Información específica: Systems.Designer no pudo reanudar en tiempo

transcurrido el tiempo total de CPU (segundos) : 0.000 (usuario 0.0 00, sistema de 0.000), 0% CPU aplicación transcurrido el tiempo de la CPU (segundos): 0.002, 0% de CPU

Thread 0 nombre: cola de distribución: hilos com.apple.main Thread 0: 0
libsystem_c.dylib 0x307d1a3c memset $ VARIANT $ CortexA9 + 100 1 libsqlite3.dylib 0x36cd3e7e 0x36cbf000 + 85 630 2 libsqlite3.dylib 0x36cc73ec 0x36cbf000 + 33772 3
libsqlite3.dylib 0x36cc6c78 0x36cbf000 + 31864 4
libsqlite3.dylib 0x36cc64a8 0x36cbf000 + 29864 5
libsqlite3 .dylib 0x36cc5f92 0x36cbf000 + 28562 6
li bsqlite3.dylib 0x36cc5ce8 0x36cbf000 + 27880 7
libsqlite3.dylib 0x36cd29ea 0x36cbf000 + 80362 8
libsqlite3.dylib 0x36cc5962 sqlite3_exec + 678 9
libsqlite3.dylib 0x36cd273a 0x36cbf000 + 79674 10 libsqlite3.dylib 0x36cd228e 0x36cbf000 + 78478 11 libsqlite3. dylib 0x36cceebe 0x36cbf000 + 65214 12 libsqlite3.dylib 0x36ccb41a 0x36cbf000 + 50202 13 libsqlite3.dylib 0x36cc6c78 0x36cbf000 + 31864 14 libsqlite3.dylib 0x36cc6464 0x36cbf000 + 29796 15 libsqlite3.dylib 0x36cc5f92 0x36cbf000 + 28562 16 libsqlite3.dylib 0x36cc5ce8 0x36cbf000 + 27880 17 libsqlite3.dylib 0x36cfd094 sqlite3_prepare_v2 + 20 18 AppSupport 0x36efb8a4 CPSqlitePreparedStatement + 40 19 AppSupport 0x36efbbde CPSqliteConnectionStatementForSQLAndIgnoreErrors + 114 20 AppSupport 0x36efc64e CPSqliteConnectionPerformSQL + 6 21 AppSupport
0x36efca44 _createConnectionForWriting + 360 22 AppSupport
0x36efcc06 _connectAndCheckVersion + 18 23 AppSupport
0x36efd0b8 CPSqliteDatabaseConnectionForWriting + 36 24 AppSupport
0x36efd18e CPSqliteDatabaseRegisterFunction + 14 25 AddressBook
0x324db6dc ABCDBContextCreateWithPathAndAddressBook + 208 26 libreta de direcciones 0x324cf6fa ABCCreateAddressBookWithDatabaseDirectoryAndForceInProcessMigrationInProcessLinkingAndResetSortKeys + 226 27 libreta de direcciones 0x324ddf88 ABAddressBookCreate + 8 28 0x000e222c Diseñador + [AddressBookModel createTableViewControllerItemFromABRecordID:] (AddressBookModel.m: 15) Designer 29 0x000e1ee0 - [CustomPersonPickerViewController getAllContacts] (CustomPersonPickerViewController.m: 56) 30 diseñador
0x000e1d9c - [CustomPersonPickerViewController initWithSelectedABRecordID: andSelectAnItemViewDelegate:] (CustomPersonPickerViewController.m: 28) 31 diseñador
0x000dce56 - [EditEntityViewController editAccountable:] (EditEntityViewController.m: 96) 32 CoreFoundation
0x3522442e - [NSObject performSelector: withObject: withObject:] + 46 33 UIKit 0x375d19e4 - [UIApplication sendAction: a: de: forEvent:] + 56 34 UIKit
0x375d19a0 - [UIApplication sendAction: toTarget: fromSender: forEvent:] + 24 35 UIKit 0x375d197e - [uicontrol sendAction: a: forEvent:] + 38 36 UIKit
0x375d16ee - [uicontrol (interno) _sendActionsForEvents: withEvent:] + 486 37 UIKit 0x375d131a - [UIControl touchesBegan: withEvent:] + 238 38 UIKit
0x375d047e - [UIWindow _sendTouchesForEvent:] + 174 3 9 UIKit
0x375cfefa - [UIWindow sendEvent:] + 374 40 UIKit
0x375b64e6 - [UIApplication sendEvent:] + 350 41 UIKit
0x375b5d26 _UIApplicationHandleEvent + 5802 42 GraphicsServices
0x31d0be0c PurpleEventCallback + 876 43 CoreFoundation
0x3529e54c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 32 44 CoreFoundation 0x3529e4ee __CFRunLoopDoSource1 + 134 45 CoreFoundation 0x3529d33c __CFRunLoopRun + 1364 46 CoreFoundation
0x352204d6 CFRunLoopRunSpecific + 294 47 CoreFoundation
0x3522039e CFRunLoopRunInMode + 98 48 GraphicsServices
0x31d0afe6 GSEventRunModal + 150 49 UIKit
0x375e473c UIApplicationMain + 1084 50 diseñador
0x000d4854 principal (main.m: 14) 51 0x000d480c Diseñador 0xd3000 + 6156

Thread 1 Nombre: envío cola: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x303ff3b4 kevent + 24 1
libdispatch.dylib 0x35b5ef74 _dispatch_mgr_invoke + 708 2 libdispatch.dylib 0x35b5ec92 _dispatch_mgr_thread + 30

Thread 2 Nombre: WebThread Tema 2: 0 libsystem_kernel.dylib
0x3040f0d8 psynch_mutexwait + 24 1 libsystem_c.dylib
0x3075ec44 pthread_mutex_lock + 376 2 WebCore
0x362f536c _ZL17_WebTryThreadLockb + 208 3 WebCore
0x362f5670 ZL14WebRunLoopLockP19 _CFRunLoopObservermPv + 24 4
CoreFoundation 0x3529eb44 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
+ 12 5 Co Refundación 0x3529cd80 __CFRunLoopDoObservers + 252 6 CoreFoundation 0x3529d19a __CFRunLoopRun + 946 7
CoreFoundation 0x352204d6 CFRunLoopRunSpecific + 294 8 CoreFoundation 0x3522039e CFRunLoopRunInMode + 98 9
WebCore 0x36397128 _ZL12RunWebThreadPv + 396 10 libsystem_c.dylib 0x3076bc16 _pthread_start + 314 11 libsystem_c.dylib 0x3076bad0 thread_start + 0

hilo desconocido chocó con sabor desconocido: 5, state_count: 1

Respuesta

21

Cada vez que veas un 0x8badf00d eso significa que el perro guardián de lanzamiento te está matando. Su aplicación tarda demasiado en volver desde -applicationDidFinishLaunching.... Núcleo de datos normales causas relacionadas a esto son:

  1. Tratando de importar datos en el -applicationDidFinishLaunching...
  2. Tratar de realizar una migración de -applicationDidFinishLaunching...

Para resolver este necesita cambiar su puesta en marcha. La creación de la pila de Datos centrales nunca se debe hacer en el -applicationDidFinishLaunching.... En su lugar, deje que el -applicationDidFinishLaunching... finalice y luego levante la pila de Datos del núcleo. Si se necesita una migración (puede comprobar esto con bastante facilidad), presente al usuario una IU que le informe de la demora y luego póngala en marcha.

En cualquier caso, debe volver desde el -applicationDidFinishLaunching... lo más rápido posible, solo debe crear elementos de la interfaz de usuario con este método; no deberías acceder a los datos centrales en este punto.

+0

Cuando dices la pila de datos básicos, ¿te refieres a llamar a uno de los métodos generados, p. managedObjectContext? También estoy colocando una vista en la ventana, que requiere datos, por lo que necesito los datos del núcleo – TheLearner

+0

Sí, acceder al 'NSManagedObjectContext' creará la pila de Datos del núcleo. Debe invocarse después de que '-pplicationDidFinishLaunching ...' haya finalizado, lo que significa que deberá volver a trabajar en el inicio de su aplicación. Sugiero comenzar con un rastro en los instrumentos para descubrir * por qué * su aplicación tarda tanto en elevarse. –

+5

0x8badf00d mala comida :) –

Cuestiones relacionadas