ichttt / FirstAid

A Minecraft Mod that changes the vanilla health system
GNU General Public License v3.0
27 stars 28 forks source link

[1.19.4]Crash when join multiplayer server #202

Open HongkyVietnamese opened 1 year ago

HongkyVietnamese commented 1 year ago

Minecraft crashed when I joined a multiplayer server.

ichttt commented 1 year ago

Please add a crash log to the report

ichttt commented 1 year ago

Ok I found the issue. MC 1.19.4 made the damage sources semi-data driven, which means that they are not available until the world is loaded. Due to this, the FirstAid registry has been moved to be loaded when the level is read from disk. Which means the client now doesn't have a copy of the registry and thus crashes. Unfortunally this is not going to be solved easily, so it might take some time before I can fix this issue.

pearlroy commented 1 year ago

I am playing 1.19.4 and got same crash, please fix it as soon as, I will be really thankful

XyDark commented 8 months ago

Got the same crash as-well, any news on the fix?

Mirusical commented 5 months ago

Have the same crash here. any progress on the fix?

GatoArtStudios commented 4 months ago

Hello, I would like to know if you have documentation on version 1.19.2 or information to compile version 1.19.x into version 1.19.2-forge-43.3.0

Zajcu37CZ commented 4 months ago

This issue still remains any news to it?

[10b�e2024 00:41:26.111] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, {MINECRAFT_USERNAME}, --version, 1.20.1, --gameDir, C:\Users****\AppData\Roaming\com.modrinth.theseus\profiles\CoCG [Classic] (1), --assetsDir, C:\Users****\AppData\Roaming\com.modrinth.theseus\meta\assets, --assetIndex, 5, --uuid, {MINECRAFT_UUID}, --accessToken, ????????, --clientId, c4502edb-87c6-40cb-b595-64a280cf8906, --xuid, 0, --userType, msa, --versionType, release, --width, 854, --height, 480, --launchTarget, forgeclient, --fml.forgeVersion, 47.2.0, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [10b�e2024 00:41:26.117] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.9 by Azul Systems, Inc.; OS Windows 11 arch amd64 version 10.0 [10b�e2024 00:41:27.779] [main/INFO] [net.minecraftforge.fml.loading.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow [10b�e2024 00:41:28.009] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6 [10b�e2024 00:41:28.318] [main/INFO] [EARLYDISPLAY/]: Requested GL version 4.6 got version 4.6 [10b�e2024 00:41:28.357] [main/INFO] [mixin-transmog/]: Mixin Transmogrifier is definitely up to no good... [10b�e2024 00:41:28.374] [main/INFO] [mixin-transmog/]: crimes against java were committed [10b�e2024 00:41:28.389] [main/INFO] [mixin-transmog/]: Original mixin transformation service successfully crobbed by mixin-transmogrifier! [10b�e2024 00:41:28.426] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/****/AppData/Roaming/com.modrinth.theseus/profiles/CoCG%20%5BClassic%5D%20(1)/mods/Connector-1.0.0-beta.37+1.20.1.jar%23383%23386!/ Service=ModLauncher Env=CLIENT [10b�e2024 00:41:28.432] [pool-2-thread-1/INFO] [EARLYDISPLAY/]: GL info: AMD Radeon RX 5700 XT GL version 4.6.0 Core Profile Context ....231121, ATI Technologies Inc. [10b�e2024 00:41:29.377] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users****\AppData\Roaming\com.modrinth.theseus\meta\libraries\net\minecraftforge\fmlcore\1.20.1-47.2.0\fmlcore-1.20.1-47.2.0.jar is missing mods.toml file [10b�e2024 00:41:29.378] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users****\AppData\Roaming\com.modrinth.theseus\meta\libraries\net\minecraftforge\javafmllanguage\1.20.1-47.2.0\javafmllanguage-1.20.1-47.2.0.jar is missing mods.toml file [10b�e2024 00:41:29.380] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users****\AppData\Roaming\com.modrinth.theseus\meta\libraries\net\minecraftforge\lowcodelanguage\1.20.1-47.2.0\lowcodelanguage-1.20.1-47.2.0.jar is missing mods.toml file [10b�e2024 00:41:29.381] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users****\AppData\Roaming\com.modrinth.theseus\meta\libraries\net\minecraftforge\mclanguage\1.20.1-47.2.0\mclanguage-1.20.1-47.2.0.jar is missing mods.toml file [10b�e2024 00:41:29.806] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [10b�e2024 00:41:29.806] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [10b�e2024 00:41:29.808] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: geckolib. Using Mod File: C:\Users****\AppData\Roaming\com.modrinth.theseus\profiles\CoCG [Classic] (1)\mods\geckolib-forge-1.20.1-4.4.2.jar [10b�e2024 00:41:29.808] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: cloth_config. Using Mod File: C:\Users****\AppData\Roaming\com.modrinth.theseus\profiles\CoCG [Classic] (1)\mods\cloth-config-11.1.118-forge.jar [10b�e2024 00:41:29.808] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: C:\Users****\AppData\Roaming\com.modrinth.theseus\profiles\CoCG [Classic] (1)\mods\resourcefullib-forge-1.20.1-2.1.23.jar [10b�e2024 00:41:29.808] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 106 dependencies adding them to mods collection [10b�e2024 00:41:31.394] [main/INFO] [dev.su5ed.sinytra.connector.locator.DependencyResolver/]: Dependency resolution found 9 candidates to load [10b�e2024 00:41:33.006] [main/INFO] [dev.su5ed.sinytra.connector.service.hacks.ModuleLayerMigrator/]: Successfully made module authlib transformable [10b�e2024 00:41:36.253] [main/INFO] [mixin/]: Compatibility level set to JAVA_17 [10b�e2024 00:41:36.753] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.sonicether.soundphysics.MixinConnector] [10b�e2024 00:41:36.754] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [ca.spottedleaf.starlight.mixin.MixinConnector] [10b�e2024 00:41:36.765] [main/ERROR] [dev.su5ed.sinytra.connector.service.FabricMixinBootstrap/]: Non-unique Mixin config name mixinextras.init.mixins.json used by the mods com_github_llamalad7_mixinextras and mixinextras [10b�e2024 00:41:36.768] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, 1.20.1, --gameDir, C:\Users****\AppData\Roaming\com.modrinth.theseus\profiles\CoCG [Classic] (1), --assetsDir, C:\Users****\AppData\Roaming\com.modrinth.theseus\meta\assets, --uuid, {MINECRAFT_UUID}, --username, {MINECRAFT_USERNAME}, --assetIndex, 5, --accessToken, ????????, --clientId, c4502edb-87c6-40cb-b595-64a280cf8906, --xuid, 0, --userType, msa, --versionType, release, --width, 854, --height, 480] [10b�e2024 00:41:36.806] [main/WARN] [mixin/]: Reference map 'nerb-forge-refmap.json' for nerb.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:36.886] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix 5.14.0+mc1.20.1: 74 options available, 1 override(s) found

[10b�e2024 00:41:36.888] [main/INFO] [ModernFix/]: Applying Nashorn fix [10b�e2024 00:41:36.902] [main/INFO] [ModernFix/]: Applied Forge config corruption patch [10b�e2024 00:41:36.968] [main/INFO] [Embeddium/]: Loaded configuration file for Embeddium: 340 options available, 3 override(s) found [10b�e2024 00:41:36.970] [main/INFO] [Embeddium-GraphicsAdapterProbe/]: Searching for graphics cards... [10b�e2024 00:41:37.169] [main/INFO] [Embeddium-GraphicsAdapterProbe/]: Found graphics card: GraphicsAdapterInfo[vendor=AMD, name=AMD Radeon RX 5700 XT, version=DriverVersion=31.0.23013.3005] [10b�e2024 00:41:37.207] [main/WARN] [mixin/]: Reference map 'expanded_ecosphere-forge-refmap.json' for wwoo.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.254] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.256] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras_forge.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.413] [main/WARN] [mixin/]: Reference map 'FTBQuestsOptimizer.refmap.json' for ftbqoptimizer.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.420] [main/WARN] [mixin/]: Reference map 'mixins.thaumia.refmap.json' for mixins.thaumia.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.493] [main/INFO] [Canary/]: Loaded configuration file for Canary: 116 options available, 0 override(s) found [10b�e2024 00:41:37.500] [main/WARN] [mixin/]: Reference map 'maptooltip.refmap.json' for maptooltip.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.503] [main/WARN] [mixin/]: Reference map 'maptooltip.refmap.json' for maptooltip.forge.mixins.json could not be read. If this is a development environment you can ignore this message [10b�e2024 00:41:37.552] [main/INFO] [Puzzles Lib/]: Loading 296 mods:

