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

RemoteWidget stops rendering when width or height is equal to zero #6068

Closed
DrunkyBard opened this issue Jun 14, 2021 · 0 comments · Fixed by #6069
Closed

RemoteWidget stops rendering when width or height is equal to zero #6068

DrunkyBard opened this issue Jun 14, 2021 · 0 comments · Fixed by #6069
Labels

Comments

@DrunkyBard
Copy link
Contributor

Describe the bug
RemoteWidget throws an exception when window's width or height is equal to zero and stops to render any frames.

StackTrace:

System.ArgumentException: Positive number required (Parameter 'size')
at Avalonia.Shared.PlatformSupport.StandardRuntimePlatform.UnmanagedBlob..ctor(StandardRuntimePlatform plat, Int32 size) in C:\Avalonia\src\Shared\PlatformSupport\StandardRuntimePlatform.cs:line 56

To Reproduce
Steps to reproduce the behavior:

  1. Launch RemoteDemo example
  2. Resize window so width or height is equal to zero
  3. RemoteWidget displays blank image

Expected behavior
RemoteWidget should handle zero window size and continue rendering process when window size > 0.

Screenshots
BlankRemoteWidgetWindow

Desktop (please complete the following information):

  • OS: Windows 10
  • Version 0.10.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant