1. This forum is archived for reference. For support & bug reports visit the help section of forums.stardewvalley.net

Game doesn't start on linux. (Ncurses + terminfo issue)

Discussion in 'Mac / Linux Bug Reports' started by jhaand, Dec 9, 2019.

  1. jhaand

    jhaand Space Hobo

    The game doesn't start unless you set the TERM shell variable to xterm.

    Otherwise it crashes with the following error:
    Code:
    $HOME/.steam/steam/steamapps/common/Stardew Valley$ ./StardewValley
    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) <0x410405a0 + 0x00127> in <filename unknown>:0
      at System.TermInfoReader..ctor (System.String term, System.String filename) <0x410403e0 + 0x00127> in <filename unknown>:0
      at System.TermInfoDriver..ctor (System.String term) <0x4103f330 + 0x00193> in <filename unknown>:0
      at System.ConsoleDriver.CreateTermInfoDriver (System.String term) <0x4103f2f0 + 0x00027> in <filename unknown>:0
      at System.ConsoleDriver..cctor () <0x4103f000 + 0x000a7> in <filename unknown>:0
      --- End of inner exception stack trace ---
      at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) <0x4103e9b0 + 0x00043> in <filename unknown>:0
      at System.Console..cctor () <0x4103e6c0 + 0x00173> in <filename unknown>:0
      --- End of inner exception stack trace ---
      at StardewValley.Game1.set_gameMode (Byte value) <0x410412f0 + 0x00053> in <filename unknown>:0
      at StardewValley.Program.handleException (System.Object sender, System.UnhandledExceptionEventArgs args) <0x41040f50 + 0x00047> in <filename unknown>:0
    
    This is caused by changes in ncurses 6 terminfo files.
    See this issue on mono from 18 months ago:
    https://github.com/mono/mono/issues/6752#issuecomment-365212655

    This problem has been fixed in Mono in the mean time. (since version 5.12) However Stardew Valley still runs on mono 4.5 which still crashes.

    Is there an upgrade of mono planned? Or is there another fix?
     

    Share This Page