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 115 forks source link

操作箱子时监听器报错 #921

Closed Yushu2606 closed 1 year ago

Yushu2606 commented 1 year ago

异常模块

ScriptEngine (脚本引擎)

操作系统

Windows Server 2022

LiteLoader 版本

2.9.0 Actions#54 a5eaf62

BDS 版本

1.19.50.02

发生了什么?

操作箱子时监听器报错

复现此问题的步骤

  1. 开箱
  2. 修改箱内物品
  3. 关箱

有关的日志/输出

ERROR [LiteLoader] Event Callback Failed!
ERROR [LiteLoader] Uncaught Exception Detected!
ERROR [LiteLoader] In Event: PlayerOpenContainerEvent
ERROR [LiteLoader] at OPENSSL_Applink (0x7FFADF479280)  [LiteLoader.dll]
ERROR [LiteLoader] at ???????? (0x7FFB61E41080)  [VCRUNTIME140_1.dll]
ERROR [LiteLoader] at _NLG_Return2 (0x7FFB61E41150)  [VCRUNTIME140_1.dll]
ERROR [LiteLoader] at RtlCaptureContext2 (0x7FFB73973250)  [ntdll.dll]
ERROR [LiteLoader] at Translation::loadImpl (0x7FFADF377390)  [LiteLoader.dll]
ERROR [LiteLoader] at boost::detail::variant::invoke_visitor<boost::detail::variant::result_wrapper1<<lambda_ce141e3560630bf7e83a2f2220886c28>,boost::variant<boost::detail::variant::over_sequence<boost::mpl::l_item<boost::mpl::long_<22>,Details::ValueOrRef<PlayerSkinLoadedClientEvent const >,boost::mpl::l_item<boost::mpl::long_<21>,Details::ValueOrRef<PlayerAddEvent const >,boost::mpl::l_item<boost::mpl::long_<20>,Details::ValueOrRef<PlayerAddExpEvent const >,boost::mpl::l_item<boost::mpl::long_<19>,Details::ValueOrRef<PlayerAddLevelEvent const >,boost::mpl::l_item<boost::mpl::long_<18>,Details::ValueOrRef<PlayerArmorExchangeEvent const >,boost::mpl::l_item<boost::mpl::long_<17>,Details::ValueOrRef<PlayerDestroyBlockEvent const >,boost::mpl::l_item<boost::mpl::long_<16>,Details::ValueOrRef<PlayerUseNameTagEvent const >,boost::mpl::l_item<boost::mpl::long_<15>,Details::ValueOrRef<PlayerDropItemEvent const >,boost::mpl::l_item<boost::mpl::long_<14>,Details::ValueOrRef<PlayerEatFoodEvent const >,boost::mpl::l_item<boost::mpl::long_<13>,Details::ValueOrRef<PlayerDamageEvent const >,boost::mpl::l_item<boost::mpl::long_<12>,Details::ValueOrRef<PlayerFormCloseEvent const >,boost::mpl::l_item<boost::mpl::long_<11>,Details::ValueOrRef<PlayerFormResponseEvent const >,boost::mpl::l_item<boost::mpl::long_<10>,Details::ValueOrRef<PlayerOpenContainerEvent const >,boost::mpl::l_item<boost::mpl::long_<9>,Details::ValueOrRef<PlayerShootArrowEvent const >,boost::mpl::l_item<boost::mpl::long_<8>,Details::ValueOrRef<PlayerRespawnEvent const >,boost::mpl::l_item<boost::mpl::long_<7>,Details::ValueOrRef<PlayerStopLoadingEvent const >,boost::mpl::l_item<boost::mpl::long_<6>,Details::ValueOrRef<PlayerUpdateInteractionEvent const >,boost::mpl::l_item<boost::mpl::long_<5>,Details::ValueOrRef<PlayerSelectedItemChangedEvent const >,boost::mpl::l_item<boost::mpl::long_<4>,Details::ValueOrRef<PlayerDimensionChangeEvent const >,boost::mpl::l_item<boost::mpl::long_<3>,Details::ValueOrRef<PlayerSayCommandEvent const >, (0x7FF60A963A60)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at EventListenerDispatcher<PlayerEventListener>::onEvent (0x7FF60A96A560)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_b5f4d016c15503c10a510f7510a6cb3a>::operator()<PlayerOpenContainerEvent> (0x7FF60B225190)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ??@51ef6fe5662d1cf01f00ffc627339414@ (0x7FF60B22A6B0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at std::_Func_impl_no_alloc<<lambda_e6a439bba077dc55de9dcc14ba8c4f9e>,enum EventResult,gsl::not_null<PlayerEventListener * __ptr64> >::_Do_call (0x7FF60B22BB10)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at EventCoordinator<ActorEventListener>::processEvent (0x7FF60B1589F0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at PlayerEventCoordinator::sendEvent (0x7FF60B22BE50)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ChestBlockActor::openBy (0x7FF60BEC7CD0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ChestBlock::use (0x7FF60C10DE60)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Block::use (0x7FF60BDD2830)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at GameMode::useItemOn (0x7FF60B345E90)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Translation::loadImpl (0x7FFADF377390)  [LiteLoader.dll]
ERROR [LiteLoader] at <lambda_0733ea43741dc474e7d2f5311f906483>::operator() (0x7FF60BF6B260)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Container::createTransactionContext (0x7FF60B2DC2A0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at PlayerInventory::createTransactionContext (0x7FF60B2D77D0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ItemUseInventoryTransaction::handle (0x7FF60BF6BB80)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ServerNetworkHandler::handle (0x7FF60AD0B100)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Logger::initLockImpl (0x7FFADF350A20)  [LiteLoader.dll]
ERROR [LiteLoader] at Packet::handle (0x7FF60AFD9EE0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at NetworkHandler::_sortAndPacketizeEvents (0x7FF60ACE8B10)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_9d99988d1ae27229e5cb75de5d8fd242>::operator() (0x7FF60ACE7380)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at NetworkHandler::runEvents (0x7FF60ACEAEF0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Minecraft::update (0x7FF60B140E60)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ServerInstance::_update (0x7FF60B147280)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_9c72527c89bc5df41fe482e4153a365f>::operator() (0x7FF60B1455A0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at std::thread::_Invoke<std::tuple<<lambda_9c72527c89bc5df41fe482e4153a365f> >,0> (0x7FF60B1427E0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at recalloc (0x7FFB711F92C0)  [ucrtbase.dll]
ERROR [LiteLoader] at BaseThreadInitThunk (0x7FFB72682460)  [KERNEL32.DLL]
ERROR [LiteLoader] at RtlUserThreadStart (0x7FFB7392DF90)  [ntdll.dll]

ERROR [LiteLoader] Event Callback Failed!
ERROR [LiteLoader] Uncaught Exception Detected!
ERROR [LiteLoader] In Event: ContainerChangeEvent
ERROR [LiteLoader] at OPENSSL_Applink (0x7FFADF479280)  [LiteLoader.dll]
ERROR [LiteLoader] at ???????? (0x7FFB61E41080)  [VCRUNTIME140_1.dll]
ERROR [LiteLoader] at _NLG_Return2 (0x7FFB61E41150)  [VCRUNTIME140_1.dll]
ERROR [LiteLoader] at RtlCaptureContext2 (0x7FFB73973250)  [ntdll.dll]
ERROR [LiteLoader] at Translation::loadImpl (0x7FFADF377390)  [LiteLoader.dll]
ERROR [LiteLoader] at ContainerModel::networkUpdateItem (0x7FF60B2D9510)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at LevelContainerModel::_refreshSlot (0x7FF60B2DED80)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at LevelContainerModel::containerContentChanged (0x7FF60B2DEE30)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Container::setContainerChanged (0x7FF60B2DD8B0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ChestBlockActor::setItem (0x7FF60BEC89C0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at SimpleSparseContainer::pushAllToBackingContainer (0x7FF60C6A6510)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ContainerScreenValidation::tryCommitActionResults (0x7FF60C06D3A0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ItemStackRequestActionHandler::endRequest (0x7FF60B4DCDA0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ItemStackNetManagerServer::_handleRequestData (0x7FF60B22D5C0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ItemStackNetManagerServer::_processQueue (0x7FF60B22DB20)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ItemStackNetManagerServer::handleRequestBatch (0x7FF60B22EBB0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ServerNetworkHandler::handle (0x7FF60AD0B530)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Packet::handle (0x7FF60AFD9EE0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at NetworkHandler::_sortAndPacketizeEvents (0x7FF60ACE8B10)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_9d99988d1ae27229e5cb75de5d8fd242>::operator() (0x7FF60ACE7380)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at NetworkHandler::runEvents (0x7FF60ACEAEF0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Minecraft::update (0x7FF60B140E60)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ServerInstance::_update (0x7FF60B147280)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_9c72527c89bc5df41fe482e4153a365f>::operator() (0x7FF60B1455A0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at std::thread::_Invoke<std::tuple<<lambda_9c72527c89bc5df41fe482e4153a365f> >,0> (0x7FF60B1427E0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at recalloc (0x7FFB711F92C0)  [ucrtbase.dll]
ERROR [LiteLoader] at BaseThreadInitThunk (0x7FFB72682460)  [KERNEL32.DLL]
ERROR [LiteLoader] at RtlUserThreadStart (0x7FFB7392DF90)  [ntdll.dll]

ERROR [LiteLoader] Event Callback Failed!
ERROR [LiteLoader] Uncaught Exception Detected!
ERROR [LiteLoader] In Event: PlayerCloseContainerEvent
ERROR [LiteLoader] at OPENSSL_Applink (0x7FFADF479280)  [LiteLoader.dll]
ERROR [LiteLoader] at ???????? (0x7FFB61E41080)  [VCRUNTIME140_1.dll]
ERROR [LiteLoader] at _NLG_Return2 (0x7FFB61E41150)  [VCRUNTIME140_1.dll]
ERROR [LiteLoader] at RtlCaptureContext2 (0x7FFB73973250)  [ntdll.dll]
ERROR [LiteLoader] at Translation::loadImpl (0x7FFADF377390)  [LiteLoader.dll]
ERROR [LiteLoader] at ChestContainerManagerModel::`vector deleting destructor' (0x7FF60AA67650)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Player::deleteContainerManager (0x7FF60B20E770)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at std::_Func_impl_no_alloc<<lambda_d3fe2effd15462ef43b0396e8c3dc1b5>,void>::_Do_call (0x7FF60B1F4820)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ItemStackNetManagerServer::tryCloseContainerScreen (0x7FF60B22EFF0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ServerPlayer::doDeleteContainerManager (0x7FF60B1F6C40)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Packet::handle (0x7FF60AFD9EE0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at NetworkHandler::_sortAndPacketizeEvents (0x7FF60ACE8B10)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_9d99988d1ae27229e5cb75de5d8fd242>::operator() (0x7FF60ACE7380)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at NetworkHandler::runEvents (0x7FF60ACEAEF0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at Minecraft::update (0x7FF60B140E60)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at ServerInstance::_update (0x7FF60B147280)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at <lambda_9c72527c89bc5df41fe482e4153a365f>::operator() (0x7FF60B1455A0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at std::thread::_Invoke<std::tuple<<lambda_9c72527c89bc5df41fe482e4153a365f> >,0> (0x7FF60B1427E0)  [bedrock_server_mod.exe]
ERROR [LiteLoader] at recalloc (0x7FFB711F92C0)  [ucrtbase.dll]
ERROR [LiteLoader] at BaseThreadInitThunk (0x7FFB72682460)  [KERNEL32.DLL]
ERROR [LiteLoader] at RtlUserThreadStart (0x7FFB7392DF90)  [ntdll.dll]

插件列表

无关
MyNameInc commented 1 year ago

onOpenContainer and onCloseContainer and onInventoryChange

ShrBox commented 1 year ago

Try 1f461f3dfdcffc96f13d26a721987b596add9afc