To reproduce:
Open up a new world.
Type /debug start.
Put the attached data pack into the world's datapacks file. (Ignore the contents of it, it's just my data pack)
Type /reload.
-> Observe that:
It takes a really long time to load the functions (Likely normal)
There are intermittent lag spikes, accompanied with the good ole' "Can't keep up! Did the system time change, or is the server overloaded?" message.
The log is spammed with various debug messages saying things that shouldn't be taking too long, are taking too long, even though they aren't related the the functions:
Examples:
Something's taking too long! 'root.levels.Snapshot World.tick.tickBlocks.pollingChunks' took aprox 17966.221 ms
Something's taking too long! 'root.levels.Snapshot World.tick.tickBlocks' took aprox 17973.332 ms
Something's taking too long! 'root.levels.Snapshot World.tick' took aprox 17984.108004 ms
Something's taking too long! 'root.levels.Snapshot World' took aprox 17986.887334 ms
Something's taking too long! 'root.levels' took aprox 17989.877946 ms
Notes:
No functions are running.
NO FUNCTIONS ARE RUNNING!
The data pack is just filled with functions, which the game loads. They aren't running, and their contents don't matter. Just know there's about 2000 of them. The pack is around 120MB.
On an unrelated note, transferring item data from item to an entity's hand item is extremely hard, and it would be nice to have a command which could transfer certain blobs of nbt from one source to another. (That way, I wouldn't need 2000+ files.)
Attachments
Comments 3
Please mark this issue as fixed. It was simply too many functions, and my computer was intermittently running out of memory. π
really? I have a lot of functions, in a datapack, and it's still fine