-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Tmds.DBus.Protocol.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.AppMenu.Registrar was not provided by any .service files #17616
Comments
With all fairness, I've seen it 3 times so far, so it's not as intermittent for me. If I continue seeing it reasonably often I can try and get more debugging info, though I'm not very familiar with .NET and will need some guidance if so. |
Are you manually crashing the app by subscribing to We could potentially try finding which particular call failed and wrapping it into some fire-and-forget handler, but that would require some time. |
I get this exact exception but I wasn't getting the info about the name of the service and spent a long time chasing until I ran dbus-monitor and got meaningful info. I was already logging from TaskScheduler.UnobservedTaskException and flattening the exceptions to get all the info into the log. It happens all the time, I was trying to avoid making some kind of ignore till I knew what was going on. Running Arch Linux with Hyprland. App works fine. Overview: Detailed Explanation: 1. Signal: LayoutUpdated This signal suggests that the menu structure or content associated with that path has been updated. It's broadcasting this information to anyone who might be listening, as indicated by the (null destination). 2. Method Call: RegisterWindow The application is attempting to register a window with an app menu service. This is typically done to integrate the application's menu into a global menu system like AppMenu in some desktop environments. 3. Error: ServiceUnknown Each RegisterWindow attempt results in this error. This error indicates that the service com.canonical.AppMenu.Registrar is not available or cannot be started. This might happen if: 4. Method Call: UnregisterWindow This call attempts to unregister a previously registered window, but again, it encounters the same ServiceUnknown error, suggesting that the com.canonical.AppMenu.Registrar service is not available. |
You may want to add your repo to src/samples/sandbox and see if you can add a break point or something. Could be an option to solve the issue. |
Describe the bug
Intermittently, at an indeterminate time after successful startup and use, an Avalonia UI app running on Linux (Ubuntu 22.04 and/or 24.04), crashes with the following stack trace:
The exception is caught at the top level of the application, but since the app has no way of knowing what this is about, it does what any sensible app does - logs it and exits.
(This can well happen to other apps without them realizing what's happening - if you're not catching all uncaught exceptions at the top, the app will just quietly die without giving any indication of what happened)
This seems somewhat related to #4175 which was closed with a comment from @kekekeks stating:
Which doesn't seem entirely correct in this case. The app works fine apart from this, and the menus are where expected. It just crashes with this exception every now and then.
It does not appear to happen when running in debug mode directly from VS Code on the target Linux system, but does happen when running a Release build packaged as a self contained single file app. Then again, as it's so intermittent, it's hard to be really sure.
To Reproduce
It's very hard to reproduce, as it's intermittent, so it's quite hard to trim down to a simple example. Possibly I can see a correlation between this happening and the OS being recently booted, or woken up from suspension, but I can't be sure. I have not been able to correlate it to anything particular being done with the app. It just suddenly dies.
Expected behavior
I'd expect the app to be stable and not crash with this exception intermittently.
Avalonia version
11.2.0
OS
Linux
Additional context
No response
The text was updated successfully, but these errors were encountered: