question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Regression from 0.10.10 to 0.10.11: Main window not rendered

See original GitHub issue

Describe the bug

I see a black main window:

grafik

To Reproduce

Prerequisite: Installed Avalonia templates (dotnet new -i Avalonia.Templates)

  1. mkdir TestAvaloniaApp && cd TestAvaloniaApp
  2. dotnet new avalonia.mvvm
  3. Upgrade Avalonia packages from version 0.10.10 to 0.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 to 0.10.11
  4. dotnet run
  5. Window isn’t rendered

Expected behavior

A rendered window showing the following:

grafik

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:open
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
timuniecommented, Dec 3, 2022

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

1reaction
gacalvescommented, Mar 23, 2023

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found