SlimeVR-Server icon indicating copy to clipboard operation
SlimeVR-Server copied to clipboard

macOS: Java not killed after exiting app

Open i0ntempest opened this issue 1 year ago • 8 comments

Running 0.11.0. After opening and quitting the server app, execute ps -ef | grep java in terminal:

  501  9051     1   0  2:08PM ??         0:03.52 /usr/bin/java -Xmx512M -jar slimevr.jar run
  501  9092  6866   0  2:08PM ttys002    0:00.00 grep --color=auto java

You may see that the java process was not killed. This causes the app to complain "startup error: required ports are busy" on the next run.

i0ntempest avatar Apr 14 '24 18:04 i0ntempest

can you please show server and gui logs

ImUrX avatar Apr 14 '24 20:04 ImUrX

Where do I get those logs?

i0ntempest avatar Apr 16 '24 20:04 i0ntempest

sorry forgot to answer ~/Library/Logs/dev.slimevr.SlimeVR

ImUrX avatar May 07 '24 01:05 ImUrX

log_last_0.log slimevr_rCURRENT.log This was collected after after I killed java after quitting the app.

i0ntempest avatar May 07 '24 21:05 i0ntempest

uhm, did you ever close the app? because GUI logs never say it closed...

do you have tray enabled?

ImUrX avatar May 15 '24 04:05 ImUrX

probably related to https://github.com/tauri-apps/tauri/issues/9198, i suspect that Command+Q or Quit is passing as a kill command more than an ExitRequested in Tauri

ImUrX avatar May 15 '24 04:05 ImUrX

That's exactly what I just found out. It handles a click on the X button just fine but not Cmd+Q.

i0ntempest avatar May 15 '24 04:05 i0ntempest

We need to intercept RunEvent::Exit then

ImUrX avatar May 15 '24 04:05 ImUrX