
Что это
A mod for debugging Concurrent Modification Exceptions and Index Out of Bounds Exceptions.
- Тип: мод
- Загрузчик: fabric, forge, java-agent, neoforge
- Версии Minecraft: 1.0 – rd-20090515
- Скачиваний на Modrinth: 35 761
Подробно
Abstract Players and modpack developers sometimes find the game crashed with ConcurrentModificationExceptions (CME) and IndexOutOfBoundsExceptions (IOOBE), which only give stacktrace of current thread and are hard to trace which mod causes them. Here's one of the crashes which is caused by SimpleReloadInstance in 1.20.1 Forge:
So this is what the mod is developed for. Players who install this mod and add javaagent to JVM Argument correctly will receive a full log for modification history of a certain collection:
Usage First, add this jar to mods folder.
Second, edit your Java Virtual Machine Argument in your launcher. Add -javaagent:mods/CMESuckMyDuck- .jar= ; ; ; .
Finally, run the game, play and wait until the crash happens.
Usage for Other Java Projects This mod can not only be used for Minecraft debugging, but also be utilized to debug other java projects. Similar to Minecraft. The only different step is that you should add gson and asm jar to classpath (-cp) before javaagent, and add our CMESuckMyDuck- .jar to classpath after javaagent.
Arguments A full name of the class, which has a container that you would like to monitor. Use \ instead of . (a.k.a. the internal name of class).
A field name of the container in target class, which you would like to monitor. For Forge, use SRG name. For Fabric, use intermediary name. For NeoForge, use official name.
Currently, we only support three containers: List, Set, Map. This argument indicates the type of monitored container.
static or nonstatic. This argument indicates the container is a static field or non-static field.
How to get and Let's start with an example.
First, take a look at the stacktrace of CME/IOOBE:
Second, read the source code of SoundEngine and confirm which container is facing this issue:
Now we know we should monitor map field217942m (instanceToChannel in SoundEngine). Keep going.
Third, install this mod, and add "-javaagent:mods/CMESuckMyDuck-1.0.0.jar=net/minecraft/client/audio/SoundEngine;field217942m;Map;nonstatic" to Java Virtual Machine Argument. Relaunch the game and wait for the next crash.
Finally, open CMESuckMyDuck.log file and you will see which thread and which mod has concurrently modified the container.
Examples (JVM Arguments) ConcurrentModificationException from SoundEngine in Forge 1.16.5 Environment -javaagent:mods/CMESuckMyDuck-1.0.0.jar=net/minecraft/client/audio/SoundEngine;field217942m;Map;nonstatic
ConcurrentModificationException from PotionBrewing in Forge 1.20.1 Environment -javaagent:mods/CMESuckMyDuck-1.0.0.jar=net/minecraft/world/ite
Как установить
Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.
Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.
Комментарии 0
Комментарии к этому материалу отключены.
Читайте также
Happy Ghast old pixel resolution x Fresh Animations
makes the ghast and happy ghast have the old pixel resolution 16x16 of the ghast from before 1.21.6, rather than the new resolution 32x32… 05.12.2026
Minetale
Turns minecraft into undertale! 05.12.2026
zClanSystem
A lightweight clan-system plugin build for vanilla friendly smp server. Provides various clan systems like home, create, friendly fire and… 05.12.2026
Adams Weapons
this mods add a variety of weapons to the game and their special crafting recipes with custom items like sharpened obsidian and packed… 05.12.2026
Hello Knockback!
Send your friends and family to the 19th dimension 05.12.2026
Youtube Starter Kit
A modpack for Minecraft content creators, enhancing survival with client-side mods for better visuals, performance, and quality of life… 05.12.2026