Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error In Mac: No windowing system configured. #18475

Open
Violet-VE opened this issue Mar 19, 2025 · 0 comments
Open

Error In Mac: No windowing system configured. #18475

Violet-VE opened this issue Mar 19, 2025 · 0 comments
Labels

Comments

@Violet-VE
Copy link

Describe the bug

I'm running/debugging on a Mac and I'm having a problem (compiles fine):

2025-03-19 10:02:24.895 GitLabCICDNotice.Desktop.Mac[98062:6628070] 
Unhandled Exception:
System.InvalidOperationException: No windowing system configured.
   at Avalonia.AppBuilder.Setup()
   at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
   at GitLabCICDNotice.Desktop.Mac.Program.Main(String[] args) in /Users/violetve/Desktop/Work/Violet-VE.com/JiuZhouUniverse/GitLabCICDNotice/GitLabCICDNotice.Desktop.Mac/Program.cs:line 12
2025-03-19 10:02:24.895 GitLabCICDNotice.Desktop.Mac[98062:6628070] Unhandled managed exception: No windowing system configured. (System.InvalidOperationException)
   at Avalonia.AppBuilder.Setup()
   at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
   at GitLabCICDNotice.Desktop.Mac.Program.Main(String[] args) in /Users/violetve/Desktop/Work/Violet-VE.com/JiuZhouUniverse/GitLabCICDNotice/GitLabCICDNotice.Desktop.Mac/Program.cs:line 12

After investigating, I found out that it is because the pass parameter Action of UseWindowingSubsystem is null in the final save, which causes StartWithClassicDesktopLifetime to report an error, I would like to know how to fix it, and when you guys can fix it.

I'm experiencing this problem because I need to use native desktop notifications on a mac, my code repository is located at: https://github.com/Violet-VE/GitLabCICDNotice.Avalonia
The project reporting the error is: GitLabCICDNotice.Desktop.Mac

Device:

  • MacBook Pro 14 in.
  • Apple M4
  • 16 GB
  • Sequoia 15.3.2 (24D81)

IDE:

  • Rider 2024.3.6 (243.25659.34)

Avalonia Version:

  • 11.3.999-cibuild0055603-alpha

Since I had the classic XAPRAS7023 problem with 11.2.5, I upgraded the version to fix it!

But the No windowing system configured issue occurs with version 11.2.2 and 11.3.x doubt all versions have this issue.

Translated with DeepL.com (free version)

To Reproduce

Click Run/Debug directly

Expected behavior

Expected: Normal operation
Now: reporting errors

Avalonia version

11.3.999-cibuild0055603-alpha

OS

macOS

Additional context

2025-03-19 10:02:24.895 GitLabCICDNotice.Desktop.Mac[98062:6628070]
Unhandled Exception:
System.InvalidOperationException: No windowing system configured.
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action1 lifetimeBuilder) at GitLabCICDNotice.Desktop.Mac.Program.Main(String[] args) in /Users/violetve/Desktop/Work/Violet-VE.com/JiuZhouUniverse/GitLabCICDNotice/GitLabCICDNotice.Desktop.Mac/Program.cs:line 12 2025-03-19 10:02:24.895 GitLabCICDNotice.Desktop.Mac[98062:6628070] Unhandled managed exception: No windowing system configured. (System.InvalidOperationException) at Avalonia.AppBuilder.Setup() at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime) at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action1 lifetimeBuilder)
at GitLabCICDNotice.Desktop.Mac.Program.Main(String[] args) in /Users/violetve/Desktop/Work/Violet-VE.com/JiuZhouUniverse/GitLabCICDNotice/GitLabCICDNotice.Desktop.Mac/Program.cs:line 12

@Violet-VE Violet-VE added the bug label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant