Optics - Crashes after trying to save

After spending about 30 minutes editing a Smart Object layer from Photoshop (22.5.1), I tried to save and Optics crashed, losing all my edits. Disturbing, especially as a new user.
NOTE: GPU Rendering has been disabled.

Part of the crash report:

Process: Optics [73067]
Path: /Applications/BorisFX/*/Optics.app/Contents/MacOS/Optics
Identifier: com.borisfx.optics
Version: 2021.2 (2021.2)
Code Type: X86-64 (Native)
Parent Process: Adobe Photoshop 2021 [60090]
Responsible: Adobe Photoshop 2021 [60090]
User ID: 501

Date/Time: 2021-09-19 02:09:14.544 -0400
OS Version: macOS 11.6 (20G165)
Report Version: 12
Anonymous UUID: AE7DD6ED-1AE4-FFCD-0DE6-734566F6D562

Sleep/Wake UUID: 30E27D9C-B978-484B-96BE-6E55726814B9

Time Awake Since Boot: 270000 seconds
Time Since Wake: 46000 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000c3000001
Exception Note: EXC_CORPSE_NOTIFY

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

VM Regions Near 0xc3000001:

__TEXT 10ab8e000-10b4ce000 [ 9472K] r-x/r-x SM=COW /Applications/BorisFX/*/Optics.app/Contents/MacOS/Optics

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.borisfx.optics 0x000000010adf587b EZMask::~EZMask() + 43
1 com.borisfx.optics 0x000000010adf5925 non-virtual thunk to EZMask::~EZMask() + 21
2 com.borisfx.optics 0x000000010ac306cc non-virtual thunk to RemoveMaskCommand::~RemoveMaskCommand() + 60
3 com.borisfx.optics 0x000000010ae1a982 UndoMgr::clear() + 114
4 com.borisfx.optics 0x000000010ad8083f UiMgr::close() + 111
5 com.borisfx.optics 0x000000010af604b5 MainWindow::closeEvent(QCloseEvent*) + 37

OS:

Model Name: iMac
Model Identifier: iMac19,2
Processor Name: 6-Core Intel Core i5
Processor Speed: 3 GHz
Number of Processors: 1
Total Number of Cores: 6
L2 Cache (per Core): 256 KB
L3 Cache: 9 MB
Memory: 16 GB
System Firmware Version: 1554.140.20.0.0
SMC Version (system): 2.47f3

Graphics:
Radeon Pro 560X:

Chipset Model: Radeon Pro 560X
Type: GPU
Bus: PCIe
PCIe Lane Width: x8
VRAM (Total): 4 GB
Vendor: AMD (0x1002)
Device ID: 0x67ef
Revision ID: 0x00c2
ROM Revision: 113-C981AA-042
VBIOS Version: 113-C9819A1X-009
EFI Driver Version: 01.B1.042
Metal Family: Supported, Metal GPUFamily macOS 2

Thanks for the crash report. I’ve never seen that particular crash before.
It appears that you had at one point applied a EZ Mask and later reset it, and when the UI was closed something went wrong with the undo cleanup. Do you remember how complex your EZ Mask editing was, perhaps what steps you took?
This definitely should be a rare anomaly. Please let me know if you can reproduce it!

Thanks for your reply. I did have multiple layers with at least 4 different effects and masking on several of those – I did re-edit the mask a few times depending on the layer. I’ll see if it happens again and will update this post.