Reopening Panel Causes Crash on Mac: Problem with CS Interface closeExtension();
- December 6, 2024
- 7 replies
- 727 views
Hi! I'm developing an extension and I'm running into a bug when testing my ZXP on Mac. Able to repro on a fresh project (video attached), and on a friend's system as well.
Here's the steps to reproduce:
1. Main Panel: Button that runs CS Interface's requestOpenExtension to open a Settings Panel.
2. Settings Panel: Button that runs CS Interface's closeExtension.
3. Main Panel: Same button, crashes AE when trying to open Settings panel again.
Notably, the crash does not occur when closing the Settings panel by closing through the OS.
Crash does not occur on Windows or on dev server.
Logs:
On Main + Settings:
2024-12-05 12:45:32:614 : ERROR ClientInitialized begin
2024-12-05 12:45:32:614 : ERROR ClientInitialized end
[1205/124532.885219:INFO:CONSOLE(40)] "/Library/Application Support/Adobe/CEP/extensions/com.dummy.cep/jsx/index.js", source: /Library/Application Support/Adobe/CEP/extensions/com.dummy.cep/assets/bolt-0331cf97.js (40)
[1205/124532.885219:INFO:CONSOLE(40)] "/Library/Application Support/Adobe/CEP/extensions/com.dummy.cep/jsx/index.js", source: /Library/Application Support/Adobe/CEP/extensions/com.dummy.cep/assets/bolt-0331cf97.js (40)
2024-12-05 12:47:12:607 : ERROR Heartbeat call failed.
On Main-renderer:
2024-12-05 12:47:12:530 : ERROR RequestOpenExtension caught NSInvalidReceivePortException: connection went invalid while waiting for a reply because a mach port died
Machine that I'm testing on is M1 Mac, and friend's machine which also crashes when that happens was an M3 Mac. Crash still occurs when running with Rosetta.
Pretty hard prog-stop as I was looking to distribute ZXP, & would still need to be able to support Mac users. Any help or guidance would be much appreciated!!
