hbons / SparkleShare

Share and collaborate by syncing with any Git repository instantly. Linux, macOS, and Windows.
https://sparkleshare.org
Other
4.88k stars 579 forks source link

Crash on startup (i3) #1820

Closed D-Vaillant closed 6 years ago

D-Vaillant commented 6 years ago

12:41:27 Environment | SparkleShare 2.0.1 12:41:27 Environment | Git LFS 12:41:27 Environment | Git 2.16.2 Manjaro, kernel 4.14.21.1 i3-WM.

What happened:

Crash on start.

Sparkleshare works fine when I'm using GNOME, so it's probably something there. I tried uninstalling it in GNOME and reinstalling it while using i3 but to no avail. No log information regarding this error - it just doesn't log anything.

Error message when trying to start:


exception inside UnhandledException handler: The type initializer for 'System.Console' threw an exception.

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
  at System.TermInfoReader.ReadHeader (System.Byte[] buffer, System.Int32& position) [0x00028] in <a84b655e5e6a49ee96b338ec792f5580>:0 
  at System.TermInfoReader..ctor (System.String term, System.String filename) [0x0005f] in <a84b655e5e6a49ee96b338ec792f5580>:0 
  at System.TermInfoDriver..ctor (System.String term) [0x00055] in <a84b655e5e6a49ee96b338ec792f5580>:0 
  at System.ConsoleDriver.CreateTermInfoDriver (System.String term) [0x00000] in <a84b655e5e6a49ee96b338ec792f5580>:0 
  at System.ConsoleDriver..cctor () [0x0004d] in <a84b655e5e6a49ee96b338ec792f5580>:0 
   --- End of inner exception stack trace ---
  at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) [0x00007] in <a84b655e5e6a49ee96b338ec792f5580>:0 
  at System.Console..cctor () [0x0008e] in <a84b655e5e6a49ee96b338ec792f5580>:0 
   --- End of inner exception stack trace ---
  at Sparkles.Logger.LogInfo (System.String type, System.String message, System.Exception exception) [0x0009d] in <4da9387f3dc44085b7c12f1203c5d33f>:0 
  at Sparkles.Logger.LogInfo (System.String type, System.String message) [0x00001] in <4da9387f3dc44085b7c12f1203c5d33f>:0 
  at Sparkles.Command.Start () [0x00097] in <4da9387f3dc44085b7c12f1203c5d33f>:0 
  at Sparkles.Command.StartAndReadStandardOutput () [0x00001] in <4da9387f3dc44085b7c12f1203c5d33f>:0 
  at (wrapper remoting-invoke-with-check) Sparkles.Command:StartAndReadStandardOutput ()
  at Sparkles.InstallationInfo.get_OperatingSystem () [0x00049] in <4da9387f3dc44085b7c12f1203c5d33f>:0 
  at Sparkles.Logger.WriteCrashReport (System.Exception e) [0x00008] in <4da9387f3dc44085b7c12f1203c5d33f>:0 
  at SparkleShare.SparkleShare.OnUnhandledException (System.Object sender, System.UnhandledExceptionEventArgs exception_args) [0x0000d] in <3cfa78c34d9a461ab6351627e2f7d8a1>:0```
hbons commented 6 years ago

I did a quick google search for this because the stacktrace is quite weird, and it seems to be an issue in Mono itself when used with ncurses6? I think the only solution is to wait for updates for both of these packages...

D-Vaillant commented 6 years ago

TERM=xterm is a temporary fix, to those who ended up finding this issue.