Regression from 0.10.10 to 0.10.11: Main window not rendered
See original GitHub issueDescribe the bug
I see a black main window:
To Reproduce
Prerequisite: Installed Avalonia templates (dotnet new -i Avalonia.Templates
)
- mkdir TestAvaloniaApp && cd TestAvaloniaApp
- dotnet new avalonia.mvvm
- Upgrade Avalonia packages from version
0.10.10
to0.10.11
- With dotnet-oudated:
- dotnet tool install -g dotnet-outdated-tool
- dotnet outdated -u
- Manually
- Open the TestAvaloniaApp.csproj and change all references from version
0.10.10
to0.10.11
- Open the TestAvaloniaApp.csproj and change all references from version
- With dotnet-oudated:
dotnet run
- Window isn’t rendered
Expected behavior
A rendered window showing the following:
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Ubuntu 21.10, Wayland, NVidia
- Version 0.10.11
Additional context
It seems that it’s a regression in 0.10.11
, because rendering works in 0.10.10
.
The debug output shows:
[Visual] Exception in render loop: 'System.ArgumentException: Invalid create info - no Canvas provided (Parameter 'createInfo')
at Avalonia.Skia.DrawingContextImpl..ctor(CreateInfo createInfo, IDisposable[] disposables) in /_/src/Skia/Avalonia.Skia/DrawingContextImpl.cs:line 108
at Avalonia.Skia.SkiaGpuRenderTarget.CreateDrawingContext(IVisualBrushRenderer visualBrushRenderer) in /_/src/Skia/Avalonia.Skia/Gpu/SkiaGpuRenderTarget.cs:line 40
at Avalonia.Rendering.DeferredRenderer.EnsureDrawingContext(IDrawingContextImpl& context) in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 617
at Avalonia.Rendering.DeferredRenderer.UpdateRenderLayersAndConsumeSceneIfNeeded(IDrawingContextImpl& context, Boolean recursiveCall) in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 374
at Avalonia.Rendering.DeferredRenderer.Render(Boolean forceComposite) in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 323
at Avalonia.Rendering.DeferredRenderer.Avalonia.Rendering.IRenderLoopTask.Render() in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 275
at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time) in /_/src/Avalonia.Visuals/Rendering/RenderLoop.cs:line 147' (RenderLoop #52307948)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Release Notes - Version 0.10.x
Fixed a regression introduced in 0.10.62 where the unit test reports generated by the python.unittest plugin would always be empty.
Read more >viewer | Yarn - Package Manager
Change Log. Viewer.js uses semantic versioning for its version numbers. 0.10.11. Improve chrome rendering issue. 0.10.10. Fix a bug with useSVG option.
Read more >Visual Studio Code 0.10.7-insiders Release
257 Features Released with 0.10.7-insiders ; Keep flash when redirecting via force_ssl · #1923 ; format.js render does not respect content-type.
Read more >Full Text Bug Listing
This will end with an error and cib is printed in 'Messages' window. ... can't be deleted (it seems that the id of...
Read more >great_expectations Documentation
In Great Expectations, files should not go into the version control for two main reasons: – They contain sensitive information.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We have a PR for wayland support open. Probably you want to test it out and give some feedback if you find anything not working as expected. See #8352
I was same problem in OpenSuse Tumbleweed 15.4, coincidentally I notice some glitchs on VS Code and Chrome. Then I decided to install proprietary NVIDIA graphical driver folowing this tuto https://www.if-not-true-then-false.com/2022/opensuse-nvidia-guide, this solved the problem. Avalonia: 0.10.14 OS: OpenSuse Tumbleweed 15.4 Gnome
I left this comment to help others in future.