TangoTek / TekTopia-Community

Bug/Issue tracking for TekTopia testing
36 stars 12 forks source link

How to crash a server #1032

Open Shunigate opened 4 years ago

Shunigate commented 4 years ago

name: How to crash a Tektopia server labels: Server crashing

Describe the bug This bug prevents you from making optimized homes and is harmful to server owners because of how common it is to try and do such a thing like this. It crashes servers, or at the very least brings their TPS down to 0.01 (or well, basically 0)

To Reproduce Steps to reproduce the behavior:

  1. Build a multiple story building
  2. Assign various jobs onto that building
  3. Make bounding boxes overlap
  4. See your server console being spammed
  5. See your server crashing

Expected behavior I had expected for this to just work, building one building with several jobs making it a very space efficient solution to making a town

Screenshots https://i.imgur.com/yLygdoI.png (the building in question) https://i.imgur.com/DvVUkAW.png (a room on the second floor) https://i.imgur.com/Njnejwa.png (another room on the second floor)

Server/Location Playing on a private server I created for friends running on a physical homeserver

Additional context I've ran a test by setting the max time per tick to -1 and letting it run over night. I eventually had my console say that it had skipped several million ticks (or some obscenely large number of miliseconds)

The town hall is a seperate building. The jobs found in this one are as follows: the Enchanter, Library, Butcher, Smith and the Cook

Shunigate commented 4 years ago

Okay so, I figured out what actually causes it

Having two item frames in a room with two doors with the same job will cause this

so, making a room with two doors, on both door you put say, a butcher item frame, will cause this issue