QualityArmory icon indicating copy to clipboard operation
QualityArmory copied to clipboard

[Bug]: Randon lag when aiming the gun in scope

Open sunnythehero opened this issue 6 months ago • 0 comments

Confirmations

  • [X] I am using the latest plugin version with the required dependencies.
  • [X] There isn't any open issue that shows my problem

What happened?

paper 1.21 server using lastest ver for qa server has a huge lag spike when the gun is going into scope mode or iron sights this only happens sometimes spark profiler report here https://spark.lucko.me/DmU2T0Byek

Expected Behaviour

it should not make a lag spike when using iron sights

Plugins

quality armory , levelled mobs , chunky , graves , luck perms and wolftulities

Server Version

1.21

Relevant log output

[20:39:20 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH  - 1.21-77-2cd8c46 (MC: 1.21) ---
[20:39:20 ERROR]: The server has not responded for 10 seconds! Creating thread dump
[20:39:20 ERROR]: ------------------------------
[20:39:20 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[20:39:20 ERROR]: Ticking entity: minecraft:player, entity class: net.minecraft.server.level.ServerPlayer
[20:39:20 ERROR]: Entity status: removed: false, valid: true, alive: true, is passenger: false
[20:39:20 ERROR]: Entity UUID: 83fc531f-a66d-3a09-85e4-bed28610b88d
[20:39:20 ERROR]: Position: world: 'world' at location (-941.8688224429847, 76.0, 493.5306087371111)
[20:39:20 ERROR]: Velocity: (0.0, -0.0784000015258789, 0.0) (in blocks per tick)
[20:39:20 ERROR]: Entity AABB: AABB[-942.1688224549056, 76.0, 493.23060872519017] -> [-941.5688224310637, 77.79999995231628, 493.830608749032]
[20:39:20 ERROR]: Total packets processed on the main thread for all players: 64934
[20:39:20 ERROR]: ------------------------------
[20:39:20 ERROR]: Current Thread: Server thread
[20:39:20 ERROR]:       PID: 39 | Suspended: false | Native: false | State: RUNNABLE
[20:39:20 ERROR]:       Stack:
[20:39:20 ERROR]:               net.minecraft.nbt.CompoundTag.put(CompoundTag.java:215)
[20:39:20 ERROR]:               net.minecraft.nbt.NbtOps$NbtRecordBuilder.append(NbtOps.java:546)
[20:39:20 ERROR]:               net.minecraft.nbt.NbtOps$NbtRecordBuilder.append(NbtOps.java:538)
[20:39:20 ERROR]:               com.mojang.serialization.RecordBuilder$AbstractStringBuilder.lambda$add$1(RecordBuilder.java:100)
[20:39:20 ERROR]:               com.mojang.serialization.RecordBuilder$AbstractStringBuilder$$Lambda/0x00000231b3bdf7f0.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.serialization.DataResult$Instance.ap2(DataResult.java:434)
[20:39:20 ERROR]:               com.mojang.serialization.DataResult.apply2stable(DataResult.java:112)
[20:39:20 ERROR]:               com.mojang.serialization.RecordBuilder$AbstractStringBuilder.add(RecordBuilder.java:100)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.FieldEncoder.encode(FieldEncoder.java:24)
[20:39:20 ERROR]:               com.mojang.serialization.MapCodec$2.encode(MapCodec.java:82)
[20:39:20 ERROR]:               com.mojang.serialization.MapCodec$MapCodecCodec.encode(MapCodec.java:163)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.EitherCodec.lambda$encode$3(EitherCodec.java:34)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.EitherCodec$$Lambda/0x00000231b3bde470.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Left.map(Either.java:38)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.EitherCodec.encode(EitherCodec.java:33)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.EitherCodec.encode(EitherCodec.java:11)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.PairCodec.lambda$encode$2(PairCodec.java:32)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.PairCodec$$Lambda/0x00000231b4c8cfa8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.serialization.DataResult$Success.flatMap(DataResult.java:201)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.PairCodec.encode(PairCodec.java:32)
[20:39:20 ERROR]:               com.mojang.serialization.codecs.PairCodec.encode(PairCodec.java:12)
[20:39:20 ERROR]:               com.mojang.datafixers.types.templates.Hook$HookType$1.encode(Hook.java:95)
[20:39:20 ERROR]:               com.mojang.datafixers.types.templates.Named$NamedType$1.encode(Named.java:126)
[20:39:20 ERROR]:               com.mojang.datafixers.types.templates.Named$NamedType$1.encode(Named.java:115)
[20:39:20 ERROR]:               com.mojang.datafixers.types.Type.write(Type.java:126)
[20:39:20 ERROR]:               com.mojang.datafixers.types.Type.writeDynamic(Type.java:130)
[20:39:20 ERROR]:               com.mojang.datafixers.DataFix.lambda$writeFixAndRead$1(DataFix.java:50)
[20:39:20 ERROR]:               com.mojang.datafixers.DataFix$$Lambda/0x00000231b4c8cd68.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.lambda$mapRight$1(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$$Lambda/0x00000231b4a590c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.mapRight(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance.lambda$right$6(FunctionType.java:104)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance$$Lambda/0x00000231b4c7db20.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.lambda$mapRight$1(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$$Lambda/0x00000231b4a590c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.mapRight(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance.lambda$right$6(FunctionType.java:104)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance$$Lambda/0x00000231b4c7db20.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.lambda$mapRight$1(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$$Lambda/0x00000231b4a590c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.mapRight(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance.lambda$right$6(FunctionType.java:104)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance$$Lambda/0x00000231b4c7db20.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.lambda$mapRight$1(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$$Lambda/0x00000231b4a590c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.mapRight(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance.lambda$right$6(FunctionType.java:104)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance$$Lambda/0x00000231b4c7db20.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.lambda$mapRight$1(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$$Lambda/0x00000231b4a590c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.mapRight(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance.lambda$right$6(FunctionType.java:104)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance$$Lambda/0x00000231b4c7db20.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.lambda$mapRight$1(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$$Lambda/0x00000231b4a590c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[20:39:20 ERROR]:               com.mojang.datafixers.util.Either.mapRight(Either.java:166)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance.lambda$right$6(FunctionType.java:104)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$Instance$$Lambda/0x00000231b4c7db20.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function.lambda$compose$0(Function.java:68)
[20:39:20 ERROR]:               [email protected]/java.util.function.Function$$Lambda/0x00000231b4271100.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.FunctionType$$Lambda/0x00000231b4c7d8c8.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Comp.applyUnchecked(Comp.java:126)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Comp.lambda$eval$2(Comp.java:118)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Comp$$Lambda/0x00000231b4c6d810.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Fold.lambda$eval$2(Fold.java:91)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Fold$$Lambda/0x00000231b4c78fd0.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Comp.applyUnchecked(Comp.java:126)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Comp.lambda$eval$2(Comp.java:118)
[20:39:20 ERROR]:               com.mojang.datafixers.functions.Comp$$Lambda/0x00000231b4c6d810.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.datafixers.types.Type.capWrite(Type.java:167)
[20:39:20 ERROR]:               com.mojang.datafixers.types.Type.lambda$readAndWrite$10(Type.java:159)
[20:39:20 ERROR]:               com.mojang.datafixers.types.Type$$Lambda/0x00000231b4c6d390.apply(Unknown Source)
[20:39:20 ERROR]:               com.mojang.serialization.DataResult$Success.flatMap(DataResult.java:201)
[20:39:20 ERROR]:               com.mojang.datafixers.types.Type.readAndWrite(Type.java:158)
[20:39:20 ERROR]:               com.mojang.datafixers.DataFixerUpper.update(DataFixerUpper.java:78)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.legacy.CraftLegacy.<clinit>(CraftLegacy.java:411)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.util.CraftMagicNumbers.toLegacyData(CraftMagicNumbers.java:224)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.block.CraftBlock.getData(CraftBlock.java:166)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.handlers.BlockCollisionUtil.isSolid(BlockCollisionUtil.java:74)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.isSolid(GunUtil.java:827)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.getTargetedSolidMaxDistance(GunUtil.java:73)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.shootInstantVector(GunUtil.java:107)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.shootHandler(GunUtil.java:59)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.shootHandler(GunUtil.java:45)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.basicShoot(GunUtil.java:506)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.utils.GunUtil.basicShoot(GunUtil.java:468)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.Gun.USE_THIS_INSTEAD_OF_INDEVIDUAL_SHOOT_METHODS(Gun.java:156)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.Gun.shoot(Gun.java:539)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.Gun.onClick(Gun.java:925)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.guns.Gun.onLMB(Gun.java:762)
[20:39:20 ERROR]:               QualityArmory.jar//me.zombie_striker.qg.listener.QAListener.onClick(QAListener.java:901)
[20:39:20 ERROR]:               com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor69.execute(Unknown Source)
[20:39:20 ERROR]:               org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77)
[20:39:20 ERROR]:               co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81)
[20:39:20 ERROR]:               org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70)
[20:39:20 ERROR]:               io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54)
[20:39:20 ERROR]:               io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:131)
[20:39:20 ERROR]:               org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:628)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:595)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:551)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:546)
[20:39:20 ERROR]:               org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:542)
[20:39:20 ERROR]:               net.minecraft.server.network.ServerGamePacketListenerImpl.handleAnimate(ServerGamePacketListenerImpl.java:2513)
[20:39:20 ERROR]:               net.minecraft.network.protocol.game.ServerboundSwingPacket.handle(ServerboundSwingPacket.java:34)
[20:39:20 ERROR]:               net.minecraft.network.protocol.game.ServerboundSwingPacket.handle(ServerboundSwingPacket.java:16)
[20:39:20 ERROR]:               net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:56)
[20:39:20 ERROR]:               net.minecraft.network.protocol.PacketUtils$$Lambda/0x00000231b4a3fb48.run(Unknown Source)
[20:39:20 ERROR]:               net.minecraft.server.TickTask.run(TickTask.java:18)
[20:39:20 ERROR]:               net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:151)
[20:39:20 ERROR]:               net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1533)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:201)
[20:39:20 ERROR]:               net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:125)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1510)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1503)
[20:39:20 ERROR]:               net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:135)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.managedBlock(MinecraftServer.java:1462)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1584)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1300)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:330)
[20:39:20 ERROR]:               net.minecraft.server.MinecraftServer$$Lambda/0x00000231b3cd8430.run(Unknown Source)
[20:39:20 ERROR]:               [email protected]/java.lang.Thread.runWith(Thread.java:1596)
[20:39:20 ERROR]:               [email protected]/java.lang.Thread.run(Thread.java:1583)
[20:39:20 ERROR]: ------------------------------
[20:39:20 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH ---
[20:39:20 ERROR]: ------------------------------

sunnythehero avatar Jul 30 '24 11:07 sunnythehero