#(amkiwi) ddiscordbot lags my server to the point the entire computer freezes

1 messages · Page 1 of 1 (latest)

pine cradle
#

I added ddiscordbot to my server and it started to get lagspikes every 10 minutes or so until it crashed. After removing it the lag spikes are gone. Currently the discordbot has nothing on it. Here are the logs for the most recent crash: https://paste.denizenscript.com/View/121542. It cuts off at the end due to it freezing

cedar cradleBOT
#

(amkiwi) ddiscordbot lags my server to the point the entire computer freezes

cedar cradleBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

chilly otter
strange pierBOT
# chilly otter !logcheck https://paste.denizenscript.com/View/121542
Server Version

Pufferfish version git-Pufferfish-47 (MC: 1.20.4)

Plugin Version(s)

Denizen v1.3.0-SNAPSHOT (build 1803-REL) -- (Version tracker error)
dDiscordBot v0.7 (build 300) -- (Current build :white_check_mark:)

Checked For

@chilly otter

UUID Version

4 (:white_check_mark: Online)

Java Version

17.0.9 :white_check_mark:

Other Noteworthy Plugin(s)

ProtocolLib v5.2.0-SNAPSHOT-679

Possibly Relevant Plugin(s)

ViaVersion v4.9.3 - Mixed client vs server versions can sometimes cause packet-related issues.
LaggRemover v2.0.6 - 'Lag fix' plugins usually don't actually fix lag, they just delete spawned entities. If you have issues with entities disappearing, this plugin is likely the cause.

chilly otter
#

What I initially noticed is that your server starts up fine, however, your server runs into issues after joining the server.

I also noticed the entity count goes up, quick.

[17:06:20] [Server thread/INFO]: Petronator[/          ip          ] logged in with entity id 1
[17:06:44] [Server thread/INFO]: kiwisus[/          ip           ] logged in with entity id 76 at ([world]-179.95934948503063, 75.83999997377396, -365.1733116884545)
[17:10:42] [Server thread/INFO]: AmKiwi[/          ip           ] logged in with entity id 666 at ([world]-218.96047394942113, 120.03264306031436, -230.30602500258559)```
#

I'd like to request 2 things.

  1. Does the issue persist when you run your server without denizen scripts? i.e. Rename the /plugins/Denizen/Scripts folder, or move it elsewhere?
  2. Can you run a spark profile from console, without anyone joining the server -- both with and without the scripts folder.
pine cradle
#

gimme a sec

chilly otter
#

I also noticed that the dDiscordbot plugin loads before Denizen.
I would assume that Denizen is a dependancy for dDiscordbot, but, I am not sure about that.
Perhaps a more seasoned helped can help shed light on whether that is an issue.

#

Just restarted a server to check on my side. dDiscordbot loads before Denizen there as well, so I will assume that this is intended behavior.

pine cradle
#

found something, idk if it matters but when i load the server up with ddiscordbot theres this thing called JDA that appears in the console as well

#

also getting this:

chilly otter
#

If I compare my test server's Denizen log times
Mine:

[10:17:11 INFO]: +> [Denizen] Final full init took 3235ms.```

Yours:
```[16:54:43] [Server thread/INFO]: +> [DenizenCore] Scripts loaded! File load took 43ms, processing 27ms. 
[16:54:43] [Server thread/INFO]: +> [Denizen] Final full init took 10064ms.```
#

Your Denizen took 7 additional seconds to load, on start up over mine. Could be hardware differences.

#

!logs

strange pierBOT
# chilly otter !logs
Info: logs

Please post your full latest log file.

Background Info: One of the most helpful tools to identifying the source of a problem is your server logs file! Logs contain all sorts of important information like server and plugin versions, any error messages, and a lot more important information (More Info).

How To: Your log can be found in the logs folder within your server folder. The most recent log is a text file labeled latest.log. To get help using these logs, please open that file in a text editor and copy all of the text, then open https://paste.denizenscript.com/New/Log and paste the text into the box on the page. Then click "Submit" and copy the URL and paste that back into this channel.

Please do not upload the file to Discord or to other pastebin services, use the log pastebin linked above.

chilly otter
#

Screenshots are seldom helpful.

pine cradle
chilly otter
#

Can you run a spark profile with the scripts folder as well?

pine cradle
#

yup

#

it did automatically make a scripts folder upon running the server but it was empty

#

im pretty sure its the players and the ddiscordbot that kills the server

chilly otter
#

Could be, yes. Right now, I'd like to exclude scripts running in the background as a cause.

#

Because if it is an active player-related script, then the issue would most likely be a script, and not the dDiscordbot plugin.

pine cradle
#

the server with scripts and players but without ddiscordbot worked fine

chilly otter
#

dDiscordbot in of itself does little to nothing, unless instructed to do something.

pine cradle
#

o for the previous logs i forgot to make it so that ddiscordbot actually logged into a bot

#

oops

#

i should probably do that right

#

ill make it so it does that for the next spark profiles

#

nothing seemed to happen

#

most of the errors in the first log ( the original one ) had something to do with the paper watchdog and entities, but now that entities arent loaded there doesnt seem to be any errors about that

chilly otter
#

Can you think of any intensive scripts? For example something with all players, or big foreach/while loops?

pine cradle
#
  type: world
  events:
    on player chats:
      - narrate "<&3><player.name>:<&f> <context.message> " targets:<server.online_players>
      - determine cancelled
    on player join:
      - if !<player.has_flag[joins]>:
        - flag <player> joins:1
        - announce "<&8>[<&6><&l>+<&r><&8>] <&r><&gradient[from=yellow;to=aqua]><player.name>"
        - give cooked_beef player:<player> quantity:32
        - give acacia_boat player:<player>
        - determine none
      - else:
        - flag <player> joins:++
        - announce "<&8>[<&a>+<&8>] <&3><player.name>"
        - determine none
    on player quit:
      - announce "<&8>[<dark_red>-<&8>] <red><player.name>"
      - determine none
    after server start:
      - ~discordconnect id:mybot token:<secret[my_token]>
``` This is the only script
#

and im pretty sure its not intensive

chilly otter
#

This is your only script?

pine cradle
#

yup

#

havent done much with denizen yet

chilly otter
#

I noticed that the debug isn't set to false, so it should output to console, which I did not see happening in the initial log. Did you remove the debug key from the script?

pine cradle
#

in the initial log it was left out

uneven oliveBOT
pine cradle
#

sorry

chilly otter
#

Can you upload a full log, with debug, of your server crashing?

pine cradle
#

ok ill try

#

can't seem to get the server to produce any errors anymore

#

ill mark this as resolved until i find in what exact conditions it occurs