Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4692

Server randomly crashes from seemingly nothing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • None
      • OS: Windows
      • Java Version: 10
      • CPU: i5-6500
      • RAM: 16GB
    • This server is running CraftBukkit version git-Spigot-f09662d-f40143e (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
    • Yes

      The server sometimes randomly crashes and from what we can tell from the crash dump it's always related to

      app//net.minecraft.server.v1_13_R2.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:77)
      

      This has been happening for a few days (and versions)

      We are not sure if this is a bug with our code, Spigot or Java itself.
      We noticed the "ClanClaim.java:130" in the stack and checked our code, but that method only gets the state of a block

      // This is line 127
      public void validateContainers() {
          Set<Location> toRemove = new HashSet<>();
          // this.containers is just a Set<Location>
          for (Location location : this.containers) {
              // This is line 130
              if (!(location.getBlock().getState() instanceof Lockable)) {
                  toRemove.add(location);
              }
          }
          for (Location location : toRemove) {
              this.containers.remove(location);
          }
      }
      

        1. crashdump_4.txt
          27 kB
        2. crashdump_3.txt
          11 kB
        3. crashdump_2.txt
          109 kB
        4. crashdump_1.txt
          24 kB

            Unassigned Unassigned
            oskar3123 Oskar N
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: