TShock 4.3.0.0 (Prerelease 2) for Terraria 1.3.0.3 (API v1.18)

Discussion in 'TShock Releases' started by nicatronTg, Jul 5, 2015.

  1. sxealex

    sxealex Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
    Thanks for the update! I am having some issue with a pirate invasion not ending, seems to be stuck at 0%.
    starting with: screen -A -m -d -S terraria mono --gc=boehm TerrariaServer.exe
    using InvasionMultiplier": 1
    InfiniteInvasion": false

    world is copied from windows if that makes a difference
    any idea?
    thanks again :]
     
  2. Wer

    Wer Level 1

    Joined:
    Jul 5, 2015
    Messages:
    8
    I don't have that assembly (with either name) on my server. I can't remember ever having one by that name, actually. Under the "root" tshock directory I have Newtonsoft.Json.dll and under ServerPlugins I have BCrypt.Net.dll, HttpServer.dll, Mono.Data.Sqlite.dll, Mysql.Data.dll, Newtonsoft.Json.dll, and TShockAPI.dll.

    I tried reproducing this on my desktop (running Windows) when I got home from work today and I couldn't, so it must be specific to Mono. I'm not sure why I need to use the old boehm GC, the newer GC worked just fine with previous versions of Terraria/TShock. Sometime today I'll try to figure out how to attach to Mono from my desktop and see what's going on. I suspect it's getting stuck in an infinite loop somewhere (hence the 100% utilization) but I'll see if I can attach to it and break to figure out what the hell it's doing.

    - Wer
     
  3. LordZoma

    LordZoma Level 2

    Joined:
    Jun 30, 2015
    Messages:
    38
    This ERROR: System.ArgumentNullException: Value cannot be null.

    crashes my server without fail once every hour or so.
     
  4. CycloneX

    CycloneX Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
  5. playo

    playo Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
    Yeah I'm having the same issue. Npcs keep arriving and then either dying or disappearing. Server log says nothing about it.
     
  6. Puremin0rez

    Puremin0rez Level 1

    Joined:
    Jul 6, 2015
    Messages:
    18
    That's because it actually is raining, rain just isn't visible on screen. Known bug right now.
     
  7. 256spam

    256spam Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
    Um so. Me and a friend were running the latest version of tshock. We went to turn on an ice campfire and it vanished, although the vanish was clientside only, and upon relogging it would be back, but still off. She told me to report the bug.
     
  8. Puremin0rez

    Puremin0rez Level 1

    Joined:
    Jul 6, 2015
    Messages:
    18
    I can confirm this issue too, I know its occuring too because it keeps spamming "x has arrived!" messages in chat yet nobody can find any on the map.
     
    • Agree Agree x 2
  9. Wer

    Wer Level 1

    Joined:
    Jul 5, 2015
    Messages:
    8
    I've had some time to experiment with this again. It looks like once the server gets stuck in whatever it's doing (infinite loop somewhere?), it never resets things like TileKillThreshold. I died, saw the CPU usage get pegged, and then logged out and back in. I hit exactly 60 tiles (30 tiles of dirt with a copper pickaxe) and boom, frozen.

    I downloaded the code with the intention of debugging, but apparently debugging from a Windows PC to a remote Mono instance is fraught with pain, so I gave up. I have been looking through the code, though, and it looks like OnSecondUpdate() is the only place those limits are reset. Is it possible that the server is not ticking (which seems to be how OnUpdate() is called, although my very brief search for the call site of OnUpdate() didn't find anything)?

    Edit: Here's a copy of what "htop" looks like when this happens: http://i.imgur.com/XSz8Nxm.png
     
    #129 Wer, Jul 6, 2015
    Last edited: Jul 6, 2015
  10. irajacobs

    irajacobs Level 1

    Joined:
    Feb 16, 2014
    Messages:
    17
    Trying to load a world by command line ( TerrariaServer.exe -world MushroomKingdom.wld ) is crashing tShock. I also tried setting the path (default path) with -worldpath <path> and got the same error.

    [Server API] Error Server crashed due to an unhandled exception:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Terraria.Main.get_expertMode()
    at Terraria.NPC.SetDefaults(Int32 Type, Single scaleOverride)
    at Terraria.NPC.SetDefaults(String Name)
    at Terraria.NPC.netDefaults(Int32 type)
    at Terraria.Main.InitLifeBytes()
    at Terraria.Main.Initialize()
    at Terraria.Main.DedServ()
    at Terraria.ProgramServer.InnerStart(String[] args)

    This is even with config.json and sscconfig.json deleted.
     
  11. LordZoma

    LordZoma Level 2

    Joined:
    Jun 30, 2015
    Messages:
    38
    Got a new line of error code with my error:


    2015-07-06 19:44:17 - GetDataHandlers: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
    at TShockAPI.GetDataHandlers.HandlePlayerAddBuff(GetDataHandlerArgs args)
    at TShockAPI.GetDataHandlers.HandlerGetData(PacketTypes type, TSPlayer player, MemoryStream data)
    2015-07-06 19:44:17 - GetDataHandlers: ERROR: System.NullReferenceException: Object reference not set to an instance of an object.
    at TShockAPI.GetDataHandlers.HandlePlayerAddBuff(GetDataHandlerArgs args)

    which leads into this whole deal

    2015-07-06 19:44:40 - TShock: ERROR: System.ArgumentNullException: Value cannot be null.
     
  12. Lifedust

    Lifedust Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
    I think I found an issue. I tried many times to get a Last Prism with the command /give, but with the bonus "mythical". Everytime I try it, it gives me the item sometimes with a random bonus and sometimes without a bonus. The command is: /give "Last Prism" -your nick- 1 Mythical

    EDIT: I readed now that is impossible to acquire Mythical by reforging lol, but is still strange that makes random bonuse. (Sorry for the poor english)
     
    #132 Lifedust, Jul 6, 2015
    Last edited: Jul 6, 2015
  13. Brutal

    Brutal Level 1

    Joined:
    Dec 19, 2013
    Messages:
    17
    Just wanted to add in that since the update i have been having a lot of issue with my server and very hard rubberbanding. I do have SSC turned on and i am using mysql. I was using a network sql server however I moved to a local database to eliminate any network latency between the two. If anyone else is having this issue or maybe knows why this may be happening that would be greatly appreciated.
     
  14. Wolfje

    TShock Admin TShock Mod Zero Day Plugin Author

    Joined:
    Jul 2, 2013
    Messages:
    191
    Actually, there have been quite a number of issues with recent versions of mono on late 3.x kernels using the sgen garbage collector running out of nursery space and causing either a deadlock or a condition where a loop races. Boehm is less aggressive, and has proven to work in these cases for me and a lot of other people. Steamworks.NET.dll is a recent addition to TerrariaServer by the publishers, which would be why you haven't seen it in the past.
     
  15. Kristijan1001

    Kristijan1001 Level 0

    Joined:
    Jul 6, 2015
    Messages:
    3
    Is anyone else having this issue,i have my npc disapear ,then they arrive normally after a while,i had like 10 npc disapear,aslo they are glitching on the chairs and sometimes try to kill eachother but they dont die like they have godmode
     
    • Agree Agree x 1
    #135 Kristijan1001, Jul 6, 2015
    Last edited: Jul 6, 2015
  16. LordZoma

    LordZoma Level 2

    Joined:
    Jun 30, 2015
    Messages:
    38
    2015-07-06 23:05:37 - Utils: INFO: Kawaii-Chan tried to execute /give 75 Kawaii-Chan 99.
    2015-07-06 23:05:39 - TShock: INFO: band (65.48.195.212) from 'Thanatos' group joined. (13/100)
    2015-07-06 23:05:39 - Utils: INFO: Broadcast: band has joined.
    2015-07-06 23:05:39 - Utils: INFO: SebbieKatt20 executed: /sb king 200.
    2015-07-06 23:05:40 - Utils: INFO: Broadcast: (Ewok Warrior) MlgSoldier: how do you spawn a mob
    2015-07-06 23:05:44 - Utils: INFO: psramirez executed: /i stardust helm 1 warding .
    2015-07-06 23:05:47 - Utils: INFO: Broadcast: (Ewok Warrior) Lunar Cultist: What happened to the screen?
    2015-07-06 23:05:48 - Utils: INFO: Broadcast: (Ewok Warrior) Phase Lord: this is a dragon :D

    2015-07-06 23:05:51 - TShock: ERROR: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at Terraria.NetMessage.SendData(Int32 msgType, Int32 remoteClient, Int32 ignoreClient, String text, Int32 number, Single number2, Single number3, Single number4, Int32 number5, Int32 number6, Int32 number7)
    at Terraria.MessageBuffer.GetData(Int32 start, Int32 length)
    at Terraria.NetMessage.CheckBytes(Int32 bufferIndex)
    at Terraria.Netplay.ServerLoop(Object threadContext)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    2015-07-06 23:05:51 - TShock: ERROR:
     
  17. Wer

    Wer Level 1

    Joined:
    Jul 5, 2015
    Messages:
    8
    So I couldn't find Steamworks.NET.dll in the official release package. I looked through the sources and found it, and copied it to both the "root" tshock directory and the ServerPlugins directory, but got the same instant segfault when I try running with boehm.

    Do you have any idea why it would run (although run into those subtle issues) with the sgen GC, but with the boehm GC, it immediately segfaults? I've never had to run with boehm before so I'm at a loss here.

    Edit: I'm also on Linux 4.0.7, if that matters. And I'm using this version of mono (output of "mono-boehm -V"):

    Code:
    Mono JIT compiler version 4.0.1 (tarball Wed Jun 10 09:11:16 UTC 2015)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
      TLS:  __thread
      SIGSEGV:  altstack
      Notifications: epoll
      Architecture:  amd64
      Disabled:  none
      Misc:  softdebug
      LLVM:  supported, not enabled.
      GC:  Included Boehm (with typed GC and Parallel Mark)
     
    #137 Wer, Jul 6, 2015
    Last edited: Jul 6, 2015
  18. Puremin0rez

    Puremin0rez Level 1

    Joined:
    Jul 6, 2015
    Messages:
    18
    Just want to state that I've been running the latest tShock development builds seemingly fine on Ubuntu 14.04 LTS x64 and Mono 4.0.2. I was running with SGEN and everything was slower - world generation, general map loading, entities skipping around, etc.

    Read the replies about switching to mono-boem instead and it made everything faster. Load worked faster, generation was faster, everything was smoother. Hopefully this solves some deadlocks too.
     
  19. sherysiren

    sherysiren Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
    I'm sorry to Tara hard to understand in machine translation .
    By using the mono in linux, we ask them to use the Tshock.
    We will once reported it encountered in Tshock that have been released like a bug in the 1.3 update .
    By pirate invasion events , not out the bottom right of the gauge , it will be displayed as log in again, it has been plagued with bugs that do not proceed from 0% .
    I tried to want such or re- installation, you will be reported because there was no change .
     
  20. poxin

    poxin Level 0

    Joined:
    Jul 6, 2015
    Messages:
    1
    Hey folks. I'm running this release on a server with about 10-15 players on expert mode. We just defeated the Wall of Flesh but unable to break any altars. It damages the players 16k damage including the superadmin. Vendors are not selling hardmode items either. I've tried toggling /hardmode off and on again but no avail.

    Suggestions? I can give the server IP or if there is a command/permmission I'm missing somewhere?

    Edit: A server reboot seemed to have fixed this, however I lost all my inventory (superadmin) using SSC. Strange.