SoftwareDesignLab/SBOM-Plugfest

Java Error when Closing Electron

Closed this issue · 4 comments

This Java error consistently occurs when trying to close the electron app. The process must then still be killed in the terminal to be able to restart the app. Killing the process through the terminal first will close the app and not cause the error.

This was produced the same results on two devices.

Tested on Windows 10 and 11
To Replicate:

  • Launch the Backend (through jar or IDE).
  • Launch the Frontend through the terminal using NPM start.
  • After the Frontend's Electron app loads, wait for ~15 seconds.
  • Click the 'X' to close the Electron app.

image

Could you add steps to replicate?

Added replication instructions to the issue's description.

When running the front-end and back-end with npm start (when the front-end starts it automatically builds and runs the jar), it closes fine. This may be an issue with the way the front-end is handling the back-end JAR compilation when the electron app is started. If the back-end is already running, the spawned process fails and it may be an error caused when attempting to kill a back-end process that doesn't exist.

May be a development issue to revisit later