once in a blue moon while testing my app I get this crash
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 SQLiteDatabase.dylib 0x051f096f 0x51e4000 + 51567
1 SQLiteDatabase.dylib 0x051ebdc5 0x51e4000 + 32197
2 SQLiteDatabase.dylib 0x051eea43 0x51e4000 + 43587
3 SQLiteDatabase.dylib 0x051eeaf9 0x51e4000 + 43769
4 SQLiteDatabase.dylib 0x051ee96d 0x51e4000 + 43373
5 RAPID.debug 0x00113632 SQLitePreparedStatement.Destructor%%o<SQLitePreparedStatement> + 48
6 XojoFramework 0x005583ab RuntimeUnlockObject + 133
7 RAPID.debug 0x001cddce modProject.Create_New_Project%b%o<FolderItem> + 3295
8 RAPID.debug 0x0016a203 winOpen.winOpen.pbCreate_Action%%o<winOpen.winOpen>o<PushButton> + 2190
9 RAPID.debug 0x00179c15 Delegate.IM_Invoke%%o<PushButton> + 83
10 RAPID.debug 0x00179c57 AddHandler.Stub.15%% + 54
11 XojoFramework 0x00511046 0x3a8000 + 1478726
12 XojoFramework 0x00400265 0x3a8000 + 361061
13 libobjc.A.dylib 0xa0cc3ce0 -[NSObject performSelector:withObject:] + 59
14 com.apple.AppKit 0x926edd44 __49-[NSApplication(NSResponder) sendAction:to:from:]_block_invoke + 35
15 libsystem_trace.dylib 0xa1765fe9 _os_activity_initiate_impl + 53
16 libsystem_trace.dylib 0xa176601e _os_activity_initiate + 30
17 com.apple.AppKit 0x926edcc4 -[NSApplication(NSResponder) sendAction:to:from:] + 584
18 com.apple.AppKit 0x921d152e -[NSControl sendAction:to:] + 85
19 com.apple.AppKit 0x921d1444 __26-[NSCell _sendActionFrom:]_block_invoke + 151
20 libsystem_trace.dylib 0xa1765fe9 _os_activity_initiate_impl + 53
21 libsystem_trace.dylib 0xa176601e _os_activity_initiate + 30
22 com.apple.AppKit 0x921d1387 -[NSCell _sendActionFrom:] + 120
23 com.apple.AppKit 0x92211808 -[NSButtonCell _sendActionFrom:] + 105
24 com.apple.AppKit 0x924078a0 __48-[NSCell trackMouse:inRect:ofView:untilMouseUp:]_block_invoke.1101 + 35
25 libsystem_trace.dylib 0xa1765fe9 _os_activity_initiate_impl + 53
26 libsystem_trace.dylib 0xa176601e _os_activity_initiate + 30
27 com.apple.AppKit 0x921cfc97 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2390
28 com.apple.AppKit 0x9221154f -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 796
29 com.apple.AppKit 0x921ce59f -[NSControl mouseDown:] + 686
30 XojoFramework 0x003eeddd 0x3a8000 + 290269
31 com.apple.AppKit 0x928639ff -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5864
32 com.apple.AppKit 0x928614bb -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 5876
33 com.apple.AppKit 0x9285fa49 -[NSWindow(NSEventRouting) sendEvent:] + 547
34 XojoFramework 0x003fa8ef 0x3a8000 + 338159
35 com.apple.AppKit 0x926ea476 -[NSApplication(NSEvent) sendEvent:] + 2854
36 XojoFramework 0x003ea7cb 0x3a8000 + 272331
37 XojoFramework 0x003ea807 0x3a8000 + 272391
38 RAPID.debug 0x0014a932 Delegate.Invoke%% + 34
39 RAPID.debug 0x00085065 Application._CallFunctionWithExceptionHandling%%o<Application>p + 248
40 XojoFramework 0x0055674a 0x3a8000 + 1763146
41 XojoFramework 0x003ea73d 0x3a8000 + 272189
42 com.apple.AppKit 0x91f7ad01 -[NSApplication run] + 1018
43 XojoFramework 0x005567ea 0x3a8000 + 1763306
44 XojoFramework 0x005549c4 RuntimeRun + 49
45 RAPID.debug 0x0011a5e0 REALbasic._RuntimeRun + 34
46 RAPID.debug 0x00260184 _Main + 295
47 RAPID.debug 0x00258a0e main + 36
48 RAPID.debug 0x00262a98 start + 53
The process of events from my point of view are
- Application Starts
- window appears with a few buttons on it
- I click the “Create” button — I THINK this is line #9 above?
- a dialog asks me for a filename – I THINK this is line #7?
- it validates that filename does not already exist
- it creates an SQLite database with that name,
- it creates a number of tables (5)
- it populates one of them using a prepared statement - Line #5??? crash point?
I get the “app must shutdown”… and it is not consistent
for testing purposes I am responding to all input with the exact same values
and deleting previous DB object so as to have a clean slate.
90% of the time there is no error,
does anybody know more about reading the above that might give me a better clue?
normal error handling including an unhandled exception method are not helping