ForcePack icon indicating copy to clipboard operation
ForcePack copied to clipboard

Tons of Error: Couldn't pass PlayerResourcePackStatusEvent

Open Trard opened this issue 7 months ago • 10 comments

I have the latest version and almost every time player connects there is an error like this:

[12:00:41] [ForcePack - Task Executor #1622/ERROR] [com.velocitypowered.proxy.event.VelocityEventManager]: Couldn't pass PlayerResourcePackStatusEvent to forcepack 1.3.71 java.util.ConcurrentModificationException: null at java.base/java.util.HashMap$KeySpliterator.tryAdvance(HashMap.java:1739) ~[?:?] at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:147) ~[?:?] at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:588) ~[?:?] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:574) ~[?:?] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:560) ~[?:?] at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230) ~[?:?] at java.base/java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196) ~[?:?] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265) ~[?:?] at java.base/java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:672) ~[?:?] at com.convallyria.forcepack.velocity.handler.PackHandler.isWaitingFor(PackHandler.java:76) ~[?:?] at com.convallyria.forcepack.velocity.listener.ResourcePackListener.onPackStatus(ResourcePackListener.java:54) ~[?:?] at com.convallyria.forcepack.velocity.listener.Lmbda$23.execute(Unknown Source) ~[?:?] at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity5.jar:3.4.0-SNAPSHOT (git-876b9c36-b465)] at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:677) ~[velocity5.jar:3.4.0-SNAPSHOT (git-876b9c36-b465)] at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:542) ~[velocity5.jar:3.4.0-SNAPSHOT (git-876b9c36-b465)] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?] at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]

I use velocity

Trard avatar Apr 27 '25 09:04 Trard

This error doesn’t make any sense

Are you using the latest commit (NOT version)?

SamB440 avatar Apr 27 '25 09:04 SamB440

I don't. I use the latest release version https://github.com/SamB440/ForcePack/releases/tag/1.3.71

Trard avatar Apr 27 '25 19:04 Trard

Please use the latest commit

It's in combined/build/libs/forcepack-1.3.71-spigot-velocity.jar

https://github.com/SamB440/ForcePack/actions/runs/14624777661/artifacts/2996184132

SamB440 avatar Apr 27 '25 20:04 SamB440

I will try. Thanks

Trard avatar Apr 28 '25 11:04 Trard

I tried updating and there is the same error again

[10:48:02] [ForcePack - Task Executor #1/ERROR] [com.velocitypowered.proxy.event.VelocityEventManager]: Couldn't pass PlayerResourcePackStatusEvent to forcepack 1.3.72
java.util.ConcurrentModificationException: null
        at java.base/java.util.HashMap$HashIterator.remove(HashMap.java:1620) ~[?:?]
        at java.base/java.util.Collection.removeIf(Collection.java:582) ~[?:?]
        at com.convallyria.forcepack.velocity.handler.PackHandler.lambda$processWaitingResourcePack$1(PackHandler.java:55) ~[?:?]
        at java.base/java.util.HashMap.computeIfPresent(HashMap.java:1270) ~[?:?]
        at com.convallyria.forcepack.velocity.handler.PackHandler.processWaitingResourcePack(PackHandler.java:54) ~[?:?]
        at com.convallyria.forcepack.velocity.listener.ResourcePackListener.onPackStatus(ResourcePackListener.java:116) ~[?:?]
        at com.convallyria.forcepack.velocity.listener.Lmbda$24.execute(Unknown Source) ~[?:?]
        at com.velocitypowered.proxy.event.UntargetedEventHandler$VoidHandler.lambda$buildHandler$0(UntargetedEventHandler.java:56) ~[velocity5.jar:3.4.0-SNAPSHOT (git-876b9c36-b465)]
        at com.velocitypowered.proxy.event.VelocityEventManager.fire(VelocityEventManager.java:677) ~[velocity5.jar:3.4.0-SNAPSHOT (git-876b9c36-b465)]
        at com.velocitypowered.proxy.event.VelocityEventManager.lambda$fire$5(VelocityEventManager.java:542) ~[velocity5.jar:3.4.0-SNAPSHOT (git-876b9c36-b465)]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]

It doesn't seem to break anything, but it's hard to read the logs with this error basically everywhere.

Trard avatar May 01 '25 07:05 Trard

Are you using any plugins on your proxy? I’ve never seen this error and nobody else has reported it so I can only assume it’s a compatibility issue with another plugin

SamB440 avatar May 01 '25 09:05 SamB440

Are you using any plugins on your proxy? I’ve never seen this error and nobody else has reported it so I can only assume it’s a compatibility issue with another plugin

Yes. Here are plugins:

  • forcepack-1.3.71-spigot-velocity
  • LuckPerms-Velocity-5.4.141
  • SkinsRestorer
  • limboapi-1.1.27-SNAPSHOT
  • limboauth-1.1.14
  • minimotd-velocity-2.1.5
  • voicechat-velocity-2.5.20

I guess it might be compatibility issue with limboapi. (But I am not sure) Also there is a config line that might be relevant, but I don't know if ForcePack modify any packets.

# Enable if you are using plugins that modify packets. (e.g. ViaVersion, Raknetify or PacketEvents)
# Require 'save-uncompressed-packets: true' to work properly
compatibility-mode: false

Trard avatar May 01 '25 10:05 Trard

Same problem here

gummiangler avatar Jul 31 '25 00:07 gummiangler

Same problem here

That doesn't really help, do you share any of the plugins they mentioned?

SamB440 avatar Jul 31 '25 10:07 SamB440

@SamB440 I have these plugins

Image yes, i have viaversion, but the error occured before installing viaversion too

gummiangler avatar Jul 31 '25 11:07 gummiangler