Skip to content

Connection closed by peer #33

@cedric56

Description

@cedric56

Hi, i have got the following exception when trying to use Org.Freedesktop.GeoClue2. I do,n't know why maybe you can't point me in the right direction.

using var connection = new Connection(Address.System);
await connection.ConnectAsync();

OrgFreedesktopGeoClue2ClientProxy proxy = new OrgFreedesktopGeoClue2ClientProxy(connection, "org.freedesktop.GeoClue2", "org/freedesktop/GeoClue2/Client");

var property = await proxy.GetLocationPropertyAsync();

Tmds.DBus.Protocol.DisconnectedException
HResult=0x80131500
Message=Connection closed by peer
Source=Tmds.DBus.Protocol
StackTrace:
at Tmds.DBus.Protocol.DBusConnection.MyValueTaskSource1.System.Threading.Tasks.Sources.IValueTaskSource<T>.GetResult(Int16 token) at System.Threading.Tasks.ValueTask1.get_Result()
at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable1.ConfiguredValueTaskAwaiter.GetResult() at Tmds.DBus.Protocol.DBusConnection.<CallMethodAsync>d__461.MoveNext()
at Tmds.DBus.Protocol.Connection.d__28`1.MoveNext()
at Program.<

$>d__0.MoveNext() in C:\Users\cedri\source\repos\Tmds.DBus.SourceGenerator\DebugSourceGenerator\Program.cs:line 9
at Program.(String[] args)

This exception was originally thrown at this call stack:
Tmds.DBus.Protocol.MessageStream.ReadFromSocketIntoPipe()
System.IO.Pipelines.PipeCompletion.IsCompletedOrThrow()
System.IO.Pipelines.Pipe.GetReadResult(out System.IO.Pipelines.ReadResult)
System.IO.Pipelines.Pipe.GetReadAsyncResult()
System.IO.Pipelines.Pipe.DefaultPipeReader.GetResult(short)
System.Threading.Tasks.ValueTask.Result.get()
System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable.ConfiguredValueTaskAwaiter.GetResult()
Tmds.DBus.Protocol.MessageStream.ReceiveMessages(Tmds.DBus.Protocol.IMessageStream.MessageReceivedHandler, T)

Inner Exception 1:
IOException: Connection closed by peer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions