You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Could not CreateWindow(): IWindowingPlatform is not registered #266
I compiled from source and I get this error when trying to launch fvim:
Unhandled exception. System.Exception: Could not CreateWindow(): IWindowingPlatform is not registered.
at Avalonia.Controls.Platform.PlatformManager.CreateWindow()
at Avalonia.Controls.Window..ctor()
at FVim.CrashReport..ctor()
at FVim.Program.startCrashReportWindow(FSharpFunc`2 app, Exception ex)
at FVim.Program.Main(String[] args)
[1] 56833 IOT instruction (core dumped) /home/stefan/Projects/fvim/bin/Release/net6.0/linux-x64/publish/FVim
Am I missing dependencies? ChatGPT suggested libX11 might be an issue, but it's installed on my system, too. Maybe it can't fight it under the usual path cause I'm using nixos?
I also ran into this issue on NixOS.
I found the libraries that were failing to be loaded by using strace dotnet bin/Release/net6.0/FVim.dll.
Here is the flake containing the devShell I was able to get FVim to run with:
I'm not sure if both lib and lib.dev are required in buildInputs.
For anyone encountering this in the future, the libraries Avalonia requires to launch are libX11, xorgserver, libXcursor, libXrandr, libXi, libXext, libICE, libSM, libz, and fontconfig
Activity
nbfritch commentedon May 17, 2024
I also ran into this issue on NixOS.
I found the libraries that were failing to be loaded by using
strace dotnet bin/Release/net6.0/FVim.dll.Here is the flake containing the devShell I was able to get
FVimto run with:I'm not sure if both
libandlib.devare required inbuildInputs.For anyone encountering this in the future, the libraries Avalonia requires to launch are
libX11,xorgserver,libXcursor,libXrandr,libXi,libXext,libICE,libSM,libz, andfontconfig