sakya / corechess

CoreChess is an open source chess GUI for chess engines
GNU General Public License v3.0
24 stars 2 forks source link

Restore Window Size causes crash #22

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello,

I just tried the new option, and the app crashes on start. Here is the crash.log:

[20220712_184216] Object reference not set to an instance of an object. [20220712_184216] at CoreChess.Views.BaseView.RestoreWindowSizeAndPosition() in /home/bahri/Downloads/corechess-main/CoreChess/Views/BaseView.cs:line 77 at CoreChess.Views.MainWindow.InitializeComponent() in /home/bahri/Downloads/corechess-main/CoreChess/Views/MainWindow.axaml.cs:line 292 at CoreChess.Views.MainWindow..ctor(String[] args) in /home/bahri/Downloads/corechess-main/CoreChess/Views/MainWindow.axaml.cs:line 283 at CoreChess.Program.InitializeApp(String[] args) in /home/bahri/Downloads/corechess-main/CoreChess/Program.cs:line 105 at CoreChess.Program.<>cDisplayClass2_0.<gStart|0>d.MoveNext() in /home/bahri/Downloads/corechess-main/CoreChess/Program.cs:line 56 --- End of stack trace from previous location --- at System.Threading.Tasks.Task.<>c.b128_0(Object state) at Avalonia.Threading.AvaloniaSynchronizationContext.<>cDisplayClass5_0.b_0() in //src/Avalonia.Base/Threading/AvaloniaSynchronizationContext.cs:line 33 at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run() in //src/Avalonia.Base/Threading/JobRunner.cs:line 181 at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in //src/Avalonia.Base/Threading/JobRunner.cs:line 37 at Avalonia.X11.X11PlatformThreading.CheckSignaled() in //src/Avalonia.X11/X11PlatformThreading.cs:line 164 at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken cancellationToken) in //src/Avalonia.X11/X11PlatformThreading.cs:line 244 at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) in /_/src/Avalonia.Base/Threading/Dispatcher.cs:line 65 at CoreChess.App.Run(CancellationToken ct) in /home/bahri/Downloads/corechess-main/CoreChess/App.axaml.cs:line 127

Best regards.

sakya commented 2 years ago

Fixed

ghost commented 2 years ago

Yep. Thanks.