-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MacOS continuous startup #641
Comments
@pedrobernardina there's a nuance with Apple that tries to restart a failing startup process, and this may be what you're observing. Apple deprecated our old startup routine so we've switched to a LaunchAgents technique. I believe there's an option to restart or stay dead and I think you're hitting first scenario. Staying dead is preferred by most people I'm sure, but since Java crashes on it's own accord during normal usage, we often prefer the latter. Where this becomes a pretty big problem is when the crash is reoccurring. I believe this is a bug that we need to sort with We'll need a way to reproduce the issue and confirm that it's fixed. If you are unable to provide one, we'll figure it out it'll just take a bit longer. |
Also I'd like to mention that it's not a strange JDK process, it's just a very long command. It's the Apple-equivalent of |
So I believe what's happening is, when we tell QZ Tray to honor autostart (done via the tray/src/qz/utils/ArgParser.java Line 34 in 28ea9fd
tray/src/qz/ws/PrintSocketServer.java Line 69 in 1c5f9fb
This code was chosen so that in an automated environment, we could tell the difference between exit codes, but I believe it tells LaunchAgents it failed (due to a non-zero return code) asking it to restart, which it does, just to shut itself down again. |
@pedrobernardina thanks kindly for the report. This will be fixed in 2.1.1 and higher. A manual workaround until that is available is to delete |
Sorry for my late response :/ Thanks a lot for checking this up. What I meant by "strange JDK process" is because it wasn't supposed to be there, because I didn't start it 😄 Great lib and great support! Cheers. |
Turns out this is still a problem. During installation, the service will try to restart automatically when it's stopped. The websocket will close due to a second instance running but it returns |
Good afternoon.
I installed free QZ Tray some months ago, and it was great! I've disabled "Launch on start", because I don't like lots of processes running when I start the system.
These last few days I'm running some expensive computing jobs, and I like to use HTOP to monitor my processes. What bugged me was a strange JDK process appearing for 1 to 2 seconds, going to 100 ~ 120% processor use, and then disappearing for another 5ish seconds. Since I don't use java outside specific tasks, and it had such a small lifespan, I used HTOP to filter only JDK processes. It was the only process, and it appeared and disappeared from the list.
I took a screenshot and found that it was QZTray, but QZTray wasn't running at the moment. I uninstalled QZTray it seems to have solved the issue.
The text was updated successfully, but these errors were encountered: