When running a plugin which depends on sketch-module-web-view using the
sketchtool run command, Sketch crashes. The Sketch version is 52.6. I've created a small plugin which can reproduce the crash. All it has is a button for closing the browser window. When you click on the button, after a few seconds Sketch will crash and the command will remain hanging. Here is a link to the repository. To reproduce it, you can clone this repository and run:
/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool run ~/Library/Application\ Support/com.bohemiancoding.sketch3/Plugins/sketch-crash-plugin/sketch-crash-plugin.sketchplugin my-command-identifier
I suspect closing the browser window does not terminate the plugin script and results in Sketch crashing. Is there anything I could be doing here to avoid crashing Sketch ?