-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Mixxx leaks Open and Save Panel Service
processes on macOS when closed without quitting, preventing disks from being ejected
#11516
Comments
Well, If I interpret those directly, the processes themselves are probably not the problem, but the fact that they hold on to resources when they shouldn't. Maybe the issue is that we're not instructing them to release their resources? |
Wen you start Mixxx with
as a last console entry. Is it missing if you use the window border button? I cannot confirm it on Linux. |
Well, the processes shouldn't stick around, since they are definitely specific to a Mixxx instance (i.e. launching 10 instances and closing them like this will cause 20 orphan processes to linger around) |
Mhmm, yeah that makes sense. I guess we need to instruct them to quit and then join them. I wonder why Qt doesn't take care of that though? |
Yeah, mixxx just crashing or being killed on shutdown is also a possibility. |
The shutdown message is present in both cases, the logs look very similar in both cases, nothing unusual from what I can tell: |
Seems to be fixed as of 50d9858, so it was very likely an upstream issue that was fixed in Qt 6. |
How about Mixxx 2.4-alpha? |
Every Qt 5 build I've tried still has this issue, but there's likely not much we can do from our side given that it's likely buried somewhere deep in the Qt-AppKit-integration layer... Since quitting the app with Cmd+Q (as opposed to just closing the window) also terminates the extra processes correctly, this shouldn't be a crucial issue. |
Bug Description
This is kind of a strange bug. On macOS Mixxx will launch two processes named
Open and Save Panel Service
andQuickLookUIService
whenever an open/save dialog is launched:An easy way to reproduce this is to spawn an open dialog by selecting
Choose Library
in the context menu ofiTunes
in the library sidebar:Now if the user quits the app using
Cmd + Q
or through the menu bar viaQuit Mixxx
, all processes exit as they should. However, if the user only closes the app using the red button:then the Mixxx process exits while the services become orphan processes:
Now this is problematic, because these processes may hold file resources, which can prevent the user from ejecting disks (the only solution being to manually kill them). While some macOS apps stay open even when the last window is closed, it's indeed a common paradigm for single-window applications to quit entirely when the user presses the red button. In any case, these processes should exit when Mixxx exits, regardless of how it is closed.
The strange thing about this is that these processes are not child processes according to
htop
, they are XPC services that are managed externally somehow. Therefore I am not sure how much of a Qt bug this is compared to Mixxx, but perhaps someone else has an idea on this.Version
2.5-alpha-26-g6b1844e469 (HEAD)
OS
macOS 13.4
The text was updated successfully, but these errors were encountered: