ForNeVeR / ForNeVeR/AvaloniaRider

High CPU usage

Open
#274 12 comments 2 reactions 1 assignee Assigned to @ForNeVeR View on GitHub
kind:bug
Dominant language
Kotlin
Stars
583
Forks
32
Avg merge
2h 23m
Merged PRs (30d)
1

Description

When the plugin is enabled I have a consistent 40%-50% CPU load on the Rider process on Windows 11.
When I disable the plugin it goes back to normal (<5%>.

I am running nightly builds of Avalonia and AvaloniaRider 1.0.3.104 on Windows 11.

All I see in the logs is the following exception, but I don't know if this is related to the issue, or normal when the Plugin should refresh the preview.

```
Sending StartDesignerSessionMessage
System.IO.EndOfStreamException: Attempted to read past the end of the stream.
at Avalonia.Remote.Protocol.BsonStreamTransportConnection.ReadExact(Byte[] buffer) in /_/src/Avalonia.Remote.Protocol/BsonStreamTransport.cs:line 61
at Avalonia.Remote.Protocol.BsonStreamTransportConnection.Reader() in /_/src/Avalonia.Remote.Protocol/BsonStreamTransport.cs:line 73
"C:\Program Files\dotnet\dotnet.exe" exec --runtimeconfig D:\Code\ags\Palaver.Avalonia\Palaver\bin\Debug\net6.0\Palaver.runtimeconfig.json --depsfile D:\Code\ags\Palaver.Avalonia\Palaver\bin\Debug\net6.0\Palaver.deps.json C:\Users\Alex\.nuget\packages\avalonia\11.0.999-cibuild0033725-beta\buildTransitive\..\tools\netcoreapp2.0\designer\Avalonia.Designer.HostApp.dll --transport tcp-bson://127.0.0.1:61057/ --method avalonia-remote D:\Code\ags\Palaver.Avalonia\Palaver\bin\Debug\net6.0\Palaver.dll
Process terminated with exit code 1Obtaining AppBuilder instance from Palaver.Program
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.