Repository: EngineHub/WorldEdit

Issue #2488: World Edit causes MASSIVE memory leak in server. 
Created: 2024-03-15T14:23:30Z
WorldEdit Version
7.2.15
Platform Version
Forge 47.2.20
Confirmations

 I am using the most recent Minecraft release.
 I am using a version of WorldEdit compatible with my Minecraft version.
 I am using the latest or recommended version of my platform software.
 I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
 I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description
World edit seems to inflate the heap for servers to sizes that pretty much cause the server to lag out. It took me forever to find out what mod was causing the tps to drop because I thought it was a mod that adds content and features. But somehow it's being caused by world edit. I extracted the Heap using spark and was able to get this information.
World edit is currently causing a memory leak that occupies 1.1 GB worth of Memory. Which makes my server unplayable when world edit is installed.
I have provided the full heap file so someone with more knowledge can get to the bottom of this.
heap-2024-03-15_05.04.56_Leak_Suspects.zip
`469,374 instances of “com.sk89q.worldedit.world.block.BlockState”, loaded by “cpw.mods.modlauncher.TransformingClassLoader @ 0x686293dc8” occupy 1,204,680,040 (40.96%) bytes.
Most of these instances are referenced from one instance of “java.lang.Object[]”, loaded by “”, which occupies 4,194,328 (0.14%) bytes. The instance is referenced by “it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap @ 0x6d100fa38”, loaded by “cpw.mods.cl.ModuleClassLoader @ 0x68319eaa8”.
Thread “java.lang.Thread @ 0x6c7664080 FileSystemWatchService” has a local variable or reference to “cpw.mods.modlauncher.TransformingClassLoader @ 0x686293dc8” which is on the shortest path to “java.lang.Object[1048577] @ 0x713000000”. The thread java.lang.Thread @ 0x6c7664080 FileSystemWatchService keeps local variables with total size 528 (0.00%) bytes.
The stacktrace of this Thread is available. See stacktrace. See stacktrace with involved local variables.
Keywords
com.sk89q.worldedit.world.block.BlockState
cpw.mods.modlauncher.TransformingClassLoader
java.lang.Object[]
it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap
cpw.mods.cl.ModuleClassLoader`
Expected Behavior
I expect it not to do this?
Reproduction Steps

Host a server with World Edit
...Thats it

Anything Else?
No response

Duplicate issue #2574: 1.20.1 Forge  - Cannot load into any world, probably a mod conflict but need help
Created: 2024-07-07T20:46:54Z
WorldEdit Version
7.2.15
Platform Version
Forge 47.3.1
Confirmations

 I am using the most recent Minecraft release.
 I am using a version of WorldEdit compatible with my Minecraft version.
 I am using the latest or recommended version of my platform software.
 I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
 I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)

Bug Description
When I attempt to load a singleplayer save with WorldEdit in the mod folder, it loads quickly to 100% and then stays there indefinitely, and I have to force close Minecraft through Task Manager. This issue was originally occuring with my sibling, but now it seems to happen for me, too. It wasn't always the case, but I can not figure out what changed.
Here is my latest.log: https://gist.github.com/katubug/9d3555b3bde17db08c58cbbfff1af8f0
Expected Behavior
I expect the world to load in.
Reproduction Steps

Attempt to load into a new or existing save

Anything Else?
I am hoping that y'all can offer me some insight as to what might be the issue. I am fairly confident it's a mod conflict, but I just do not have it in me to do a binary search lately. Any help is appreciated. Thank you.

Closing comment (2024-07-07T21:06:30Z): prob same as #2488, #2522, etc