I have a by-now pretty well reproducible crash when closing a windows with ContainerControls.
I had seen this in my Arbed app for a while now, and now see this also in my Excel comparison app.
Apps are built with 2019r1.1. Whereas Arbed used a lot of declares, making it unclear whether this was the cause of it, I was able to remove all declares from my new app, and it still crashes. I have also gotten rid of all MBS plugin uses, and it’s still happening. So, it’s now pure Xojo code.
It crashes often in 64 bit builds but never in 32 bit.
It seems to crash only when App.AutoQuit is true.
It crashes not every time, it might to be some kind of race condition.
Here’s a stack trace of the crash:
[quote]Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000010008
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
VM Regions Near 0x10008:
–>
__TEXT 000000010aec3000-000000010b24f000 [ 3632K] r-x/rwx SM=COW & [/Development/REALbasic/Projects/ExcelCompare/Excel Diff.debug.app/Contents/MacOS/Excel Diff.debug]
Application Specific Information:
Performing @selector(menuItemAction:) from sender NSMenuItem 0x6000002a1680
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 XojoFramework 0x000000010b632de1 RuntimeObjectIsa + 76
1 XojoFramework 0x000000010b644f64 RuntimeViewDestructor + 91
2 Excel Diff.debug 0x000000010aeeb5fb Window.__Exit%%o + 11
3 XojoFramework 0x000000010b632c63 RuntimeUnlockObject + 815
4 Excel Diff.debug 0x000000010b1f4c64 DiffWin.DiffWin._FileClose_Action%b%o<DiffWin.DiffWin> + 228 (/DiffWin:184)[/quote]
I will make more tests tomorrow, with older and newer Xojo versions.