Skip to content

[Crash] PWT 导致Better Ender Dragon数据包运行时崩溃服务器 #532

Description

@XChen446

自我检查表

  • 我已经浏览过 Issues 和 Leaf 文档, 并确保汇报的不是已知问题
  • 我勾选了所有框, 因为我根本就没仔细看他们是什么
  • 我正在使用从 https://www.leafmc.one/zh/download 下载的最新 Leaf 构建
  • 我无法在 最新 PaperPurpur 构建上复现此问题

问题描述

[22:14:23 ERROR]: [ca.spottedleaf.moonrise.common.util.TickThread] Thread Leaf World Ticking Thread - world failed main thread check: Cannot add entity off-main @ w
orld world_the_end - Is tick thread? true; Is server level tick thread? true; Currently ticking level: world; Is iterating over levels? true; Are we going to hard t
hrow? false
java.lang.Throwable: null
        at ca.spottedleaf.moonrise.common.util.TickThread.ensureTickThread(TickThread.java:110) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.level.ServerLevel.addEntity(ServerLevel.java:1753) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.level.ServerLevel.addFreshEntity(ServerLevel.java:1697) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.world.level.ServerLevelAccessor.lambda$addFreshEntityWithPassengers$0(ServerLevelAccessor.java:15) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411) ~[?:?]
        at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:807) ~[?:?]
        at net.minecraft.world.level.ServerLevelAccessor.addFreshEntityWithPassengers(ServerLevelAccessor.java:15) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.level.ServerLevel.tryAddFreshEntityWithPassengers(ServerLevel.java:1796) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.commands.SummonCommand.createEntity(SummonCommand.java:96) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.commands.SummonCommand.spawnEntity(SummonCommand.java:106) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.commands.SummonCommand.lambda$register$1(SummonCommand.java:50) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at com.mojang.brigadier.context.ContextChain.runExecutable(ContextChain.java:73) ~[brigadier-1.3.10.jar:?]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:29) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.commands.execution.tasks.ExecuteCommand.execute(ExecuteCommand.java:13) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.commands.execution.UnboundEntryAction.lambda$bind$0(UnboundEntryAction.java:8) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.commands.execution.CommandQueueEntry.execute(CommandQueueEntry.java:5) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.commands.execution.ExecutionContext.runCommandQueue(ExecutionContext.java:103) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.commands.Commands.executeCommandInContext(Commands.java:437) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.ServerFunctionManager.execute(ServerFunctionManager.java:59) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.world.level.timers.FunctionCallback.lambda$handle$1(FunctionCallback.java:20) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at net.minecraft.world.level.timers.FunctionCallback.handle(FunctionCallback.java:20) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.world.level.timers.FunctionCallback.handle(FunctionCallback.java:11) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.world.level.timers.TimerQueue.tick(TimerQueue.java:63) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.level.ServerLevel.tickTime(ServerLevel.java:1000) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.level.ServerLevel.tick(ServerLevel.java:909) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.MinecraftServer.tickLevel(MinecraftServer.java:1691) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at net.minecraft.server.MinecraftServer.lambda$tickChildren$18(MinecraftServer.java:1779) ~[leaf-1.21.8.jar:1.21.8-128-2777740]
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:545) ~[?:?]
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:328) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095) ~[?:?]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619) ~[?:?]
        at java.base/java.lang.Thread.run(Thread.java:1447) ~[?:?]

所期望的行为

数据包按预期正常运行

如何复现?

打开PWT功能
服务器安装Better Ender Dragon数据包1.21.8版本
服务端崩溃

Spark profiler 链接

不适用

错误日志 (如存在)

完整日志过大,不适用mclogs,需要另行渠道交接

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions