Skip to content

AE2在遍历网格节点时,节点集合被意外修改 #582

@psi-bit

Description

@psi-bit

Describe the bug

核心错误:java.util.ConcurrentModificationException
发生在AE2(Applied Energistics 2)的能源网格更新过程中(EnergyGridCache.onUpdateTick)。
根本原因是AE2在遍历网格节点时,节点集合被意外修改(如区块加载/卸载、设备连接断开等操作)。

To Reproduce

可能原因是区块加载/卸载 或者 玩家不通过断开连接方式退出服务器 而是直接点击游戏的×键关闭游戏。

Expected behavior

不应该发生崩溃问题

Additional context

https://mclo.gs/EXrPKpU 您可以访问这个链接来查看服务器的崩溃日志,但是内容比较杂,涵盖其他模组的错误信息,但是ae2是主导因素。

Environment

mohist1.12.2服务器环境
Mohist版本: 1.12.2-5af9344

  • Minecraft Version:
  • AE2 Version: 56.7
  • Forge Version:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions