Sometimes the debugger is stable and then I get §$%& crashes every 5 minutes in an extended debugging session. Makes me rather frustrated. The crash is ALWAYS the same:
Thread 3 Crashed:
0 com.xojo.XojoFramework 0x01717a65 0x1628000 + 981605
1 com.xojo.XojoFramework 0x01715d9a 0x1628000 + 974234
2 com.xojo.XojoFramework 0x01714376 0x1628000 + 967542
3 com.xojo.XojoFramework 0x017cf71b 0x1628000 + 1734427
4 com.xojo.XojoFramework 0x017cf7f3 0x1628000 + 1734643
5 com.xojo.XojoFramework 0x016a5995 0x1628000 + 514453
6 com.xojo.XojoFramework 0x016a287a 0x1628000 + 501882
7 com.xojo.XojoFramework 0x017cf5c8 0x1628000 + 1734088
8 com.xojo.XojoFramework 0x0171b8d3 0x1628000 + 997587
9 com.xojo.XojoFramework 0x0171b786 DebuggerHook + 318
10 com.mothsoftware.mailarchiverx 0x00997f5e WriteMailboxToDatabase.Constructor%%ososos + 454
11 com.mothsoftware.mailarchiverx 0x00c3fb97 MailParser.WriteMailbox%i4%o + 220
12 com.mothsoftware.mailarchiverx 0x00c372d4 MailParser.parse%i4%o + 686
13 com.mothsoftware.mailarchiverx 0x00bd14c1 ArchiveThread.Event_Run%%o + 7640
14 com.xojo.XojoFramework 0x017ddbc8 0x1628000 + 1792968
15 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
16 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
17 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
The greatest likelihood to trigger this crash is to view data in the debugger. But this is the purpose of a debugger. Does anyone have an idea how to reproduce this crash?
Mac OS 10.10.2, Xojo 2015r22.
Eli_Ott
(Eli Ott)
June 3, 2015, 6:45am
2
I would start here with a BREAK at the top of this Constructor checking that all three arguments are valid:
@Eli : that was just an example crash log. WriteMailboxToDatabase works. The problems start at the line with DebuggerHook .
Eli_Ott
(Eli Ott)
June 3, 2015, 9:11am
4
I very much doubt that. There must be something wrong before that, since the IDE running the application wants to step into the debugger if your code would not have any error it wouldn’t try that at this line with the number 10 in the crash log. And probably this thing being wrong is then also crashing the debugger.
@Eli : I very much doubt that because then pretty much EVERYTHING in my heavy duty algorithms would be wrong. I deal with large strings. This type of crash usually happens when I do
Debugging step by step through more than one class.
After viewing variables in the debugger.
WriteMailboxToDatabase isn’t much more than:
[code] if theExportOptions.ExportFormat = “Valentina” then
dim theWriter as new WriteMailboxToValentina(theMailbox, theArchive, theMailApplication)
Return theWriter.GetID
Else
dim theWriter as new WriteMailboxToFilemaker(theMailbox, theMailApplication, theExportOptions, FilemakerAppName)
Return theWriter.GetID
end if[/code]
Here are the relevant parts of the crash logs:
Thread 10 Crashed:
0 com.xojo.XojoFramework 0x016af5fe 0x162e000 + 529918
1 com.xojo.XojoFramework 0x016b6a6c StringDBCSLeft + 42
2 com.xojo.XojoFramework 0x0171d674 0x162e000 + 980596
3 com.xojo.XojoFramework 0x0171bd9a 0x162e000 + 974234
4 com.xojo.XojoFramework 0x0171a376 0x162e000 + 967542
5 com.xojo.XojoFramework 0x017d571b 0x162e000 + 1734427
6 com.xojo.XojoFramework 0x017d57f3 0x162e000 + 1734643
7 com.xojo.XojoFramework 0x016ab995 0x162e000 + 514453
8 com.xojo.XojoFramework 0x016a887a 0x162e000 + 501882
9 com.xojo.XojoFramework 0x017d55c8 0x162e000 + 1734088
10 com.xojo.XojoFramework 0x017218d3 0x162e000 + 997587
11 com.xojo.XojoFramework 0x01721786 DebuggerHook + 318
12 com.mothsoftware.mailarchiverx 0x00ac647a MimeMail.HandleMail%%o + 9375
13 com.mothsoftware.mailarchiverx 0x00af687c splitMultipart.Constructor%%ossss + 15076
14 com.mothsoftware.mailarchiverx 0x0117a615 AttachmentsAndMimeCleaner.execute%%o + 14866
15 com.mothsoftware.mailarchiverx 0x01176aa5 AttachmentsAndMimeCleaner.Constructor%%os + 259
16 com.mothsoftware.mailarchiverx 0x00c3b795 MailParser.parse%i4%o + 5314
17 com.mothsoftware.mailarchiverx 0x00bd6f57 ArchiveThread.Event_Run%%o + 7640
18 com.xojo.XojoFramework 0x017e3bc8 0x162e000 + 1792968
19 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
20 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
21 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
Thread 10 Crashed:
0 com.xojo.XojoFramework 0x016af5fe 0x162e000 + 529918
1 com.xojo.XojoFramework 0x016b6a6c StringDBCSLeft + 42
2 com.xojo.XojoFramework 0x0171d674 0x162e000 + 980596
3 com.xojo.XojoFramework 0x0171bd9a 0x162e000 + 974234
4 com.xojo.XojoFramework 0x0171a376 0x162e000 + 967542
5 com.xojo.XojoFramework 0x017d571b 0x162e000 + 1734427
6 com.xojo.XojoFramework 0x017d57f3 0x162e000 + 1734643
7 com.xojo.XojoFramework 0x016ab995 0x162e000 + 514453
8 com.xojo.XojoFramework 0x016a887a 0x162e000 + 501882
9 com.xojo.XojoFramework 0x017d55c8 0x162e000 + 1734088
10 com.xojo.XojoFramework 0x017218d3 0x162e000 + 997587
11 com.xojo.XojoFramework 0x01721786 DebuggerHook + 318
12 com.mothsoftware.mailarchiverx 0x00af3f3c splitMultipart.Constructor%%ossss + 6118
13 com.mothsoftware.mailarchiverx 0x01179f4f AttachmentsAndMimeCleaner.execute%%o + 14866
14 com.mothsoftware.mailarchiverx 0x011763df AttachmentsAndMimeCleaner.Constructor%%os + 259
15 com.mothsoftware.mailarchiverx 0x00c3b0cf MailParser.parse%i4%o + 5182
16 com.mothsoftware.mailarchiverx 0x00bd6915 ArchiveThread.Event_Run%%o + 7640
17 com.xojo.XojoFramework 0x017e3bc8 0x162e000 + 1792968
18 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
19 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
20 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
Thread 11 Crashed:
0 com.xojo.XojoFramework 0x016af5fe 0x162e000 + 529918
1 com.xojo.XojoFramework 0x016b6a6c StringDBCSLeft + 42
2 com.xojo.XojoFramework 0x0171d674 0x162e000 + 980596
3 com.xojo.XojoFramework 0x0171bd9a 0x162e000 + 974234
4 com.xojo.XojoFramework 0x0171a376 0x162e000 + 967542
5 com.xojo.XojoFramework 0x017d571b 0x162e000 + 1734427
6 com.xojo.XojoFramework 0x017d57f3 0x162e000 + 1734643
7 com.xojo.XojoFramework 0x016ab995 0x162e000 + 514453
8 com.xojo.XojoFramework 0x016a887a 0x162e000 + 501882
9 com.xojo.XojoFramework 0x017d55c8 0x162e000 + 1734088
10 com.xojo.XojoFramework 0x017218d3 0x162e000 + 997587
11 com.xojo.XojoFramework 0x01721786 DebuggerHook + 318
12 com.mothsoftware.mailarchiverx 0x00ac5ae7 MimeMail.HandleMail%%o + 6924
13 com.mothsoftware.mailarchiverx 0x00af687c splitMultipart.Constructor%%ossss + 15076
14 com.mothsoftware.mailarchiverx 0x0117a615 AttachmentsAndMimeCleaner.execute%%o + 14866
15 com.mothsoftware.mailarchiverx 0x01176aa5 AttachmentsAndMimeCleaner.Constructor%%os + 259
16 com.mothsoftware.mailarchiverx 0x00c3b795 MailParser.parse%i4%o + 5314
17 com.mothsoftware.mailarchiverx 0x00bd6f57 ArchiveThread.Event_Run%%o + 7640
18 com.xojo.XojoFramework 0x017e3bc8 0x162e000 + 1792968
19 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
20 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
21 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
Thread 10 Crashed:
0 com.xojo.XojoFramework 0x016af5fe 0x162e000 + 529918
1 com.xojo.XojoFramework 0x016b6a6c StringDBCSLeft + 42
2 com.xojo.XojoFramework 0x0171d674 0x162e000 + 980596
3 com.xojo.XojoFramework 0x0171bd9a 0x162e000 + 974234
4 com.xojo.XojoFramework 0x0171a376 0x162e000 + 967542
5 com.xojo.XojoFramework 0x017d571b 0x162e000 + 1734427
6 com.xojo.XojoFramework 0x017d57f3 0x162e000 + 1734643
7 com.xojo.XojoFramework 0x016ab995 0x162e000 + 514453
8 com.xojo.XojoFramework 0x016a887a 0x162e000 + 501882
9 com.xojo.XojoFramework 0x017d55c8 0x162e000 + 1734088
10 com.xojo.XojoFramework 0x017218d3 0x162e000 + 997587
11 com.xojo.XojoFramework 0x01721786 DebuggerHook + 318
12 com.mothsoftware.mailarchiverx 0x00ac647a MimeMail.HandleMail%%o + 9375
13 com.mothsoftware.mailarchiverx 0x00af687c splitMultipart.Constructor%%ossss + 15076
14 com.mothsoftware.mailarchiverx 0x0117a615 AttachmentsAndMimeCleaner.execute%%o + 14866
15 com.mothsoftware.mailarchiverx 0x01176aa5 AttachmentsAndMimeCleaner.Constructor%%os + 259
16 com.mothsoftware.mailarchiverx 0x00c3b795 MailParser.parse%i4%o + 5314
17 com.mothsoftware.mailarchiverx 0x00bd6f57 ArchiveThread.Event_Run%%o + 7640
18 com.xojo.XojoFramework 0x017e3bc8 0x162e000 + 1792968
19 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
20 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
21 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
Thread 10 Crashed:
0 com.xojo.XojoFramework 0x016af5fe 0x162e000 + 529918
1 com.xojo.XojoFramework 0x016b6a6c StringDBCSLeft + 42
2 com.xojo.XojoFramework 0x0171d674 0x162e000 + 980596
3 com.xojo.XojoFramework 0x0171bd9a 0x162e000 + 974234
4 com.xojo.XojoFramework 0x0171a376 0x162e000 + 967542
5 com.xojo.XojoFramework 0x017d571b 0x162e000 + 1734427
6 com.xojo.XojoFramework 0x017d57f3 0x162e000 + 1734643
7 com.xojo.XojoFramework 0x016ab995 0x162e000 + 514453
8 com.xojo.XojoFramework 0x016a887a 0x162e000 + 501882
9 com.xojo.XojoFramework 0x017d55c8 0x162e000 + 1734088
10 com.xojo.XojoFramework 0x017218d3 0x162e000 + 997587
11 com.xojo.XojoFramework 0x01721786 DebuggerHook + 318
12 com.mothsoftware.mailarchiverx 0x00af3f3c splitMultipart.Constructor%%ossss + 6118
13 com.mothsoftware.mailarchiverx 0x01179f4f AttachmentsAndMimeCleaner.execute%%o + 14866
14 com.mothsoftware.mailarchiverx 0x011763df AttachmentsAndMimeCleaner.Constructor%%os + 259
15 com.mothsoftware.mailarchiverx 0x00c3b0cf MailParser.parse%i4%o + 5182
16 com.mothsoftware.mailarchiverx 0x00bd6915 ArchiveThread.Event_Run%%o + 7640
17 com.xojo.XojoFramework 0x017e3bc8 0x162e000 + 1792968
18 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
19 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
20 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
Thread 3 Crashed:
0 com.xojo.XojoFramework 0x01717a65 0x1628000 + 981605
1 com.xojo.XojoFramework 0x01715d9a 0x1628000 + 974234
2 com.xojo.XojoFramework 0x01714376 0x1628000 + 967542
3 com.xojo.XojoFramework 0x017cf71b 0x1628000 + 1734427
4 com.xojo.XojoFramework 0x017cf7f3 0x1628000 + 1734643
5 com.xojo.XojoFramework 0x016a5995 0x1628000 + 514453
6 com.xojo.XojoFramework 0x016a287a 0x1628000 + 501882
7 com.xojo.XojoFramework 0x017cf5c8 0x1628000 + 1734088
8 com.xojo.XojoFramework 0x0171b8d3 0x1628000 + 997587
9 com.xojo.XojoFramework 0x0171b786 DebuggerHook + 318
10 com.mothsoftware.mailarchiverx 0x00997f5e WriteMailboxToDatabase.Constructor%%ososos + 454
11 com.mothsoftware.mailarchiverx 0x00c3fb97 MailParser.WriteMailbox%i4%o + 220
12 com.mothsoftware.mailarchiverx 0x00c372d4 MailParser.parse%i4%o + 686
13 com.mothsoftware.mailarchiverx 0x00bd14c1 ArchiveThread.Event_Run%%o + 7640
14 com.xojo.XojoFramework 0x017ddbc8 0x1628000 + 1792968
15 libsystem_pthread.dylib 0x952f3e13 _pthread_body + 138
16 libsystem_pthread.dylib 0x952f3d89 _pthread_start + 162
17 libsystem_pthread.dylib 0x952f1e52 thread_start + 34
I’ve noticed similar crashes in the debugger (Windows) when I stepped through the code and want to check the values of some variables. It looks like the debugger has problems when the ‘debug stack’ becomes to complicated. Running the code without the debugger gives no problems, setting a stop somewhere, step through the code, look at some variables, sometimes a crash.
Could you upload the whole crash log somewhere?
@Joe : sure, here they are https://conbr.io/d/Q6XVFkoC . As Alain mentioned the deeper into the class hierarchy the likelier the crashes are.