Skip to content

Could not CreateWindow(): IWindowingPlatform is not registered #266

@stefanwatt

Description

@stefanwatt

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

My System:

$ dotnet --list-runtimes                                                                                                                                      [23:47:42]
Microsoft.AspNetCore.App 6.0.25 [/nix/store/k1ld6p66rdvzlcqhrnmhgllycr745490-dotnet-sdk-6.0.417/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.25 [/nix/store/k1ld6p66rdvzlcqhrnmhgllycr745490-dotnet-sdk-6.0.417/shared/Microsoft.NETCore.App]

stefan@nixos: ~
$ dotnet --version                                                                                                                                            [23:51:31]
6.0.417

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions