Skip to content

[Bug] ConcurrentModificationException in CottonHud #164

@alex3236

Description

@alex3236

Describe the bug

java.util.ConcurrentModificationException
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
	at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1620)
	at io.github.cottonmc.cotton.gui.client.CottonHud.lambda$static$0(CottonHud.java:30)
	at net.fabricmc.fabric.api.client.rendering.v1.HudRenderCallback.lambda$static$0(HudRenderCallback.java:27)
	at net.minecraft.class_329.handler$zgc000$render(class_329.java:1529)
	at net.minecraft.class_329.method_1753(class_329.java:415)
	at net.minecraft.class_757.method_3192(class_757.java:858)
	at net.minecraft.class_310.method_1523(class_310.java:1122)
	at net.minecraft.class_310.method_1514(class_310.java:737)
	at net.minecraft.client.main.Main.main(Main.java:236)
	at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:460)
	at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
	at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

To Reproduce
Steps to reproduce the behavior:
(Maybe) Use CottonHud.remove to remove a HUD before the HudRenderCallback is finished

Expected behavior Optional
A clear and concise description of what you expected to happen.

Screenshots Optional
If applicable, add screenshots to help explain your problem.

Version of the (please complete the following information):

  • LibGui 5.4.0 on 1.18.2

Additional context Optional
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions