Resolved Tshock crashes on startup

Discussion in 'Help and Support' started by Sh4rdknight, Feb 24, 2017.

  1. Sh4rdknight

    Sh4rdknight Level 0

    Joined:
    Feb 24, 2017
    Messages:
    3
    Serverlog:
    [Server API] Error: Server crashed due to an unhandled exception:
    System.TypeInitializationException: The type initializer for 'Terraria.Main' threw an exception. ---> System.TypeLoadException: Could not load type 'Terraria.IO.Preferences' from assembly 'OTAPI, Version=1.3.4.4, Culture=neutral, PublicKeyToken=null'.

    Mono:
    Mono JIT compiler version 4.8.0 (Stable 4.8.0.495/e4a3cf3 Wed Feb 22 18:30:58 UTC 2017)
    TLS: __thread
    SIGSEGV: altstack
    Notifications: epoll
    Architecture: amd64
    Disabled: none
    Misc: softdebug
    LLVM: supported, not enabled.
    GC: sgen

    OS - Linux debian
     
  2. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    714
    Another point: DeathCradle pointed out that he can get similar errors by removing the Newtonsoft JSON dll. Do you have that dll present? (Can you post ls -lah in all TShock folders?)
     
    • Useful Useful x 1
  3. Sh4rdknight

    Sh4rdknight Level 0

    Joined:
    Feb 24, 2017
    Messages:
    3
    Yes mono-devel is installed. I don't have Newtonsoft json in the tshock folder, i only have OTAPI.dll and sqlite3.dll
     
  4. Sh4rdknight

    Sh4rdknight Level 0

    Joined:
    Feb 24, 2017
    Messages:
    3
    Adding the Newtonsoft JSON dll seemed to fix it, sorry for not actually searching more trought the forums...
     
  5. Zia Zampoloo

    Zia Zampoloo Level 0

    Joined:
    Feb 4, 2019
    Messages:
    1
    Where do I find the newton soft JSON?