Unusual seg fault

Keep having a strange crash, happens 1 out of every 5 or 6 runs? anyone any ideas?

Dave

Time Awake Since Boot: 8000 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [2944]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.xojo.XojoFramework 0x000000010b90f747 GetSubPaneWindow(SubPane*) + 39
1 com.xojo.XojoFramework 0x000000010b8f7701 SubPane::Close() + 125
2 com.xojo.XojoFramework 0x000000010b8f77ca SubPane::Unlock() + 108
3 com.xojo.XojoFramework 0x000000010b83c253 EditRoundRect::HandleClick(MouseEvent const&) + 119
4 com.xojo.XojoFramework 0x000000010b749559 0x10b660000 + 955737
5 com.xojo.XojoFramework 0x000000010b7446f1 0x10b660000 + 935665
6 com.apple.AppKit 0x00007fff406f2b37 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 5724
7 com.apple.AppKit 0x00007fff406293a6 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2295
8 com.apple.AppKit 0x00007fff40628867 -[NSWindow(NSEventRouting) sendEvent:] + 478
9 com.xojo.XojoFramework 0x000000010b745861 0x10b660000 + 940129
10 com.apple.AppKit 0x00007fff404c804f -[NSApplication(NSEvent) sendEvent:] + 331
11 com.xojo.XojoFramework 0x000000010b735267 0x10b660000 + 873063
12 com.mycompany.spacepirateslive 0x000000010b139b05 Application._CallFunctionWithExceptionHandling%%op + 181
13 com.xojo.XojoFramework 0x000000010b8ba4db CallFunctionWithExceptionHandling(void (*)()) + 262
14 com.xojo.XojoFramework 0x000000010b7351e2 0x10b660000 + 872930
15 com.apple.AppKit 0x00007fff404b6874 -[NSApplication run] + 755
16 com.xojo.XojoFramework 0x000000010b8b884d RuntimeRun + 42
17 com.mycompany.spacepirateslive 0x000000010b1a96c3 REALbasic._RuntimeRun + 19
18 com.mycompany.spacepirateslive 0x000000010b38e5d8 _Main + 536
19 com.mycompany.spacepirateslive 0x000000010b38dd73 main + 19
20 libdyld.dylib 0x00007fff6ee143d5 start + 1

Because the Xojo functions are not included, you may need to send the code to them in a private ticket. Are you allowing the user to do some sort of rubber-band select? I ask because of the call to EditRoundRect before the main loop crashes with a SIGSEGV.

If you haven’t already, When you launch Xojo after one of these crashes, report the crash. We get a lot of automatic info that may help us track this down.

Tim is correct though. Your project + instructions on how to reproduce it would be very helpful. Seeing where the framework breaks would probably show us the exact problem.