I installed Lunacy on my machine (Debian 11) through snap, after installation I opened Lunacy and I did some work, I tried to save my work by opening ‘File’ menu and after I clicked on ‘Save as’ the program crashed.
I reopened the program, my work still there (I didn’t lose my work, but it’s not saved as a file), I tried saving my work and the same thing happened again (the program crashed).
the program crashes when trying to do anything related to filesystem (‘Open’, ‘Save’, ‘Export’).
After the program crashes, I always get this output in the terminal:
mrmikel@Debian:~$ lunacy
Unhandled exception. System.Exception: Unable to initialize GTK on separate thread
at Avalonia.X11.NativeDialogs.GtkSystemDialog.EnsureInitialized()
at Avalonia.X11.NativeDialogs.GtkSystemDialog.ShowFileDialogAsync(FileDialog dialog, Window parent)
at Avalonia.Controls.SaveFileDialog.ShowAsync(Window parent)
at Lunacy.Services.DialogService.SaveAsync(String defaultFileName, String[] fileTypeFilter) in /root/parts/lunacy/build/Lunacy/Lunacy.UI/Services/DialogService.cs:line 63
at Lunacy.Services.LocalDocumentManager.SaveCurrentProjectByDialogAsync(String defaultFileName) in /root/parts/lunacy/build/Lunacy/Lunacy.Shared/Services/LocalDocumentManager.cs:line 178
at Lunacy.Services.LocalDocumentManager.SaveCurrentProjectWithoutDialogAsync() in /root/parts/lunacy/build/Lunacy/Lunacy.Shared/Services/LocalDocumentManager.cs:line 159
at Lunacy.ViewModels.MainViewModel.SaveProjectAsync() in /root/parts/lunacy/build/Lunacy/Lunacy.Shared/ViewModels/MainViewModel.cs:line 434
at Lunacy.Threading.TaskExtensions.DoNotWait(Task task) in /root/parts/lunacy/build/Lunacy/Lunacy.Threading/TaskExtensions.cs:line 14
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Avalonia.Threading.AvaloniaSynchronizationContext.<>c__DisplayClass5_0.<Post>b__0()
at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority)
at Avalonia.X11.X11PlatformThreading.CheckSignaled()
at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken)
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken)
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode)
at Lunacy.Program.Main(String[] args) in /root/parts/lunacy/build/Lunacy/Lunacy/Program.cs:line 16
Aborted