Closed JoshLoecker closed 11 months ago
I was able to solve the issue by deleting the pickpack
folder found at plugins/Geyser-Spigot/extensions/pickpack
and restarting the Minecraft server
Sorry for the spam, but it does not seem like this has solved the issue. The same error occurs
Looking through the logs, I also get an error about the PostInitializeEvent
function
[org.geysermc.geyser.event.GeyserEventBus]: An exception occurred while executing event GeyserPostInitializeEvent for subscriber org.geysermc.geyser.event.GeyserEventSubscriber
java.util.ConcurrentModificationException: null
at java.util.ArrayList.forEach(ArrayList.java:1513) ~[?:?]
at net.onebeastchris.geyser.extension.pickpack.Util.FileSaveUtil.load(FileSaveUtil.java:25) ~[?:?]
at net.onebeastchris.geyser.extension.pickpack.Util.PlayerStorage.<init>(PlayerStorage.java:28) ~[?:?]
at net.onebeastchris.geyser.extension.pickpack.PickPack.onPostInitialize(PickPack.java:83) ~[?:?]
at org.lanternpowered.lmbda.Lmbda$4.accept(Unknown Source) ~[Geyser-Spigot.jar:?]
at org.geysermc.event.subscribe.impl.SubscriberImpl.lambda$new$0(SubscriberImpl.java:55) ~[Geyser-Spigot.jar:?]
at org.geysermc.event.subscribe.impl.SubscriberImpl.invoke(SubscriberImpl.java:75) ~[Geyser-Spigot.jar:?]
at org.geysermc.event.bus.impl.BaseBusImpl.fireSilently(BaseBusImpl.java:201) ~[Geyser-Spigot.jar:?]
at org.geysermc.event.bus.impl.OwnedEventBusImpl.fireSilently(OwnedEventBusImpl.java:41) ~[Geyser-Spigot.jar:?]
at org.geysermc.event.bus.impl.BaseBusImpl.fire(BaseBusImpl.java:180) ~[Geyser-Spigot.jar:?]
at org.geysermc.event.bus.impl.OwnedEventBusImpl.fire(OwnedEventBusImpl.java:41) ~[Geyser-Spigot.jar:?]
at org.geysermc.geyser.GeyserImpl.startInstance(GeyserImpl.java:517) ~[Geyser-Spigot.jar:?]
at org.geysermc.geyser.GeyserImpl.initialize(GeyserImpl.java:216) ~[Geyser-Spigot.jar:?]
at org.geysermc.geyser.GeyserImpl.start(GeyserImpl.java:706) ~[Geyser-Spigot.jar:?]
at org.geysermc.geyser.platform.spigot.GeyserSpigotPlugin.postStartup(GeyserSpigotPlugin.java:209) ~[Geyser-Spigot.jar:?]
at org.geysermc.geyser.platform.spigot.GeyserSpigotPlugin$1.onServerLoaded(GeyserSpigotPlugin.java:178) ~[Geyser-Spigot.jar:?]
at com.destroystokyo.paper.event.executor.MethodHandleEventExecutor.execute(MethodHandleEventExecutor.java:40) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:77) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:git-Purpur-2094]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[purpur-1.20.2.jar:git-Purpur-2094]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[purpur-1.20.2.jar:git-Purpur-2094]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:617) ~[purpur-api-1.20.2-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:633) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:429) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:345) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1102) ~[purpur-1.20.2.jar:git-Purpur-2094]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[purpur-1.20.2.jar:git-Purpur-2094]
at java.lang.Thread.run(Thread.java:833) ~[?:?]
My java is not good at all, but this may be a fix for the issue ConcurrentModificationException
public static List<String> load(Path filepath) {
List<String> packs = readFromFile(filepath);
AtomicBoolean changed = new AtomicBoolean(false);
Iterator<String> iterator = packs.iterator();
while (iterator.hasNext()) {
String packId = iterator.next();
ResourcePack pack = loader.getPack(packId);
if (pack == null) {
logger.debug("Could not find pack with UUID " + packId + " in cache, removing from file");
iterator.remove(); // Safely remove the current element from the list
changed.set(true);
}
}
if (changed.get()) {
saveToFile(packs, filepath);
}
return packs;
}
This uses an iterator instead of the pack
variable to safely remove items from the list
Could you please send a full log via mclo.gs? I'll try to fix this later today.
Of course, here is the link
Please try updating to the 1.2.2 release, the issue should be fixed there. Thanks for reporting it!
Hi, I'm getting the following error when using pickpack version 1.2.1