Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs插件无法正常加载“sqlite3”库 #9

Open
harry-xi opened this issue Nov 10, 2022 · 0 comments
Open

nodejs插件无法正常加载“sqlite3”库 #9

harry-xi opened this issue Nov 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@harry-xi
Copy link

异常模块

ScriptEngine (脚本引擎)

操作系统

Windows 10

LiteLoader 版本

LiteLoaderBDS 2.8.0+ae408ea

BDS 版本

1.19.40.02(ProtocolVersion 557)

发生了什么?

在nodejs插件中引用sqlite3这一npm包,在插件执行到require("sqlite3")语句时发生崩溃。
未测试其他含有二进制.node文件的nodejs包

复现此问题的步骤

  1. 创建一个nodejs插件
  2. 在插件中引入sqlite3
  3. 您应该可以看到崩溃

经测试 相关功能能在我的本地的nodejs环境中(v16.17.1)正常运行。

package.json

  "dependencies": {
    "sqlite3": "^5.1.2"
  },

有关的日志/输出

[Crashed!]
-- Unhandled Exception in -> KERNELBASE.dll
-- Exception Code: 0xC06D007F
-- Minidump generated in Directory ./logs/Crash

[StackTrace] Function RaiseException at 0x7FF9D2B2CCC0  [KERNELBASE.dll<6.2.19041.2193>]
[StackTrace] Function __delayLoadHelper2 at 0x7FF98D1DC264  [node_sqlite3.node]
-- At File D:\a\_work\1\s\src\vctools\delayimp\delayhlp.cpp : Line 375
[StackTrace] Function _tailMerge_node_exe at 0x7FF98D1C4D04  [node_sqlite3.node]
[StackTrace] Function _initterm at 0x7FF98D1D0104  [node_sqlite3.node]
-- At File minkernel\crts\ucrt\src\appcrt\startup\initterm.cpp : Line 16
[StackTrace] Function dllmain_crt_process_attach at 0x7FF98D1C51AC  [node_sqlite3.node]
-- At File D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp : Line 66
[StackTrace] Function dllmain_dispatch at 0x7FF98D1C5348  [node_sqlite3.node]
-- At File D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\dll_dllmain.cpp : Line 276
[StackTrace] Function RtlActivateActivationContextUnsafeFast at 0x7FF9D4FA9900  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function LdrGetProcedureAddressEx at 0x7FF9D4FFC020  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function LdrGetProcedureAddressEx at 0x7FF9D4FFC020  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function RtlSwitchedVVI at 0x7FF9D4FCCC80  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function RtlGetFullPathName_UstrEx at 0x7FF9D4FAD890  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function RtlDosPathNameToNtPathName_U at 0x7FF9D4FA7310  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function LdrLoadDll at 0x7FF9D4FA6A10  [ntdll.dll<6.2.19041.2130>]
[StackTrace] Function LoadLibraryExW at 0x7FF9D2B35360  [KERNELBASE.dll<6.2.19041.2193>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function ???????? at 0x1D2C5E65ABB  []
[StackTrace] Function ???????? at 0x146248A9F61  []
[StackTrace] Function ???????? at 0x3C95671A8D9  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x312D7A41B99  []
[StackTrace] Function ???????? at 0x3C95671A9B1  []
[StackTrace] Function ???????? at 0x24C4877DE09  []
[StackTrace] Function ???????? at 0x146248A9F61  []
[StackTrace] Function ???????? at 0x127575EB571  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3C95671B341  []
[StackTrace] Function ???????? at 0x2C672F69089  []
[StackTrace] Function ???????? at 0x127575F9F91  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x127575EB431  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x1B94D0AD08  []
[StackTrace] Function ???????? at 0x1D2C5E64F7C  []
[StackTrace] Function ???????? at 0x3C95671A8D9  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x127575EB431  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x146248A9F79  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1709  []
[StackTrace] Function ???????? at 0x3C95671A8D9  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x3C956716259  []
[StackTrace] Function ???????? at 0x2C672F69281  []
[StackTrace] Function ???????? at 0x127575F2931  []
[StackTrace] Function ???????? at 0x3  []
[StackTrace] Function ???????? at 0x127575EB3B1  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x1B94D0ADA0  []
[StackTrace] Function ???????? at 0x1D2C5E59587  []
[StackTrace] Function ???????? at 0x146248A9F21  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248A9F21  []
[StackTrace] Function ???????? at 0x127575EB3B1  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x300000000  []
[StackTrace] Function ???????? at 0x2C672F53119  []
[StackTrace] Function ???????? at 0x127575F2641  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x1B94D0ADF8  []
[StackTrace] Function ???????? at 0x1D2C5E589F5  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x2C672F4E561  []
[StackTrace] Function ???????? at 0x127575F24C1  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x146248AA089  []
[StackTrace] Function ???????? at 0x146248AA0C9  []
[StackTrace] Function ???????? at 0x1B94D0AEA0  []
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function ???????? at 0x1D2C5E64F7C  []
[StackTrace] Function ???????? at 0x3C95671A8D9  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x127575EB431  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x146248A9F79  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1709  []
[StackTrace] Function ???????? at 0x3C95671A8D9  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x3C9567186F9  []
[StackTrace] Function ???????? at 0x3C956716259  []
[StackTrace] Function ???????? at 0x2C672F69281  []
[StackTrace] Function ???????? at 0x127575F2931  []
[StackTrace] Function ???????? at 0x3  []
[StackTrace] Function ???????? at 0x127575EB3B1  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x1B94D0ADA0  []
[StackTrace] Function ???????? at 0x1D2C5E59587  []
[StackTrace] Function ???????? at 0x146248A9F21  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248A9F21  []
[StackTrace] Function ???????? at 0x127575EB3B1  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x300000000  []
[StackTrace] Function ???????? at 0x2C672F53119  []
[StackTrace] Function ???????? at 0x127575F2641  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x1B94D0ADF8  []
[StackTrace] Function ???????? at 0x1D2C5E589F5  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x2C672F4E561  []
[StackTrace] Function ???????? at 0x127575F24C1  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x146248AA089  []
[StackTrace] Function ???????? at 0x146248AA0C9  []
[StackTrace] Function ???????? at 0x1B94D0AEA0  []
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function ???????? at 0x1D2C5E59587  []
[StackTrace] Function ???????? at 0x146248A9F21  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x3D127CC1769  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248A9F21  []
[StackTrace] Function ???????? at 0x127575EB3B1  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x3D127CC1599  []
[StackTrace] Function ???????? at 0x300000000  []
[StackTrace] Function ???????? at 0x2C672F53119  []
[StackTrace] Function ???????? at 0x127575F2641  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x146248A9AF1  []
[StackTrace] Function ???????? at 0x1B94D0ADF8  []
[StackTrace] Function ???????? at 0x1D2C5E589F5  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x2C672F4E561  []
[StackTrace] Function ???????? at 0x127575F24C1  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x146248AA089  []
[StackTrace] Function ???????? at 0x146248AA0C9  []
[StackTrace] Function ???????? at 0x1B94D0AEA0  []
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function ???????? at 0x1D2C5E589F5  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x3C956712BC9  []
[StackTrace] Function ???????? at 0x146248AA039  []
[StackTrace] Function ???????? at 0x127575EB471  []
[StackTrace] Function ???????? at 0x2C672F4E561  []
[StackTrace] Function ???????? at 0x127575F24C1  []
[StackTrace] Function ???????? at 0x1  []
[StackTrace] Function ???????? at 0x146248AA089  []
[StackTrace] Function ???????? at 0x146248AA0C9  []
[StackTrace] Function ???????? at 0x1B94D0AEA0  []
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function RC4_options at 0x7FF916694180  [libnode.dll<16.16.0.0>]
[StackTrace] Function node::AsyncResource::CallbackScope::~CallbackScope at 0x7FF98C4D82A0  [LiteLoader.NodeJs.dll<2.8.0.0>]
[StackTrace] Function node::AsyncResource::CallbackScope::~CallbackScope at 0x7FF98C4D82A0  [LiteLoader.NodeJs.dll<2.8.0.0>]
[StackTrace] Function node::AsyncResource::CallbackScope::~CallbackScope at 0x7FF98C4D82A0  [LiteLoader.NodeJs.dll<2.8.0.0>]
[StackTrace] Function node::AsyncResource::CallbackScope::~CallbackScope at 0x7FF98C4D82A0  [LiteLoader.NodeJs.dll<2.8.0.0>]
[StackTrace] Function node::AsyncResource::CallbackScope::~CallbackScope at 0x7FF98C4D82A0  [LiteLoader.NodeJs.dll<2.8.0.0>]
[StackTrace] Function ShellLinkFile::`default constructor closure' at 0x7FF98FD98490  [LiteLoader.dll<2.8.0.0>]
[StackTrace] Function CommandSelector<Actor>::CommandSelector<Actor> at 0x7FF98FD8C210  [LiteLoader.dll<2.8.0.0>]
[StackTrace] Function CommandSelector<Actor>::CommandSelector<Actor> at 0x7FF98FD8C210  [LiteLoader.dll<2.8.0.0>]
[StackTrace] Function __scrt_common_main_seh at 0x7FF7581DD78C  [bedrock_server_mod.exe<1.19.40.02>]
[StackTrace] Function BaseThreadInitThunk at 0x7FF9D37E74A0  [KERNEL32.DLL<6.2.19041.2251>]
[StackTrace] Function RtlUserThreadStart at 0x7FF9D4FE2680  [ntdll.dll<6.2.19041.2130>]

插件列表

N/A
仅使安装该测试插件以及ll自带插件
@OEOTYAN OEOTYAN transferred this issue from LiteLDev/LeviLamina Oct 11, 2023
@yqs112358 yqs112358 added the bug Something isn't working label Oct 11, 2023
@ShrBox ShrBox transferred this issue from LiteLDev/LeviScript Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants