Studio: Fix stop server error - #144
Conversation
|
I really don't know what caused this to exit with status code 15. However, just catching the error, solves the crash. |
dcalhoun
left a comment
There was a problem hiding this comment.
I attached the related STUDIO-BE Sentry report to the issue.
I really don't know what caused this to exit with status code 15. However, just catching the error, solves the crash. If anyone has any insights, I'd love to discuss this more.
Given @fluiddot built the utility process in #19, he may have insight to share.
In the Sentry report, I note two sites are stopped with 'Utility' process exited with 'killed' and exitCode: 15, but only the latter appears to report an exception.
I can't reproduce this issue on macOS, so I wonder if it's specific to Linux. The exit code |
fluiddot
left a comment
There was a problem hiding this comment.
Since killProcess is a private function that will only be called by stop, I wonder if the error handling should be located there. With this approach, the promise will be resolved for any exit code, but for non-zero codes we'll report an error in Sentry. WDYT?
Interesting. I was not aware that. Honestly, I had a hard time following which source/documentation applied to Electron's
Makes sense to me. 👍🏻 |
Yeah, it's not easy to pinpoint the source of the error codes.
Ah, interesting. It seems that the |
Fixes: https://github.com/Automattic/dotcom-forge/issues/7245
Proposed Changes
This PR fixes a bug when a user start/stops the server multiple times, child process exits with error 15
Testing Instructions
Pre-merge Checklist