16x16x16 Chunk of blocks randomly appearing while working with Redstone
CiaranGruber opened this issue ยท 6 comments
Versions
WorldEdit version: 7.1.0
Platform version: PaperMC v224
Describe the bug
While using WorldEdit around redstone circuits, occasionally a large block of about 16x16x16 random blocks would appear (note: width and height were within the chunk the player was in). These would usually be some sort of ore, for example redstone.
This would result in the entire server needing to be restarted in order to fix the section of the chunk (breaking the blocks would not work as they would reappear, there would be errors where the player started glitching (an example of the server and client disagreeing where the player is), etc. Logging out and back into the server failed to fix the bug including going to different worlds on the server). It is likely to be irrelevant but the blocks used in the commands were concrete blocks and glass blocks. Glitch is likely to do with how WorldEdit handles around redstone. And possibly something related to memory however the server memory usage wasn't anywhere near 100%
To Reproduce
Note: Exact steps are unknown as bug is difficult to reproduce
- Start placing redstone to do various circuits, not necessarily complex redstone
- Use worldedit commands such as //set and //replace, to make building the circuit quicker (ie. in a repetitive circuit)
- Continue working on redstone circuit and at some point (might take up to half an hour), the section of blocks may randomly appear in your chunk
If reproducing is attempted, it is recommended to try to create a circuit that is repeated often as this will cause you to use WorldEdit more often and is therefore more likely for the bug to appear.
Expected behavior
It is not expected that a huge block would randomly appear
Screenshots
Chunk Image
Additional Context
I have used WorldEdit elsewhere in the server with no ill effects, these issues only started appearing as I was working on redstone and only appeared after using a WorldEdit command. This has happened multiple (3) times on the server over the course of a few hours so this isn't a once-off event
Other Plugins Installed
- EssentialsX
- EssentialsKits
- WeatherVoting
- SinglePlayerSleep
- LocketteX
- CoreProtect
- WorldEdit
- WorldGuard
- OpenInv
- TrollBoss
- Lib's Disguises
- Vault
- Placeholder API
- ProtocolLib
- Dupe Fixes / Illegal Stack Remover
- NoCheatPlus (Updated-NoCheatPlus Fork)
- Exploit Fixer
- Orebfuscater (Team Wuffy Fork)
- LaggRemover
- LuckPerms
- LuckPermsGUI
- Multiverse-Core
- Multiverse-Portals
- Multiverse-NetherPortals
- Multiverse-Inventories
- Multiverse-SignPortals
- VoidGenerator
- RandomSpawnPlus
- SkyblockX
- SavageFactions
- PlotSquared (Was being done in a PlotSquared World)
- Parkour
- ParkourTopTen
- Dynmap
- Plot2Dynmap
- Dynmap-WorldGuard
- Dynmap-Structures
It seems to have stopped, so it was most likely Orebfuscator. If the issues continue and removing NoCheatPlus doesn't work, I'll reopen the issue. Thanks for helping
WorldEdit doesn't actually touch anything around chunksections directly. Can you provide a log of your server startup?
This is basically from the start of the server right up until the glitch occurs. Something interesting to note is that nothing comes up in the console as an error: https://pastebin.com/iVWB3jAx
Can you upload a log not from the Multicraft console? It skips a ton of data in the logs, e.g.:
03.05 08:33:59 [Multicraft] Skipped 118 lines due to rate limit (30/s)
Here was the log from the time the server was opened till the close. At 8:45 or 9:03 right after those commands, the blocks appeared: https://pastebin.com/hC2TPqTX
I have a feeling this is due to Orebufscator:
[09:49:34] [Server thread/WARN]: java.lang.ArrayIndexOutOfBoundsException: 256
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.chunkmap.ChunkMap.readSectionHeader(ChunkMap.java:331)
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.chunkmap.ChunkMap.moveToNextSection(ChunkMap.java:301)
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.chunkmap.ChunkMap.moveToNextLayer(ChunkMap.java:245)
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.chunkmap.ChunkMap.readNextBlock(ChunkMap.java:202)
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.obfuscation.Calculations.obfuscate(Calculations.java:164)
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.obfuscation.Calculations.obfuscateOrUseCache(Calculations.java:76)
[09:49:34] [Server thread/WARN]: at com.lishid.orebfuscator.hook.ProtocolLibHandler$1.onPacketSending(ProtocolLibHandler.java:134)
If it's not that, my other suspect is NoCheatPlus. Try removing those and see if it still occurs.