-
Notifications
You must be signed in to change notification settings - Fork 428
Description
I released my CodenameOne app for ios in March 2013 and have been updating it regularly since then. I am now trying to issue the first update since the new VM became mandatory and I am still crashing the iOS VM and cannot release an update in this state.
I am unable to isolate the problem to sample code, When you pull little pieces of code out of my app, everything works, but together the VM crashes.
The basic scenario is this. My app starts opens an SQLite database and displays the results in a list. The user then syncs to a remote server to update the database. The database is closed by the list routine, the sync routine opens it, updates the database and closes it. When the sync finishes the list function opens the database again and displays the list, that is when the VM crashes. Not every time, it does work at times. Often it crashes right away, sometimes I will need to go through this 2 or 3 times before it crashes.
The Apple crash log consistently shows that the thread that crashes has loaded libsqlite3.dylib. I ran the app on my Mac using the generated sources under XCode and it always crashes in the same place trying to close the cursor.
I have attached the full Apple crash log and a screen shot of the crash in the XCode debugger.
OK it appears I cannot upload the crash log here, only images. I will paste the key parts below. Any idea ho to send you the full crash log?
I am really blocked at this point. I don't feel I can release an update to my iOS app when it is crashing in key functionality.
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000021
Triggered by Thread: 1
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x3820949c mach_msg_trap + 20
1 libsystem_kernel.dylib 0x38209290 mach_msg + 36
2 CoreFoundation 0x297f35ce __CFRunLoopServiceMachPort + 142
3 CoreFoundation 0x297f1b94 __CFRunLoopRun + 1012
4 CoreFoundation 0x2973d6cc CFRunLoopRunSpecific + 472
5 CoreFoundation 0x2973d4de CFRunLoopRunInMode + 102
6 GraphicsServices 0x310db1a4 GSEventRunModal + 132
7 UIKit 0x2ceef440 UIApplicationMain + 1436
8 AWMain 0x00736652 0xcb000 + 6731346
9 AWMain 0x00116be6 0xcb000 + 310246
10 AWMain 0x0028b834 0xcb000 + 1837108
11 AWMain 0x0065da02 0xcb000 + 5843458
12 AWMain 0x0065da46 0xcb000 + 5843526
13 libdyld.dylib 0x38156aac start + 0
Thread 1 Crashed:
0 libsystem_pthread.dylib 0x3829ae36 _pthread_mutex_lock + 14
1 libsqlite3.dylib 0x37eb0272 sqlite3_finalize + 38
2 AWMain 0x00114962 0xcb000 + 301410
3 AWMain 0x00113a3a 0xcb000 + 297530
4 AWMain 0x0011390c 0xcb000 + 297228
5 AWMain 0x000d316c 0xcb000 + 33132
6 AWMain 0x0080a686 0xcb000 + 7599750
7 AWMain 0x00773090 0xcb000 + 6979728
8 AWMain 0x00774198 0xcb000 + 6984088
9 AWMain 0x00774f56 0xcb000 + 6987606
10 AWMain 0x0080a904 0xcb000 + 7600388
11 libsystem_pthread.dylib 0x3829cddc _pthread_body + 136
12 libsystem_pthread.dylib 0x3829cd4e _pthread_start + 114
13 libsystem_pthread.dylib 0x3829aaf8 thread_start + 4