[10b�e2024 00:45:43.022] [Render thread/INFO] [Framework/]: Unloading synced configs from server [10b�e2024 00:45:43.459] [Render thread/INFO] [ChunkBuilder/]: Stopping worker threads [10b�e2024 00:45:43.968] [Render thread/ERROR] [net.minecraft.client.Minecraft/FATAL]: Reported exception thrown! net.minecraft.ReportedException: Ticking entity at net.minecraft.world.level.Level.m46653(Level.java:488) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.multiplayer.ClientLevel.m194182(ClientLevel.java:256) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.world.level.entity.EntityTickList.m156910(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.multiplayer.ClientLevel.m104804(ClientLevel.java:254) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.Minecraft.m91398(Minecraft.java:1814) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.Minecraft.m91383(Minecraft.java:1112) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.Minecraft.m91374(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.main.Main.main(Main.java:218) ~[1.20.1-1.20.1-47.2.0.jar:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.2.0.jar:?] at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.2.0.jar:?] at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.2.0.jar:?] at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.getOrDefault(Object, Object)" because "ichttt.mods.firstaid.common.registries.FirstAidRegistryLookups.DEBUFF_BUILDERS" is null at ichttt.mods.firstaid.common.registries.FirstAidRegistryLookups.getDebuffs(FirstAidRegistryLookups.java:48) ~[firstaid-1.20.1-1.0.jar%23476!/:1.20.1-1.0] at ichttt.mods.firstaid.common.damagesystem.PlayerDamageModel.create(PlayerDamageModel.java:64) ~[firstaid-1.20.1-1.0.jar%23476!/:1.20.1-1.0] at net.minecraftforge.common.util.LazyOptional.getValue(LazyOptional.java:99) ~[forge-1.20.1-47.2.0-universal.jar%23619!/:?] at net.minecraftforge.common.util.LazyOptional.orElseThrow(LazyOptional.java:258) ~[forge-1.20.1-47.2.0-universal.jar%23619!/:?] at ichttt.mods.firstaid.common.util.CommonUtils.getDamageModel(CommonUtils.java:139) ~[firstaid-1.20.1-1.0.jar%23476!/:1.20.1-1.0] at ichttt.mods.firstaid.common.EventHandler.tickPlayers(EventHandler.java:152) ~[firstaid-1.20.1-1.0.jar%23476!/:1.20.1-1.0] at ichttt.mods.firstaid.common.__EventHandler_tickPlayers_PlayerTickEvent.invoke(.dynamic) ~[firstaid-1.20.1-1.0.jar%23476!/:1.20.1-1.0] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:73) ~[eventbus-6.0.5.jar%23150!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:315) ~[eventbus-6.0.5.jar%23150!/:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:296) ~[eventbus-6.0.5.jar%23150!/:?] at net.minecraftforge.event.ForgeEventFactory.onPlayerPostTick(ForgeEventFactory.java:920) ~[forge-1.20.1-47.2.0-universal.jar%23619!/:?] at net.minecraft.world.entity.player.Player.m8119(Player.java:285) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.player.AbstractClientPlayer.m8119(AbstractClientPlayer.java:70) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.player.LocalPlayer.m8119(LocalPlayer.java:189) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.client.multiplayer.ClientLevel.m104639(ClientLevel.java:274) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] at net.minecraft.world.level.Level.m46653(Level.java:479) ~[client-1.20.1-20230612.114412-srg.jar%23614!/:?] ... 22 more [10b�e2024 00:45:43.981] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 10bae568-139e-45fa-a3d1-0a6aedbca06b [10b�e2024 00:45:43.989] [Render thread/FATAL] [net.minecraftforge.common.ForgeMod/]: Preparing crash report with UUID 6f3cf724-a5ac-4e55-89ec-78b88a4f7328