RedProtect Anti-Grief

RedProtect Anti-Grief

73.3k Downloads

[BUG] Open Chest after Bootup the Server or restart the Server - Legacy Material Support Bug !

Gh3tt0b0y opened this issue ยท 1 comments

commented

Describe the bug
After Restart the Server an right click on a chest i got this in consol and the server laggs for 20sec.
In Console you see the Loading Legacy Material Support and it shows this message in the console :

To Reproduce
Steps to reproduce the behavior:

After Restart the Server an right click on a chest i got this in consol and the server laggs for 20sec.
In Console you see the Loading Legacy Material Support and it shows this message in the console :

[09:12:27 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - git-Paper-297 (MC: 1.20.2) ---
[09:12:27 ERROR]: The server has not responded for 15 seconds! Creating thread dump
[09:12:27 ERROR]: ------------------------------
[09:12:27 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[09:12:27 ERROR]: Ticking entity: minecraft:player, entity class: net.minecraft.server.level.EntityPlayer
[09:12:27 ERROR]: Entity status: removed: false, valid: true, alive: true, is passenger: false
[09:12:27 ERROR]: Entity UUID: 428fdfa3-a9db-4d14-8364-efd7ea8cf817
[09:12:27 ERROR]: Position: world: 'world' at location (245.5433849983195, 56.5, -325.2715958732844)
[09:12:27 ERROR]: Velocity: (0.0, -0.0784000015258789, 0.0) (in blocks per tick)
[09:12:27 ERROR]: Entity AABB: AABB[245.24338498639858, 56.5, -325.57159588520534] -> [245.84338501024044, 58.299999952316284, -324.9715958613635]
[09:12:27 ERROR]: Total packets processed on the main thread for all players: 158
[09:12:27 ERROR]: ------------------------------
[09:12:27 ERROR]: Current Thread: Server thread
[09:12:27 ERROR]: PID: 46 | Suspended: false | Native: false | State: RUNNABLE
[09:12:27 ERROR]: Stack:
[09:12:27 ERROR]: com.google.common.collect.ImmutableSet$EmptySetBuilderImpl.add(ImmutableSet.java:673)
[09:12:27 ERROR]: com.google.common.collect.ImmutableSet$Builder.add(ImmutableSet.java:527)
[09:12:27 ERROR]: com.google.common.reflect.TypeToken$4.visitParameterizedType(TypeToken.java:1111)
[09:12:27 ERROR]: com.google.common.reflect.TypeVisitor.visit(TypeVisitor.java:79)
[09:12:27 ERROR]: com.google.common.reflect.TypeToken.getRawTypes(TypeToken.java:1123)
[09:12:27 ERROR]: com.google.common.reflect.TypeToken.someRawTypeIsSubclassOf(TypeToken.java:889)
[09:12:27 ERROR]: com.google.common.reflect.TypeToken.isSubtypeOf(TypeToken.java:514)
[09:12:27 ERROR]: com.google.common.reflect.TypeToken.isSupertypeOf(TypeToken.java:454)
[09:12:27 ERROR]: com.mojang.datafixers.TypedOptic.lambda$instanceOf$2(TypedOptic.java:109)
[09:12:27 ERROR]: com.mojang.datafixers.TypedOptic$$Lambda$7111/0x00000008022be8b0.test(Unknown Source)
[09:12:27 ERROR]: [email protected]/java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
[09:12:27 ERROR]: [email protected]/java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:1002)
[09:12:27 ERROR]: [email protected]/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:129)
[09:12:27 ERROR]: [email protected]/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:527)
[09:12:27 ERROR]: [email protected]/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:513)
[09:12:27 ERROR]: [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
[09:12:27 ERROR]: [email protected]/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
[09:12:27 ERROR]: [email protected]/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
[09:12:27 ERROR]: [email protected]/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[09:12:27 ERROR]: [email protected]/java.util.stream.ReferencePipeline.allMatch(ReferencePipeline.java:637)
[09:12:27 ERROR]: com.mojang.datafixers.TypedOptic.instanceOf(TypedOptic.java:109)
[09:12:27 ERROR]: com.mojang.datafixers.TypedOptic.upCast(TypedOptic.java:98)
[09:12:27 ERROR]: com.mojang.datafixers.TypedOptic.apply(TypedOptic.java:44)
[09:12:27 ERROR]: com.mojang.datafixers.Typed.getOptional(Typed.java:66)
[09:12:27 ERROR]: net.minecraft.util.datafix.fixes.ItemStackTagFix.lambda$makeRule$1(ItemStackTagFix.java:30)
[09:12:27 ERROR]: net.minecraft.util.datafix.fixes.ItemStackTagFix$$Lambda$7020/0x000000080229b360.apply(Unknown Source)
[09:12:27 ERROR]: com.mojang.datafixers.DataFix.lambda$checked$3(DataFix.java:86)
[09:12:27 ERROR]: com.mojang.datafixers.DataFix$$Lambda$7102/0x00000008022b0490.apply(Unknown Source)
[09:12:27 ERROR]: com.mojang.datafixers.functions.Comp.applyUnchecked(Comp.java:126)
[09:12:27 ERROR]: com.mojang.datafixers.functions.Comp.lambda$eval$2(Comp.java:118)
[09:12:27 ERROR]: com.mojang.datafixers.functions.Comp$$Lambda$7101/0x00000008022b0248.apply(Unknown Source)
[09:12:27 ERROR]: com.mojang.datafixers.types.Type.capWrite(Type.java:165)
[09:12:27 ERROR]: com.mojang.datafixers.types.Type.lambda$readAndWrite$10(Type.java:157)
[09:12:27 ERROR]: com.mojang.datafixers.types.Type$$Lambda$7099/0x00000008022afd50.apply(Unknown Source)
[09:12:27 ERROR]: com.mojang.serialization.DataResult.lambda$flatMap$11(DataResult.java:139)
[09:12:27 ERROR]: com.mojang.serialization.DataResult$$Lambda$1069/0x00000008014c4c78.apply(Unknown Source)
[09:12:27 ERROR]: com.mojang.datafixers.util.Either$Left.map(Either.java:38)
[09:12:27 ERROR]: com.mojang.serialization.DataResult.flatMap(DataResult.java:137)
[09:12:27 ERROR]: com.mojang.datafixers.types.Type.readAndWrite(Type.java:156)
[09:12:27 ERROR]: com.mojang.datafixers.DataFixerUpper.update(DataFixerUpper.java:78)
[09:12:27 ERROR]: org.bukkit.craftbukkit.v1_20_R2.legacy.CraftLegacy.(CraftLegacy.java:402)
[09:12:27 ERROR]: org.bukkit.craftbukkit.v1_20_R2.util.CraftMagicNumbers.getMaterial(CraftMagicNumbers.java:124)
[09:12:27 ERROR]: org.bukkit.craftbukkit.v1_20_R2.block.CraftBlockState.getData(CraftBlockState.java:158)
[09:12:27 ERROR]: RedProtect-8.1.1-SNAPSHOT-b437-Spigot.jar//br.net.fabiozumbi12.RedProtect.Bukkit.listeners.PlayerListener.onPlayerInteract(PlayerListener.java:335)
[09:12:27 ERROR]: com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor282.execute(Unknown Source)
[09:12:27 ERROR]: org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
[09:12:27 ERROR]: co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81)
[09:12:27 ERROR]: org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[09:12:27 ERROR]: io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[09:12:27 ERROR]: io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126)
[09:12:27 ERROR]: org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615)
[09:12:27 ERROR]: org.bukkit.craftbukkit.v1_20_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:595)
[09:12:27 ERROR]: net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:537)
[09:12:27 ERROR]: net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1908)
[09:12:27 ERROR]: net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:37)
[09:12:27 ERROR]: net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.a(ServerboundUseItemOnPacket.java:9)
[09:12:27 ERROR]: net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:53)
[09:12:27 ERROR]: net.minecraft.network.protocol.PlayerConnectionUtils$$Lambda$9141/0x000000080281ae50.run(Unknown Source)
[09:12:27 ERROR]: net.minecraft.server.TickTask.run(TickTask.java:18)
[09:12:27 ERROR]: net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153)
[09:12:27 ERROR]: net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1324)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.d(MinecraftServer.java:193)
[09:12:27 ERROR]: net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1301)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1294)
[09:12:27 ERROR]: net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1371)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1156)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:315)
[09:12:27 ERROR]: net.minecraft.server.MinecraftServer$$Lambda$5299/0x0000000801aa41b8.run(Unknown Source)
[09:12:27 ERROR]: [email protected]/java.lang.Thread.run(Thread.java:833)
[09:12:27 ERROR]: ------------------------------
[09:12:27 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---
[09:12:27 ERROR]: ------------------------------

  • Server: Paper version git-Paper-297 (MC: 1.20.2) (Implementing API version 1.20.2-R0.1-SNAPSHOT) (Git: 250388d)
  • Plugin Version: RedProtect-8.1.1-SNAPSHOT-b437-Spigot.jar
  • Java Version: System Info: Java 17 (OpenJDK 64-Bit Server VM 17.0.7+7-Debian-1deb11u1) Host: Linux 5.4.140-1-pve (amd64)
commented

The cause is not ReProtect. Redprotect just appear in this log because is listening for events during the server lag. Read about for other cases of the same problems without redprotect: https://www.spigotmc.org/threads/initializing-legacy-material-support-unless-you-have-legacy-plugins-and-or-data-this-is-a-bug.415334/