11-27-2022, 09:06 AM
(This post was last modified: 11-27-2022, 09:10 AM by Rick Johnson.)
I'm finding an issue with plugins compiled with CORE 0.8.1 that seems to affect only Mac plugins, and only ones with flyout menus. It's not limited to AI 27, and only happens about a third of the time, just after ~Plugin(). I'll summarize the crash report.
I can't destroy flyouts at shutdown as with regular menus, so I tried clearing the entries, and that doesn't help. Panels are destroyed.
Here's how I define my flyout menus.
What's puzzling is that these crashes don't happen in Windows, and didn't happen prior to CORE 0.8.1. I'm using Xcode 10.3 and Xcode 12.4 with macOS 11.7.1 Big Sur. Any suggestions for narrowing the bug down would be much appreciated.
PHP Code:
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 [28001]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libc++abi.dylib 0x00007fff204ceba7 __dynamic_cast + 26
1 com.rj-graffix.plugin.grodyplugin0x000000018dc08ca4 hdi::core::Flyout::~Flyout() + 212
I can't destroy flyouts at shutdown as with regular menus, so I tried clearing the entries, and that doesn't help. Panels are destroyed.
Here's how I define my flyout menus.
Code:
this->xFlyoutMenu.pushEntry( hdi::core::PopupEntry(
"showTTS",
"Show settings",
NULL,
true
));
this->xFlyoutMenu.pushEntry( hdi::core::PopupEntry(
"apply2projection",
"Apply to Projection panel",
NULL,
true
));
this->xFlyoutMenu.setSelectionMadeCallback (HDI_CORE_CALLBACK(axo::Plugin, this, __xFlyoutMenuCB));
this->__xformPanel.setFlyoutMenu(this->xFlyoutMenu);
What's puzzling is that these crashes don't happen in Windows, and didn't happen prior to CORE 0.8.1. I'm using Xcode 10.3 and Xcode 12.4 with macOS 11.7.1 Big Sur. Any suggestions for narrowing the bug down would be much appreciated.