1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Strange "Deadlocks" occuring recently

Discussion in 'Help and Support' started by pink_panther, Jul 14, 2014.

  1. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Ok, so I've been trying to figure out why my server suddently stops what it's doing, for no good reason for several minutes at a time then resumes like nothign happened...

    It's been an intermittent issue, I've been taking process dumps and checking them out every time it has happened (Managed to catch it about 5 times over the weekend) but couldn't figure out what it was, even started pulling out plugins i'd added recently.

    Although there was no clear indication of what it was in the dump files, it did look like the stat stracker told the server to sleep for 15 minutes. Tried to see what happened every 15 minute interval.

    This time (my server froze), 15 minutes later i got this exception. (Update: 15 minutes after this, it locked up again.)

    another thing.. If i send a Broadcast from the server when this is "frozen" players still get the message, but cant chat or do anything else. the server doesnt register any in game commands they type or anything.

    Recently UPDATED the following plugins i use:
    Infinite Chests
    History
    World Edit
    World Refill
    Event STopper
    TP Request
    AntiSpam

    Some of these may have not been updated, but I've re-downloaded the dlls and installed them recently, is what im saying.

    Any idea whats going on?
     

    Attached Files:

  2. hiarni

    Plugin Developer

    Joined:
    Mar 14, 2014
    Messages:
    127
    same issue again after a few days without any problem...! something messed up with the latest builds >.>

    EDIT
    well... i tryed it a couple of times without any plugins. just a naked tshock server... still deadlocks happening
     
  3. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    I'm not saying it IS stat tracker, all i know is I've heard a few ppl have similar issues, it;s only been happening the last few days and where I've noticed it was about 15 minutes apart.

    that being said, it might then be fine for ages.

    havent added any "new" plugins recently, just tshock update.

    Updated my OP with list of recent plugins I have updated.
     
  4. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    That StatTracker issue is thrown when the StatTracker can't make a connection to TShock's stat page. It gets thrown once and should disable or somesuch. It gets thrown when you're running a local server with no connection to the internet, for example

    EDIT: Error gets thrown once, then no more, to avoid spam
     
  5. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Fair Enough.

    Im now running a debug version of tshock and will take another dump next time i see it happen.
     
    • Like Like x 2
  6. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Also note that StatTracker.cs hasn't been updated in 8 months :/
    We'll definitely look into this though
     
  7. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Just removed it from build 182 and its still doing it, so cant be stat tracker, it msut have thrown that excpetion because of the time out

    im gonna start slowly taking out plugins too

    Here is a dump file i made running the debug version of tshock
    http://vps.tls.id.au/TerrariaServer.exe_140714_042826.dmp
     
  8. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    383
    What about UpdateManager.cs? That only occurs every 30 minutes, however...

    Also, can you compress that dump file?
     
  9. Wolfje

    TShock Admin TShock Mod Zero Day Plugin Author

    Joined:
    Jul 2, 2013
    Messages:
    191
    Trying to look over the dumps, the only held Monitors are in WorldEdit and History, they are on a different thread though, I'm not educated enough on the inner workings of this beast to comment enough though. If someone more educated on TShock can look over it and tell me if SEc is creating any locking, would be greatful.
     
  10. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Ahhhh it takes so long.

    It's litterally faster for me to download a 1gb file that it is to zip it and then download it, but here you go.
    http://vps.tls.id.au/TerrariaServer.exe_140714_042826.dmp.7z

    really would like to know whats going on.

    for the sake of it, ive just ripped out Anti spam and EventStopper.
     
  11. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    383
    Hrm, file not found.

    Anyway, can you try this TerrariaServer? http://puu.sh/aaNZH/8fa8cf0a89.7z

    It was made to fix suspected deadlocking with wiring. I gave another version of it to Simon311 and it seemed to work.
     
    • Like Like x 1
  12. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370


    Oh banana me, i didnt add the mime type for .7z files, try now.

    also, this tshock you ggave me, is this a build before olink made all the SSC changes? because it broke all my SSC

    That being said... it's not a "Deadlock", more like a "Comalock", as it seems to get over itself after 1-10 minutes and just goes back to "normal". By normal i mean it spews a few exceptions over the next few minutes but does seem to calm down

    I'll give it a go tomorrow, as i cant really tell if its happening unless im playing or on the server to see it, and players just think its really bad lag.
     
  13. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
    Do not report issues in this manner, as this does not constructively help anyone fix any issues. Something being broken is not useful to anyone. Please describe how it is broken so that the issue can be fixed, or please stop using non-released code.
     
  14. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    I'm not reporting an issue, im saying thats why I'm not using the unreleased version right now. Used it for like a second trying to address this dead lock issue, notice everyone was logging in with single player characters and then stopped using it, figuring it'd be fixed later since it's an unrelased build.

    Furthermore, if I did report the issue in the best way possible, you'd probably just retaliate with how it's not released and I shouldnt be using it at all because its unrelased blah blah blah
     
  15. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    No worries- if you do feel like reporting the issue, a good way to go about it would be via the Github repo's Issues section

    Until then, lets keep on topic :)
    Anyone had any luck reproducing the current issue, or found more information?
     
  16. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Running without AntiSpam or EventStopper atm, havent noticed it happen again.

    That being said, it was a rare issue i couldnt re-create on demand and I've not been paying attension to it much, I'll keep a closer eye on it after work.
     
    • Like Like x 1
  17. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Yeah, pretty sure it's sitll happening without these plugins, ill try with Mario's build and see what happens.

    Seem a couple small ones, where it stop for 10~ seconds then comes good.

    Other times, earlier, it's longer. Like 5 minutes or so.
     
  18. Wolfje

    TShock Admin TShock Mod Zero Day Plugin Author

    Joined:
    Jul 2, 2013
    Messages:
    191

    Then please start including .pdb files with your debug releases. Until then, I have to cherry-pick a commit and then build a proper debug release on that.
     
  19. pink_panther

    pink_panther Level 9

    Joined:
    Oct 14, 2013
    Messages:
    370
    Regarding Marios special build, running on this a little while i haven't seen it occur and players are giving me a thumbs up..

    So fingers crossed this has it, but ill pay closer attention to it tonight.
     
  20. Marcus101RR

    Marcus101RR Guest

    Deadlocks, someone tell me what this deadlock looks like? or Acts like? I have yet to get it...