I couldn’t reproduce the exact steps manually. Well sometimes crash happens when I debug manually but it is quite rare and I don’t have crashlog to compare.
Also, I could not point out any particular test doing this. When I run then in batches of 10, all tests passed. I also tried adding slight delays in various places to mitigate race conditions, but without any improvement. I think it is something C++ related but I cannot tell what exactly.
This happened when I loaded plugin/script with “break on load” option and then loaded plugin/script was paused and js-debug sent code to evaluate which called “require()” and that require called NAPI and something in C++ in host app. Those evaluation messages were automatic by built-in js-debug in VSCode. And those have to find out more info about enviroment. So I do intercept them in proxy and I am sending back synthetic results from proxy so it does not reach host app at all. This way it prevented crashes I had in my E2E tests.
But probably you should try to check if that is something UDT could have problem as well @indranil