1.20.1 Game crashes when I try to climb on the eaves
I'm not sure if it was caused by Parcool, this is the report before my breakdown
[20:16:25] [Render thread/ERROR]: Reported exception thrown!
net.minecraft.ReportedException: Ticking entity
at net.minecraft.world.level.Level.m_46653_(Level.java:488) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.multiplayer.ClientLevel.m_194182_(ClientLevel.java:256) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.world.level.entity.EntityTickList.m_156910_(EntityTickList.java:54) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.multiplayer.ClientLevel.m_104804_(ClientLevel.java:254) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.Minecraft.m_91398_(Minecraft.java:1814) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1112) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:718) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.main.Main.main(Main.java:218) ~[1.20.1.jar:?]
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:580) ~[?:?]
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.3.12.jar:?]
at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.3.12.jar:?]
at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.3.12.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.IndexOutOfBoundsException: Index: 0, Size: -1
at java.util.LinkedList.checkPositionIndex(LinkedList.java:571) ~[?:?]
at java.util.LinkedList.listIterator(LinkedList.java:878) ~[?:?]
at java.util.AbstractList.listIterator(AbstractList.java:313) ~[?:?]
at java.util.AbstractSequentialList.iterator(AbstractSequentialList.java:240) ~[?:?]
at java.util.Collection.removeIf(Collection.java:581) ~[?:?]
at com.alrex.parcool.common.action.CancelMarks.cancelSneak(CancelMarks.java:32) ~[ParCool-1.20.1-3.3.0.4.jar%231389!/:3.3.0.4]
at net.minecraft.client.player.LocalPlayer.handler$lpn000$parcool$onIsShiftKeyDown(LocalPlayer.java:11659) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.client.player.LocalPlayer.m_6144_(LocalPlayer.java) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.world.entity.Entity.m_20164_(Entity.java:2166) ~[client-1.20.1-20230612.114412-srg.jar%231590!/:?]
at net.minecraft.world.phys.shapes.EntityCollisionContext.
I wonder if this is actually caused by ParCool.
In fact, the stacktrace shows the exception occured during excuting ParCool code, but it provides error message Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: -1
I think normally size of LinkedList is never negative value. If this problem occured as result of normal operation, I think the almost only possiblity of the cause is conflict of multi thread access.
If so, it means there was a code accessed it(concretely LocalPlayer.isShiftKeyDown) from non-main thread. However I don't remember writing such code... so other mod might have done its operation but I cannot specify which mod did from this error in that case
Hmm what is the cause?
emmm Sorry, I have only seen this error twice and may not be able to reproduce or provide a more detailed report. I was trying to climb up a trapdoor at the time and then crashed. I don't think this is a big problem and there is no need to worry about it
No problem, thanks for reporting
I tried triggering the error again and got a more complete report. I hope it's useful to you
The reason why I reported an error this time is probably like this
Thanks, I'll try with it