mojira.dev

if you do something like 

/spreadplayers ~ ~ 1 1000000 true @e[type=!player]

an error occurs and the game crashes

expected outcome:
error appears in command chat saying "too big of number idiot make it smaller" or something like that
actual outcome:
the error appears but a second after the game crashes and you have to wait ~7 minutes just to get back onto the world (thats just my pc)

could somebody with more coding knowledge think of a fix please?

Seems to be semi-fixed in 22w18a. Doesn't crash, just lingers around for a very long amount of time.

It seems to be completely fixed in 1.20.2

Linked issues

Attachments

Comments 21

I wasn't able to get the crash with your command.

But using this command below caused the internal server to freeze and then the game would end up crashing due to running out of memory. I'm not sure if there is a memory leak here or if this command just requires so much memory. I only have 2Gb of RAM allocated to Minecraft right now which is the default.

/spreadplayers ~ ~ 1 1000000 false @e[type=!player]

Even having a reasonable number, like 1000 can cause the game to crash or nearly crash.

Alright! I have 32 GB of RAM in my computer. I allocated 16GB of it to Minecraft and I was able to run the command in my comment above successfully. It still took some time, but it didn't crash the game. That command must just be very memory hungry since it needs to figure out how to spread all the entities evenly.

[media]

[media]

We do not have enough information to find the cause of this issue.

Please attach the crash report found in [minecraft/crash-reports/crash-<DATE>-client.txt|https://minecrafthopper.net/help/finding-minecraft-data-folder/] here.
If you cannot find a crash report, please attach the full launcher log found in [minecraft/launcher_log.txt|https://minecrafthopper.net/help/finding-minecraft-data-folder/].

This issue is being temporarily closed as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

@violine1101 a crash report wasn't created when the game crashed. I did get an error code though.

Process crashed with exit code -805306369

Here is what Reliability History says about the crash

[media]

Here is what event viewer says about the crash

[media]

This time it closed automatically with this error code.

[media]

[media]

Here is the launcher log

[media]

11 more comments

I could reproduce in 23w14a.

Please attach a new crash report from a more recent version of Minecraft.

There is no crash report to be found; it just hangs and becomes permanently unresponsive; you have to force close it.

Still having this happen in 1.20.1

@unknown: Your Minecraft version is outdated. We currently take issues for version 1.20.2 and the latest snapshot.
Please update to the latest version as it includes the newest fixes. If you still have this problem after updating, then please edit your comment.

esoij

(Unassigned)

Confirmed

Platform

Important

Commands, Performance

1.18.2, 22w17a, 1.19 Release Candidate 1, 1.19, 1.19.1 Pre-release 3, 23w04a, 1.19.4, 23w14a, 1.21.8, 25w33a

Retrieved