Skip to content
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.DBusException #4175

Closed
cbaal83 opened this issue Jun 26, 2020 · 10 comments
Closed

Tmds.DBus.DBusException #4175

cbaal83 opened this issue Jun 26, 2020 · 10 comments

Comments

@cbaal83
Copy link

cbaal83 commented Jun 26, 2020

Hi there,

iam very new to this lib, running on

Linux IR1581 5.0.0-32-generic #34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Distributor ID: LinuxMint
Description: Linux Mint 19.3 Tricia
Release: 19.3
Codename: tricia

dotnet --version gave me:

3.1.101

I've followed thoose instructions. In order to get it working i had to add 2 more things:

curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs

and:

sudo apt-get install castxml

Once this build was running, i tried to run "ControlCatalog.NetCore", which killed my Cinnamon Session (fallback) and threw the following exception:

Tmds.DBus.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name com.canonical.AppMenu.Registrar was not provided by any .service files
at Tmds.DBus.DBusConnection.CallMethodAsync(Message msg, Boolean checkConnected, Boolean checkReplyType)
at Tmds.DBus.Connection.CallMethodAsync(Message message)
at Tmds.DBus.CodeGen.DBusObjectProxy.SendMethodReturnReaderAsync(String iface, String member, Nullable`1 inSignature, MessageWriter writer)
at Avalonia.FreeDesktop.DBusMenuExporter.DBusMenuExporterImpl.Init() in /daten/dev/csharp/github/Avalonia/src/Avalonia.FreeDesktop/DBusMenuExporter.cs:line 59

I did'nt want to build Avalonia in the first place, but the current nuget-release also doesn't work for me, throwing the following exception:

[Visual] Exception in render loop: "System.InvalidOperationException: Failed to create Skia render target surface
at Avalonia.Skia.SurfaceRenderTarget..ctor(CreateInfo createInfo)
at Avalonia.Skia.DrawingContextImpl.CreateRenderTarget(Size size, Nullable`1 format)
at Avalonia.Skia.DrawingContextImpl.CreateLayer(Size size)
at Avalonia.Rendering.RenderLayers.Update(Scene scene, IDrawingContextImpl context)
at Avalonia.Rendering.DeferredRenderer.UpdateRenderLayersAndConsumeSceneIfNeeded(IDrawingContextImpl& context, Boolean recursiveCall)
at Avalonia.Rendering.DeferredRenderer.Render(Boolean forceComposite)
at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time)" (Avalonia.Rendering.RenderLoop #4032828)

Hope you guys can help me a bit.

Thank you!

@kekekeks
Copy link
Member

Tmds.DBus.DBusException

You can ignore that, it means that your DE doesn't support dbusmenu protocol and the app will fall back to in-window menu.

current nuget-release also doesn't work for me

Which version are you using?

@cbaal83
Copy link
Author

cbaal83 commented Jun 26, 2020

Hi,
version is: 0.9.9.

@cbaal83
Copy link
Author

cbaal83 commented Jun 26, 2020

I just figured there is a new version "0.9.10"; same issue.

@kekekeks
Copy link
Member

which killed my Cinnamon Session (fallback) and threw the following exception

You can try removing this line - https://github.com/AvaloniaUI/Avalonia/blob/master/samples/ControlCatalog.NetCore/Program.cs#L61 but I don't think that a missing DBus service is capable of killing the entire session.

Also, show your glxinfo output.

@cbaal83
Copy link
Author

cbaal83 commented Jun 26, 2020

glxinfo: https://pastebin.com/Pi266zuK

Removing the line didn't help either.

@kekekeks
Copy link
Member

Does it crash the entire X server or just the window manager? Are there any window-manager related logs?

@cbaal83
Copy link
Author

cbaal83 commented Jun 26, 2020

Only the window manager is crashing, i will try to find some logs.

@cbaal83
Copy link
Author

cbaal83 commented Jun 26, 2020

https://pastebin.com/8S3sL55i that's at least something...

could this:

ControlCatalog.NetCore: [Binding] Error in binding to 'Avalonia.Controls.NativeMenuItem'.'Command': 'Null value in expression ''.' (NativeMenuItem #5894079)

be the reason?

@kekekeks
Copy link
Member

That's a binding error that can also be ignored. There is still

Jun 26 13:14:48 IR1581 ControlCatalog.NetCore: [Visual] Exception in render loop: 'System.InvalidOperationException: Failed to create Skia render target surface#012 at Avalonia.Skia.SurfaceRenderTarget..ctor(CreateInfo createInfo) in /daten/dev/csharp/github/Avalonia/src/Skia/Avalonia.Skia/SurfaceRenderTarget.cs:line

though. Which is probably caused by 0x0 window size or something like that.

Can't reproduce metacity crash with metacity from Ubuntu 18.04, might be worth reporting that bug to your distro metacity maintainers.

@xiangzhai
Copy link

:mips-interest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants