Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server loading and reloading causes lag #85

Open
Euphillya opened this issue Dec 12, 2024 · 2 comments
Open

Server loading and reloading causes lag #85

Euphillya opened this issue Dec 12, 2024 · 2 comments
Labels
bug 插件的功能存在问题

Comments

@Euphillya
Copy link

Describe the bug | 描述你遇到的bug

If you have a lot of Oraxen items and Crafts, the bug occurs.

Steps to reproduce the bug | 复现此Bug的步骤

Create a large number of items on Oraxen and craft

Server version | 服务器版本

[14:35:36 INFO]: This server is running Bloom version 1.21.3-44-ver/1.21.3@77e5023 (2024-12-03T23:56:29Z) (Implementing API version 1.21.3-R0.1-SNAPSHOT)

(Its a fork of Folia which just adds features without changing how Folia works)

Craftorithm Version | Craftorithm的版本

[14:36:37 INFO]: [Craftorithm] Plugin version: 1.10.14-20241210

FULL server log | 完整服务器日志

[14:30:41 ERROR]: [io.papermc.paper.threadedregions.FoliaWatchdogThread] Global region has not responded in 5.13880412s:
[14:30:41 ERROR]: ------------------------------
[14:30:41 ERROR]: Current Thread: Region Scheduler Thread #0
[14:30:41 ERROR]:       PID: 99 | Suspended: false | Native: false | State: RUNNABLE
[14:30:41 ERROR]:       Stack:
[14:30:41 ERROR]:               [email protected]/java.util.stream.AbstractPipeline.wrapSink(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.stream.ReferencePipeline.toArray(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.stream.ReferencePipeline.toArray(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.stream.ReferencePipeline.toList(Unknown Source)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.Ingredient.lambda$display$8(Ingredient.java:148)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.Ingredient$$Lambda/0x00007feec7d9d1d8.apply(Unknown Source)
[14:30:41 ERROR]:               com.mojang.datafixers.util.Either$Right.map(Either.java:99)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.Ingredient.display(Ingredient.java:147)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.StonecutterRecipe.display(StonecutterRecipe.java:36)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.RecipeManager.unpackRecipeInfo(RecipeManager.java:323)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.RecipeManager.finalizeRecipeLoading(RecipeManager.java:167)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.RecipeManager.finalizeRecipeLoading(RecipeManager.java:128)
[14:30:41 ERROR]:               net.minecraft.world.item.crafting.RecipeManager.addRecipe(RecipeManager.java:121)
[14:30:41 ERROR]:               org.bukkit.craftbukkit.inventory.CraftShapedRecipe.addToCraftingManager(CraftShapedRecipe.java:55)
[14:30:41 ERROR]:               org.bukkit.craftbukkit.CraftServer.addRecipe(CraftServer.java:1662)
[14:30:41 ERROR]:               org.bukkit.craftbukkit.CraftServer.addRecipe(CraftServer.java:1626)
[14:30:41 ERROR]:               org.bukkit.Bukkit.addRecipe(Bukkit.java:1126)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager$$Lambda/0x00007feec920d380.accept(Unknown Source)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager.regRecipe(RecipeManager.java:165)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.registry.impl.ShapedRecipeRegistry.register(ShapedRecipeRegistry.java:73)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager.loadRecipeGroup(RecipeManager.java:103)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager.lambda$loadRecipes$0(RecipeManager.java:87)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager$$Lambda/0x00007feec920fb28.accept(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.util.concurrent.ConcurrentHashMap.forEach(Unknown Source)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager.loadRecipes(RecipeManager.java:87)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.recipe.RecipeManager.reloadRecipeManager(RecipeManager.java:79)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.Craftorithm.lambda$enable$0(Craftorithm.java:50)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.Craftorithm$$Lambda/0x00007feec9209cb8.run(Unknown Source)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.crypticlib.scheduler.FoliaScheduler.lambda$runnableToConsumer$0(FoliaScheduler.java:90)
[14:30:41 ERROR]:               Craftorithm-1.10.14.jar//com.github.yufiriamazenta.craftorithm.crypticlib.scheduler.FoliaScheduler$$Lambda/0x00007feec9209ed8.accept(Unknown Source)
[14:30:41 ERROR]:               io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:181)
[14:30:41 ERROR]:               io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37)
[14:30:41 ERROR]:               io.papermc.paper.threadedregions.RegionizedServer.globalTick(RegionizedServer.java:293)
[14:30:41 ERROR]:               io.papermc.paper.threadedregions.RegionizedServer$GlobalTickTickHandle.tickRegion(RegionizedServer.java:148)
[14:30:41 ERROR]:               io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:418)
[14:30:41 ERROR]:               ca.spottedleaf.concurrentutil.scheduler.SchedulerThreadPool$TickThreadRunner.run(SchedulerThreadPool.java:546)
[14:30:41 ERROR]:               [email protected]/java.lang.Thread.runWith(Unknown Source)
[14:30:41 ERROR]:               [email protected]/java.lang.Thread.run(Unknown Source)

Other files, you can drag and drop them here to upload | 其他文件,你可以拖拽文件到这里上传

No response

Images | 相关图片

No response

@Euphillya Euphillya added the bug 插件的功能存在问题 label Dec 12, 2024
@YufiriaMazenta
Copy link
Owner

YufiriaMazenta commented Dec 12, 2024

It seems a bit difficult to solve, as it involves minecraft's underlying handling of recipe registration

I'm curious to know how many recipes you have, as it's usually quite rare to see this happen

@YufiriaMazenta
Copy link
Owner

I introduced the segment loading function in the new version, which should solve your problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 插件的功能存在问题
Projects
None yet
Development

No branches or pull requests

2 participants