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

Bug/Issue Linux - need to set TERM when running from terminal

Discussion in 'Mac / Linux Bug Reports' started by Sorunome, Jul 4, 2018.

  1. Sorunome

    Sorunome Intergalactic Tourist

    When just running the executable from terminal it fails to start:

    Code:
    sorunome@sorunome-desktop Downloads/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) <0x41ea10d0 + 0x00127> in <filename unknown>:0 
      at System.TermInfoReader..ctor (System.String term, System.String filename) <0x41ea0ed0 + 0x00127> in <filename unknown>:0 
      at System.TermInfoDriver..ctor (System.String term) <0x41e9c980 + 0x00193> in <filename unknown>:0 
      at System.ConsoleDriver.CreateTermInfoDriver (System.String term) <0x41e9c940 + 0x00027> in <filename unknown>:0 
      at System.ConsoleDriver..cctor () <0x41e9c650 + 0x000a7> in <filename unknown>:0 
      --- End of inner exception stack trace ---
      at System.Console.SetupStreams (System.Text.Encoding inputEncoding, System.Text.Encoding outputEncoding) <0x41e9c000 + 0x00043> in <filename unknown>:0 
      at System.Console..cctor () <0x41e9ba00 + 0x00173> in <filename unknown>:0 
      --- End of inner exception stack trace ---
      at StardewValley.Game1.set_gameMode (Byte value) <0x41ea2dd0 + 0x00053> in <filename unknown>:0 
      at StardewValley.Program.handleException (System.Object sender, System.UnhandledExceptionEventArgs args) <0x41ea2680 + 0x0005b> in <filename unknown>:0 
    
    I have to start the game like this and it'll work fine then:
    Code:
    TERM=xterm; ./StardewValley
    As this doesn't happen when running through GUI (as TERM isn't set), it's probably a low-priority issue
     
    • trava90

      trava90 Space Hobo

      I can confirm this problem. setting TERM=xterm before launching allows the game to start.
       

      Share This Page