LiteLDev / LeviLamina

A lightweight, modular and versatile mod loader for Minecraft Bedrock Edition, formerly known as LiteLoaderBDS
https://levimc.org/software/levilamina
GNU Lesser General Public License v3.0
1.14k stars 117 forks source link

事件PlayerUseBucketEvent在某些情况下监听失败并报错 #855

Closed mrmagic2020 closed 2 years ago

mrmagic2020 commented 2 years ago

异常模块

LiteLoader (本体)

操作系统

Windows Server 2016

LiteLoader 版本

2.7.2

BDS 版本

1.19.30

发生了什么?

当玩家使用红石激活发射器,并发射装有细雪等内容的桶时,且有插件监听玩家使用桶的事件时,后台会报错;尤其是在使用高频红石不断收放细雪/水时(如猪人塔),服务器tps会大幅下降。 总结,触发条件: 1、红石激活发射器,发射器放/收装东西的桶; 2、有插件监听玩家使用桶的事件(如onUseBucketPlace)

复现此问题的步骤

1、装载监听onUseBucketPlace(或其他与桶相关的事件) 2、服务器内使用红石激活装有桶的发射器 3、后台报错

有关的日志/输出

18:34:25 ERROR [LiteLoader] Event Callback Failed!
18:34:25 ERROR [LiteLoader] Uncaught Exception Detected!
18:34:25 ERROR [LiteLoader] In Event: PlayerUseBucketEvent
18:34:25 ERROR [LiteLoader] at OPENSSL_Applink (0x7FFA8C8F8380)  [LiteLoader.dll]
18:34:25 ERROR [LiteLoader] at ???????? (0x7FFAB5B41080)  [VCRUNTIME140_1.dll]
18:34:25 ERROR [LiteLoader] at _NLG_Return2 (0x7FFAB5B41150)  [VCRUNTIME140_1.dll]
18:34:25 ERROR [LiteLoader] at RtlCaptureContext2 (0x7FFABF511060)  [ntdll.dll]
18:34:25 ERROR [LiteLoader] at Translation::loadImpl (0x7FFA8C7F7530)  [LiteLoader.dll]
18:34:25 ERROR [LiteLoader] at BucketItem::dispense (0x7FF6F6D5E060)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at DispenserBlock::dispenseFrom (0x7FF6F6D97170)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at DispenserBlock::tick (0x7FF6F6D98400)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at Block::queuedTick (0x7FF6F6A25750)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at BlockTickingQueue::tickPendingTicks (0x7FF6F6B67350)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at LevelChunk::tick (0x7FF6F6AFA8B0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at LevelChunkTickingSystem::_tickLevelChunksAroundActor (0x7FF6F5AA7AA0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at LevelChunkTickingSystem::_tickLevelChunksAroundActorView (0x7FF6F5AA7D90)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at EntityRegistryBase::View<1,EntityContext,EntityRegistry,entt::type_list<>,FlagComponent<ActorFlag>,BlockSourceComponent,LoadedChunksComponent>::each<void (__cdecl*)(ViewedEntityContextT<EntityContext,FlagComponent<ActorFlag>,BlockSourceComponent,LoadedChunksComponent> & __ptr64)> (0x7FF6F5AA7320)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at LevelChunkTickingSystem::tick (0x7FF6F5AA7EE0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at std::_Func_impl_no_alloc<<lambda_de46fc0e395ea1d73f8119238160f27c>,void,ITickingSystem &,TickingSystemId>::_Do_call (0x7FF6F5990010)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at `anonymous namespace'::DefaultEntitySystemsCollection::foreachTickingSystem (0x7FF6F5DFFDF0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at EntitySystems::tick (0x7FF6F59908A0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at <lambda_b44508b61f37969cf480280e06e54415>::operator() (0x7FF6F6883DB0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at Level::tickEntitySystems (0x7FF6F6898B70)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at Level::tick (0x7FF6F6897BE0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at ServerLevel::tick (0x7FF6F60A1AC0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at ???????? (0x7FFA8B667E8E)  [LiteLoader.Js.dll]
18:34:25 ERROR [LiteLoader] at ???????? (0x7FFA83A2AFA0)  [LiteLoader.Lua.dll]
18:34:25 ERROR [LiteLoader] at Schedule::nextTick (0x7FFA8C844750)  [LiteLoader.dll]
18:34:25 ERROR [LiteLoader] at GameSession::tick (0x7FF6F61B0B70)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at Minecraft::update (0x7FF6F5E8C660)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at ServerInstance::_update (0x7FF6F5EAAEA0)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at <lambda_9c72527c89bc5df41fe482e4153a365f>::operator() (0x7FF6F5EA9630)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at std::thread::_Invoke<std::tuple<<lambda_9c72527c89bc5df41fe482e4153a365f> >,0> (0x7FF6F5EA6930)  [bedrock_server_mod.exe]
18:34:25 ERROR [LiteLoader] at configthreadlocale (0x7FFABD291B20)  [ucrtbase.dll]
18:34:25 ERROR [LiteLoader] at BaseThreadInitThunk (0x7FFABE537020)  [KERNEL32.DLL]
18:34:25 ERROR [LiteLoader] at RtlUserThreadStart (0x7FFABF4C2630)  [ntdll.dll]

插件列表

18:38:59 INFO [Server] 插件列表 [25]
18:38:59 INFO [Server] - anti_cheats-1.19.30.0929.dll [v1.0.0] (anti_cheats-1.19.30.0929.dll)
18:38:59 INFO [Server]   anti_cheats-1.19.30.0929.dll
18:38:59 INFO [Server] - LLMoney [v2.7.0] (LLMoney.dll)
18:38:59 INFO [Server]   EconomyCore for LiteLoaderBDS
18:38:59 INFO [Server] - BackupHelper [v2.0.7] (BackupHelper.dll)
18:38:59 INFO [Server]   One command to backup your level
18:38:59 INFO [Server] - PermissionAPI [v2.7.0] (PermissionAPI.dll)
18:38:59 INFO [Server]   Builtin & Powerful permission API for LiteLoaderBDS
18:38:59 INFO [Server] - MSEffect [v1.0.0] (MSEffect.js)
18:38:59 INFO [Server]   Special effects!
18:38:59 INFO [Server] - MagicWelcome [v1.0.7] (MagicWelcome.js)
18:38:59 INFO [Server]   A Simple Welcome
18:38:59 INFO [Server] - CustomMap [v1.1.6] (CustomMap.dll)
18:38:59 INFO [Server]   Customize the pixels on the map
18:38:59 INFO [Server] - MovingLight [v1.8.2] (MovingLight.dll)
18:38:59 INFO [Server]   The moving light.
18:38:59 INFO [Server] - MConsole [v1.0.0] (MConsole.js)
18:38:59 INFO [Server]
18:38:59 INFO [Server] - ScheduleCmd [v1.1.1] (ScheduleCmd.dll)
18:38:59 INFO [Server]   Schedule your command execute in language of crontab
18:38:59 INFO [Server] - ScriptEngine-QuickJs [v2.7.2] (LiteLoader.Js.dll)
18:38:59 INFO [Server]   Javascript ScriptEngine for LiteLoaderBDS
18:38:59 INFO [Server] - BehaviorLog [v2.1.4] (BehaviorLog.lxl.js)
18:38:59 INFO [Server]   Behavior Log for LiteLoaderBDS
18:38:59 INFO [Server] - BetterSidebar [v1.0.0] (BetterSidebar.lxl.js)
18:38:59 INFO [Server]   BetterSidebar
18:38:59 INFO [Server] - CustomGetMap [v0.3.0] (CustomGetMap.js)
18:38:59 INFO [Server]   插件CustomMap自定义地图画的辅助插件
18:38:59 INFO [Server] - LxlBlackBe [v1.0.0] (LxlBlackBe.lxl.js)
18:38:59 INFO [Server]   LxlBlackBe
18:38:59 INFO [Server] - MBuffSwitch [v1.0.0] (MBuffSwitch.js)
18:38:59 INFO [Server]   个人BUFF开关
18:38:59 INFO [Server] - MElevator [v1.0.2] (MElevator.js)
18:38:59 INFO [Server]   方块电梯
18:38:59 INFO [Server] - MJoinContract [v1.0.0] (MJoinContract.js)
18:38:59 INFO [Server]   入服须知
18:38:59 INFO [Server] - MPlayerInfo [v1.0.0] (MPlayerInfo.js)
18:38:59 INFO [Server]   记录玩家信息
18:38:59 INFO [Server] - MRSpawner [v1.0.0] (MRSpawner.js)
18:38:59 INFO [Server]   设置公共物资生成点,开展物资争夺赛!
18:38:59 INFO [Server] - NilCDK [v1.0.0] (NilCDK.js)
18:38:59 INFO [Server]   NilCDK
18:38:59 INFO [Server] - ScriptEngine-Lua [v2.7.2] (LiteLoader.Lua.dll)
18:38:59 INFO [Server]   Lua ScriptEngine for LiteLoaderBDS
18:38:59 INFO [Server] - ScriptEngine-NodeJs [v2.7.2] (LiteLoader.NodeJs.dll)
18:38:59 INFO [Server]   Node.js ScriptEngine for LiteLoaderBDS
18:38:59 INFO [Server] - YoyoRobot [v0.0.13] (yoyorobot)
18:38:59 INFO [Server]   一个支持vps,面板的机器人
18:38:59 INFO [Server] - MProtector [v1.0.0] (MProtector.js)
18:38:59 INFO [Server]   地皮保护
18:38:59 INFO [Server]
18:38:59 INFO [Server]
18:38:59 INFO [Server] * 使用命令“ll list <Plugin Name>”来获取更多信息
Jasonzyt commented 2 years ago

335 #746 @quizhizhe

quizhizhe commented 2 years ago

阿这。。。。。估计发射器的桶装雪和桶装水处理也在这,有空我修下