tmds / Tmds.DBus

D-Bus for .NET
MIT License
282 stars 53 forks source link

Connection closed by peer from a sourcgen'd Handler #288

Closed jmacato closed 4 months ago

jmacato commented 4 months ago

Clone of https://github.com/affederaffe/Tmds.DBus.SourceGenerator/issues/19

I'm trying on https://github.com/AvaloniaUI/Avalonia/tree/feature/linux-automation to see if the interfaces were working fine but upon using Accerciser or D-feet, getting the value of any properties from the managed class that i have with:("org.a11y.atspi.Accessible" "/org/a11y/atspi/accessible/root") had it close the connection entirely and show this on managed side:

System.IO.IOException: Connection closed by peer
   at Tmds.DBus.Protocol.MessageStream.ReadFromSocketIntoPipe() in /var/home/strix/RiderProjects/Avalonia/src/Linux/Tmds.DBus.Protocol/MessageStream.cs:line 62

and here on D-feet's side:

image

jmacato commented 4 months ago

Sorry folks, seems like i just needed to set the Parent prop of the Root Accessible from the value that Socket.Embed returned :) Wish it was obvious though haha :)