-
Notifications
You must be signed in to change notification settings - Fork 21
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
High CPU usage #274
Comments
seems to be relate to this: |
Which one of Rider processes? |
Please tell us more about these CPU-eating processes. What's their command line? |
Are you absolutely sure about the difference between 1.0.3.103 and 1.0.3.104? The only changes between those versions were in commits related to the build system, and I can confirm that there's no difference in the compiled binaries. I can recommend you to limit the previewer FPS for now, to work around the Avalonia issue. The FPS limiter is available on the plugin settings page. Will it become better if you set it to, say, 10? |
no I am not. I need to make more tests. At the beginning it looked fine with the older version but then CPU spiked again.
I tried values between 1-10 with no difference, but will make more tests. |
Same issue, 70% i9 9900k CPU usage. Preview console:
|
Could someone please confirm it is affected by Avalonia version? |
I am using always the latest nightly Avalonia builds. I had the issue with all nightly builds in the recent weeks. |
I can also confirm it's affected by Avalonia version, upgraded from 10.12 to 11.0.0-rc1.1 recently and faced the same issue (and same error) 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 also tanks the performance of the previewer, goes from updating near-instantly to me having to click the refresh button to get it to happen |
Looked at the mentioned issue, and it seems like the fix for it (AvaloniaUI/Avalonia#11596) works as you'd expect with AvaloniaRider! Much better CPU usage and back to updating instantly. It still has the EndOfStreamException though, not sure if it's particularly relevant/important. Thanks again for the great plugin! |
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.
The text was updated successfully, but these errors were encountered: