Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Memory Leak From Mining Too Fast #355

Open
4 of 6 tasks
ForgottenAngel opened this issue Nov 12, 2023 · 7 comments
Open
4 of 6 tasks

[Bug]: Memory Leak From Mining Too Fast #355

ForgottenAngel opened this issue Nov 12, 2023 · 7 comments
Labels
bug Something isn't working Inactive Issue author has not responded thread is closed and labelled inactive until they respond

Comments

@ForgottenAngel
Copy link

ForgottenAngel commented Nov 12, 2023

General Info

  • I didn't added any mods
  • I can reproduce this issue consistently in single-player
  • I can reproduce this issue consistently in multi-player
  • I have searched for this issue previously and it was either (1) not previously reported, or (2) previously fixed and I am having the same problem.
  • I am crashing and can provide my crash report(s)
  • I am using the latest version of the modpack

Your launcher

PrismLauncher

Modpack version (Do not say latest check curseforge has it on modpacks icon)

1.7

Describe your issue

While mining in the Nether, memory usage will climb before finally being booted back to the menu screen with a message saying that Minecraft has run out of memory. The heap memory remains the same while the memory usage shown within Task Manager climbs. The error occurs after less than 5 minutes of mining.

If I mine slowly (i.e. blocks are not insta-breaking), the memory usage will climb with every block broken and every item dropped from mining but memory usage would then decrease after picking up the blocks that were left on the ground. Further testing using a Magnetic Ring and Magnet Upgrade on my backpack to ensure items are being picked up yielded the same result.

However, while mining with a pickaxe that could instantly break stone and netherrack, regardless of if items are being picked up, the memory usage will not decrease. Mining with an insta-break pickaxe would eventually lead to Minecraft consuming increasing amounts of memory before being kicked back to the menu screen with the error, "Minecraft has run out of memory." I suspect there is a memory leak occuring stemming from code that is executed when a block is broken.

Steps to reproduce the issue

  1. Equip any pickaxe that can instantly mine blocks, in this example one that can instantly mine netherrack and stone will be used.
  2. Start rapidly mining either netherrack or stone.

Result:
Minecraft will start consuming more and more memory with each block mined and picking up the blocks will not bring the memory usage back down.

Additional Information

latest.log

@ForgottenAngel ForgottenAngel added the bug Something isn't working label Nov 12, 2023
@DoctorMage
Copy link
Collaborator

DoctorMage commented Nov 18, 2023

define instant mine via enchants or just any?

Will test

@DoctorMage
Copy link
Collaborator

image
unbreaking 3
efficiency 5
netherite pickaxe with haste 2
image

@DoctorMage
Copy link
Collaborator

well this is a clue from logs

[12Nov2023 02:10:10.686] [Render thread/ERROR] [net.minecraft.client.multiplayer.PlayerController/]: Too many unacked block actions, dropping (Mutable{x=90, y=111, z=-36}, START_DESTROY_BLOCK)
[12Nov2023 02:10:10.812] [Render thread/ERROR] [net.minecraft.client.multiplayer.PlayerController/]: Too many unacked block actions, dropping (Mutable{x=90, y=110, z=-36}, START_DESTROY_BLOCK)
[12Nov2023 02:10:10.812] [Render thread/ERROR] [net.minecraft.client.multiplayer.PlayerController/]: Too many unacked block actions, dropping (Mutable{x=89, y=110, z=-36}, START_DESTROY_BLOCK)

@DoctorMage
Copy link
Collaborator

how much ram do you have allocated to the modpack

@ForgottenAngel
Copy link
Author

Hi, apologies for the late response. I tested only instant mine via Enchants. I tested this with both 6GB and 8GB of RAM allocated to the modpack.

@DoctorMage
Copy link
Collaborator

This only occurs on the server or in singleplayer as well
does it occur to other players?

@DoctorMage DoctorMage added the Inactive Issue author has not responded thread is closed and labelled inactive until they respond label Dec 4, 2023
@ForgottenAngel
Copy link
Author

It doesn't occur in singleplayer only on server. It occurs to every player on the server. I don't know if the information is useful but the server host being used is Bisect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Inactive Issue author has not responded thread is closed and labelled inactive until they respond
Projects
None yet
Development

No branches or pull requests

2 participants