Describe the bug
Hello,
On my linux app I have randomly exceptions in DispatchX11Events
System.NullReferenceException: Object reference not set to an instance of an object.
at Avalonia.X11.X11EventDispatcher.DispatchX11Events(CancellationToken cancellationToken)
at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl)
at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(String[] args)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
Here is my program.cs (used in prod perfect in win & macos)
class Program
{
// Initialization code. Don't use any Avalonia, third-party APIs or any
// SynchronizationContext-reliant code before AppMain is called: things aren't initialized
// yet and stuff might break.
[STAThread]
public static void Main(string[] args)
{
try
{
BuildAvaloniaApp()
.StartWithClassicDesktopLifetime(args);
}
catch (Exception e)
{
App.Logger.Error(e);
throw;
}
Environment.Exit(0);
}
// Avalonia configuration, don't remove; also used by visual designer.
public static AppBuilder BuildAvaloniaApp()
=> AppBuilder.Configure<App>()
.UsePlatformDetect()
.UseReactiveUI();
}
To Reproduce
I just use my app then sometimes the exception is triggered
Expected behavior
A stable app :)
Avalonia version
11.3.9
OS
Linux
Additional context
No response
Describe the bug
Hello,
On my linux app I have randomly exceptions in DispatchX11Events
Here is my program.cs (used in prod perfect in win & macos)
To Reproduce
I just use my app then sometimes the exception is triggered
Expected behavior
A stable app :)
Avalonia version
11.3.9
OS
Linux
Additional context
No response