Bug Closed · Could not replicate

Unable to create dungeon.

#4222 opened by Unknown 3 years ago

Unknownreported this bug

Hello, can you tell me why the following error is occurring? I am using pufferfish 1.20 and MythicDungeons 1.1.2 version.

[14:30:29] [Server thread/INFO]: playername issued server command: /md play dungeon02
[14:30:29] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'md' in plugin MythicDungeons v1.1.2-SNAPSHOT
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.v1_20_R1.CraftServer.dispatchCommand(CraftServer.java:933) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at net.minecraft.server.network.ServerGamePacketListenerImpl.handleCommand(ServerGamePacketListenerImpl.java:2526) ~[?:?]
    at org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer.chat(CraftPlayer.java:690) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at com.extendedclip.deluxemenus.action.ClickActionTask.run(ClickActionTask.java:70) ~[DeluxeMenus-1.14.0-DEV-null.jar:?]
    at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1482) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:450) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1396) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1173) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[pufferfish-1.20.1.jar:git-Pufferfish-4]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 10
    at java.util.ArrayList.add(ArrayList.java:455) ~[?:?]
    at java.util.ArrayList.add(ArrayList.java:467) ~[?:?]
    at net.playavalon.mythicdungeons.managers.QueueManager.enqueue(QueueManager.java:37) ~[MythicDungeons-1.1.2-SNAPSHOT.jar:?]
    at net.playavalon.mythicdungeons.MythicDungeons.sendToDungeon(MythicDungeons.java:1759) ~[MythicDungeons-1.1.2-SNAPSHOT.jar:?]
    at net.playavalon.mythicdungeons.MythicDungeons.onCommand(MythicDungeons.java:745) ~[MythicDungeons-1.1.2-SNAPSHOT.jar:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[pufferfish-api-1.20.1-R0.1-SNAPSHOT.jar:?]
    ... 13 more

When this error occurs, you cannot create a new dungeon until the server is restarted.

Unknowncommented

Hey there. Can you please try using the latest version of Mythic Dungeons (1.2.0) and let me know if the issue persists? If it does, please send me the error log again so I can investigate the stack trace on the latest version.

Furthermore, can you try performing the command manually? It appears that in the error, the command is being executed from a DeluxeMenus GUI, and I'm suspecting that may be breaking something. This is an extremely peculiar bug that shouldn't even be possible to occur unless the method by which you are executing the command is unexpected.

Unknowncommented

The above issue has not yet occurred in version 1.2.0, and there was also an error with the /md play command.

However, there are other problems.

Firstly, when the dungeon ends, the world should disappear, but it doesn't. Due to a conflict with ItemsAdder, dozens of worlds remain on the server. This is suspected to cause a severe memory leak.

Is this a problem with ItemsAdder? Please check the log file below.

Secondly, monster counting is not working properly. I've set it up so that a gate to the next area opens when a certain number of monsters are defeated.

However, even after defeating the required number of monsters, sometimes the gate does not open. Is there a way to debug this?

Thirdly, in the same vein, I've set it up to move to the boss area after defeating a certain number of monsters. Players do get teleported to the boss area, but sometimes the boss doesn't spawn.

Both of these issues occur about 1 in 50 times. Is there a way to debug these problems?

[00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: org.apache.commons.io.IOExceptionList: .\dungeon02_5 [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:331) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1192) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at MythicDungeons-1.2.0.jar//net.playavalon.mythicdungeons.dungeons.Instance.lambda$dispose$2(Instance.java:500) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/java.lang.Thread.run(Thread.java:833) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: Caused by: java.io.IOException: Cannot delete file: .\dungeon02_5\itemsadder [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1344) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:324) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: ... 8 more [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: Caused by: java.nio.file.FileSystemException: .\dungeon02_5\itemsadder\region\r.-1.-1.pregion: 다른 프로세스가 파일을 사용 중이기 때문에 프로세스가 액세스 할 수 없습니다 [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:275) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/java.nio.file.Files.deleteIfExists(Files.java:1191) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:161) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.file.DeletingPathVisitor.visitFile(DeletingPathVisitor.java:37) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2811) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at java.base/java.nio.file.Files.walkFileTree(Files.java:2882) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.file.PathUtils.visitFileTree(PathUtils.java:971) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.file.PathUtils.deleteDirectory(PathUtils.java:434) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.file.PathUtils.delete(PathUtils.java:391) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1341) [00:37:01] [Craft Scheduler Thread - 128 - MythicDungeons/WARN]: ... 9 more

Unknowncommented

Hey there.

Firstly, the ItemsAdder problem is in fact a problem with their plugin, as they are not releasing files belonging to Mythic Dungeons, thus preventing MD from clearing out the dungeons.

As for the second issue, remember that there is a radius on the mob death trigger. Verify that it is set to 0 for the radius (infinite) and that the name of the mob is entered correctly. If using vanilla mobs it must be a valid mob from the Spigot Entity list.

As for the boss spawning, I'm less sure of this one. Is the spawn arena far away? It may be too far away from the players to spawn. Try instead putting a distance checker that spawns the mob when the players enter the arena.

Unknowncommented

Since there hasn't been a follow-up to this, I'm going to close the issue. Please re-open it if you have any further information about the issue you're experiencing.

Sign in to join the discussion.