sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
616 stars 66 forks source link

Crash at startup: "Arithmetic operation resulted in an overflow." #162

Closed mjk-gh closed 4 weeks ago

mjk-gh commented 1 month ago

Trying sourcegit 8.14 (.deb package) on Devuan "daedalus" (systemd-less Debian clone), Kernel 6.1.0 (64 bit):

$ sourcegit
$ # Nothing happens, sourcegit has crashed
$ cat $HOME/.config/SourceGit/crash_2024-06-02_18-37-39.log
Crash: Arithmetic operation resulted in an overflow.

----------------------------
Version: 8.14.0.0
OS: Unix 6.1.0.21
Framework: .NETCoreApp,Version=v8.0
Source: <unknown>
---------------------------

   at Internal.Runtime.CompilerHelpers.ThrowHelpers.ThrowOverflowException() + 0x20
   at Avalonia.X11.X11Screens.UpdateWorkArea(X11Info, X11Screen[]) + 0x1fc
   at Avalonia.X11.X11Screens.Randr15ScreensImpl.get_Screens() + 0x30b
   at Avalonia.X11.X11Screens.get_AllScreens() + 0x2c
   at Avalonia.X11.X11Window..ctor(AvaloniaX11Platform, IWindowImpl, Boolean) + 0x3cc
   at Avalonia.Controls.Platform.PlatformManager.CreateWindow() + 0x84
   at SourceGit.Views.Launcher..ctor() + 0x1f
   at SourceGit.App.OnFrameworkInitializationCompleted() + 0xb0
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder, String[], Action`1) + 0x34
   at SourceGit.App.Main(String[] args) + 0x37
$
love-linger commented 1 month ago

I saw in the AvaloniaUI Issues that you have had similar crashes when using other AvaloniaUI based software, https://github.com/AvaloniaUI/Avalonia/issues/10382. This should be AvaloniaUI's BUG. I will keep an eye on this issue.