Skip to content

[Bug]: ll.getAllPluginInfo() ll.getPluginInfo()报错 #74

@lwenk

Description

@lwenk

Describe the bug

...

To Reproduce

test.js

mc.listen("onServerStarted", () => {
    //log(ll.listPlugins())
    let aaa = ll.getPluginInfo("test")
    log(aaa)
    let bbb = ll.getAllPluginInfo()
    log(bbb)
})

manifest.json

{
    "entry": "test.js",
    "name": "test",
    "type": "lse-quickjs",
    "dependencies": [
        {
            "name": "legacy-script-engine-quickjs"
        }
    ]
}

报错内容

[2024-03-22 15:39:27.439 ERROR][legacy-script-engine-quickjs] Fail in LLAPI
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] Raw Seh Exception:
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] [0xC0000005:ntstatus] 0x%p 指令引用了 0x%p 内存。该内存不能为 %s。
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] Parameter 0: 0x0
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] Parameter 1: 0x0
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] [failed to obtain stacktrace]
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] In API: LlClass::getPluginInfo
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] In Plugin: test
[2024-03-22 15:39:27.440 INFO][test] <Null>

[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] Fail in LLAPI
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] Raw Seh Exception:
[2024-03-22 15:39:27.440 ERROR][legacy-script-engine-quickjs] [0xC0000005:ntstatus] 0x%p 指令引用了 0x%p 内存。该内存不能为 %s。
[2024-03-22 15:39:27.441 ERROR][legacy-script-engine-quickjs] Parameter 0: 0x0
[2024-03-22 15:39:27.441 ERROR][legacy-script-engine-quickjs] Parameter 1: 0x0
[2024-03-22 15:39:27.441 ERROR][legacy-script-engine-quickjs] [failed to obtain stacktrace]
[2024-03-22 15:39:27.441 ERROR][legacy-script-engine-quickjs] In API: LlClass::getAllPluginInfo
[2024-03-22 15:39:27.441 ERROR][legacy-script-engine-quickjs] In Plugin: test
[2024-03-22 15:39:27.441 INFO][test] <Null>

Expected behavior

返回插件信息

Screenshots

No response

Platform

window 11

BDS Version

1.20.62

LeviLamina Version

0.9.4

LegacyScriptEngine Version

0.4.11

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions