space-wizards / SS14.Launcher

Launcher for Space Station 14.
https://spacestation14.io
MIT License
36 stars 61 forks source link

Main window not rendering (black screen) on NVidia + Wayland #72

Open rslabbert opened 2 years ago

rslabbert commented 2 years ago

When running the launcher on an up to date Arch Linux instance using Sway + NVidia Proprietary, the window starts up but the screen stays black. The following is logged repeatedly when running the launcher in debug mode (on release builds there are no useful logs):

[Visual] Exception in render loop: "System.ArgumentException: Invalid create info - no Canvas provided (Parameter 'createInfo')\n   at Avalonia.Skia.DrawingContextImpl..ctor(CreateInfo createInfo, IDisposable[] disposables) in /_/src/Skia/Avalonia.Skia/DrawingContextImpl.cs:line 108\n   at Avalonia.Skia.SkiaGpuRenderTarget.CreateDrawingContext(IVisualBrushRenderer visualBrushRenderer) in /_/src/Skia/Avalonia.Skia/Gpu/SkiaGpuRenderTarget.cs:line 40\n   at Avalonia.Rendering.DeferredRenderer.EnsureDrawingContext(IDrawingContextImpl& context) in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 618\n   at Avalonia.Rendering.DeferredRenderer.UpdateRenderLayersAndConsumeSceneIfNeeded(IDrawingContextImpl& context, Boolean recursiveCall) in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 416\n   at Avalonia.Rendering.DeferredRenderer.Render(Boolean forceComposite) in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 359\n   at Avalonia.Rendering.DeferredRenderer.Avalonia.Rendering.IRenderLoopTask.Render() in /_/src/Avalonia.Visuals/Rendering/DeferredRenderer.cs:line 277\n   at Avalonia.Rendering.RenderLoop.TimerTick(TimeSpan time) in /_/src/Avalonia.Visuals/Rendering/RenderLoop.cs:line 147" (Avalonia.Rendering.RenderLoop #021AF1A5)

This seems to be related to https://github.com/AvaloniaUI/Avalonia/issues/7262 and I can confirm that downgrading Avalonia from 0.10.13 to 0.10.10 allows the screen to render correctly. Happy to provide any more details but this seems to currently be tied to a deeper SkiaSharp situation.

Would downgrading Avalon for the launcher be realistic?

mirrorcult commented 2 years ago

downgrading to 0.10.10 to fix the regression seems reasonable, i dont think we particularly care about newer avalonia versions

rslabbert commented 2 years ago

PR introduced https://github.com/space-wizards/SS14.Launcher/pull/73 with the downgraded version.