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

LLSE热重载quickJs插件时ScriptEngine-NodeJs的报错信息 #701

Closed PosiedChoss closed 2 years ago

PosiedChoss commented 2 years ago

异常模块

ScriptEngine(脚本引擎)

操作系统

Windows 11

LiteLoader版本

2.5.1

BDS版本

1.19.20

发生了什么?

热重载quickJs插件时,ScriptEngine-NodeJs 2.5.1报错

复现此问题的步骤

ll reload ExampleRT

ExampleRT是quickJs插件

有关的日志/输出

ll reload ExampleRT
15:02:35 INFO [LiteLoader] ExampleRT unloaded.
15:02:35 INFO [ExampleRT] 测试代码1.0.0 加载完成!
15:02:35 INFO [LiteLoader] Dynamic command example already exists, changes will not be applied except for setOverload!
15:02:35 INFO [LiteLoader] QuickJs 插件 <ExampleRT> 已加载。
15:02:35 ERROR [LiteLoader] Uncaught C++ Exception Detected!
15:02:35 ERROR [LiteLoader] Error: Code [0] create EngineScope with a nullptr
15:02:35 ERROR [LiteLoader] In Event (class Event::ScriptPluginManagerEvent)
15:02:35 ERROR [LiteLoader] In Plugin <ScriptEngine-NodeJs 2.5.1>
15:02:35 INFO [Server] 插件 <ExampleRT> 已重载。

插件列表

15:02:22 INFO [Server] 插件列表 [5]
15:02:22 INFO [Server] - LLMoney [v2.5.0] (LLMoney.dll)
15:02:22 INFO [Server]   EconomyCore for LiteLoaderBDS
15:02:22 INFO [Server] - ScriptEngine-Lua [v2.5.1] (LiteLoader.Lua.dll)
15:02:22 INFO [Server]   Lua ScriptEngine for LiteLoaderBDS
15:02:22 INFO [Server] - ExampleRT [v1.0.0] (ExampleRT.lls.js)
15:02:22 INFO [Server]   测试代码
15:02:22 INFO [Server] - ScriptEngine-NodeJs [v2.5.1] (LiteLoader.NodeJs.dll)
15:02:22 INFO [Server]   Node.js ScriptEngine for LiteLoaderBDS
15:02:22 INFO [Server] - ScriptEngine-QuickJs [v2.5.1] (LiteLoader.Js.dll)
15:02:22 INFO [Server]   Javascript ScriptEngine for LiteLoaderBDS
PosiedChoss commented 2 years ago

图片

yqs112358 commented 2 years ago

已修复,等待2.6.0发布