Thread: NPC dies, and nobody can login any more / account already logged in bug

Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1 NPC dies, and nobody can login any more / account already logged in bug 
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    I'm using RuneSource, and there's a specific dog at Brimhaven dungeon that crashes the server after it dies and the loot appears. The weird thing is, I can kill other dogs (npc 1593) and the server doesn't crash, just the one that spawns at (2676, 9556) causes this issue. I can literally kill the dog 5 squares away with no issues. I've been trying to debug the issue and i noticed that the player instance is being reconstructed right after the crash occurs, and then the disconnect method is logged to the console right after. The logout method is never called. There are no exceptions being printed to the console. The server remains online,but no one can connect.

    Why does this affect ALL players? Instead of only affecting the player whose instance is being restarted for some reason. What part of the server would be responsible for this behavior?

    edit: I also want to note that this is a consistent behavior. I can restart the server 100 times and get the same result.

    Before:

    Code:
    Oct 10, 2017 12:25:32 AM com.asgarniars.rs2.model.players.Player finishLogin
    INFO: Player(Oprah:password123 - 127.0.0.1) has logged in.

    After:
    Code:
    Oct 10, 2017 12:31:02 AM com.asgarniars.rs2.model.players.Player disconnect
    INFO: Player(Oprah:null - 127.0.0.1) disconnecting.
    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    I would disable instances and see if the issue still occur. If it does, I would debug all the instances and see which one create at where and have a look at which one is being mean to the server.
    You're best bet is to keep an eye out till you found the issue and fix it.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Blurite

    Corey's Avatar
    Join Date
    Feb 2012
    Age
    26
    Posts
    1,491
    Thanks given
    1,245
    Thanks received
    1,729
    Rep Power
    5000
    Roses are red
    Help threads are a bore

    NPC dies, and nobody can login any more


    OT:
    What happens if you remove the npc spawn - does it happen when killing any of the other dogs instead?
    Attached image
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Donator

    Join Date
    Feb 2017
    Posts
    104
    Thanks given
    0
    Thanks received
    14
    Rep Power
    46
    This sounds like you are having issues with some kind of recursive call

    (If there are any methods or loops in your loot method make sure there is a logical condition in which these loops terminate or your program will hang here trying to do whatever it's supposed to (The reason why all players DC because the server stops sending packets because it's occupied elsewhere probably stuck in a infinite loop))

    Common causes would be while loops or methods which call their selves and have not been properly set to escape.
    Reply With Quote  
     

  6. #5  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Quote Originally Posted by arch337 View Post
    I would disable instances and see if the issue still occur. If it does, I would debug all the instances and see which one create at where and have a look at which one is being mean to the server.
    You're best bet is to keep an eye out till you found the issue and fix it.
    DIsable which instances? I don't think you mean player instances because that would probably break a lot of things lol.

    Quote Originally Posted by Tesla View Post
    Roses are red
    Help threads are a bore

    NPC dies, and nobody can login any more


    OT:
    What happens if you remove the npc spawn - does it happen when killing any of the other dogs instead?
    No, only the dog that spawns at that those particular coordinates will cause the issue. I have time to quickly pick up the loot, and then the player will freeze and the client will send me to the login screen, even though the logout method has not been called on the server side. Other dogs of the same id, I can kill all day .



    I get the feeling that this is intended to be some super difficult to debug antileech or something..
    Reply With Quote  
     

  7. #6  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Oprah Rich View Post
    DIsable which instances? I don't think you mean player instances because that would probably break a lot of things lol.



    No, only the dog that spawns at that those particular coordinates will cause the issue. I have time to quickly pick up the loot, and then the player will freeze and the client will send me to the login screen, even though the logout method has not been called on the server side. Other dogs of the same id, I can kill all day .



    I get the feeling that this is intended to be some super difficult to debug antileech or something..
    Well if it is only about those dogs, perhaps you should have a look at any detail / code about / with the dogs and try locate something.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  8. #7  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    Before:

    Code:
    Oct 10, 2017 12:25:32 AM com.asgarniars.rs2.model.players.Player finishLogin
    INFO: Player(Oprah:password123 - 127.0.0.1) has logged in.

    After:
    Code:
    Oct 10, 2017 12:31:02 AM com.asgarniars.rs2.model.players.Player disconnect
    INFO: Player(Oprah:null - 127.0.0.1) disconnecting.
    Reply With Quote  
     

  9. #8  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    bump m8

    I originally thought this could have been caused by my SQL integration saving and loading, but I've ruled out that possibility by reproducing the bug on an original version of the source that scu11 posted way back:

    https://www.rune-server.ee/runescape...g-content.html

    This has got to be an anti-leech... I just want someone to tell me where to look and what part of the server is blocking/nullifying connections after this happens.
    Reply With Quote  
     

  10. #9  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    bump
    Reply With Quote  
     

  11. #10  
    Banned
    Join Date
    Oct 2017
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    0
    bump yo
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Server Offline nobody can login
    By Billanderson in forum Help
    Replies: 4
    Last Post: 03-10-2012, 11:57 PM
  2. Replies: 8
    Last Post: 02-01-2012, 04:15 PM
  3. Replies: 4
    Last Post: 07-15-2011, 09:12 AM
  4. Replies: 0
    Last Post: 12-19-2010, 05:05 PM
  5. [508] Change login threshold (how long your logged in)
    By Thedudewithnoname in forum Help
    Replies: 0
    Last Post: 07-12-2009, 11:01 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •