Skip to content

[Bug] 同样是真命令注册在控制台直接执行正常但是通过mc.runcmdEx执行会报错 #384

Open

Description

@zmsgsb

Describe the bug

真命令注册后,控制台直接执行不会报错,正常执行,通过mc.runcmdEx 执行后,控制台报错:
21:17:19.581 ERROR [LeviLamina] Error in command videodirector:
21:17:19.581 ERROR [LeviLamina] Raw Seh Exception:
21:17:19.581 ERROR [LeviLamina] [0xC0000005:ntstatus] 0x%p 指令引用了 0x%p 内存。该内存不能为 %s。
21:17:19.581 ERROR [LeviLamina] Parameter 0: 0x8
21:17:19.581 ERROR [LeviLamina] Parameter 1: 0x14cfffffe6a

To Reproduce

1

Expected behavior

同样是真命令注册在控制台直接执行正常但是通过mc.runcmdEx执行不会报错

Screenshots

Image

Platform

win10

BDS Version

BDS 1.26.10

LeviLamina Version

LeviLamina-26.10.13.

LegacyScriptEngine Version

LSE 0.18.2

Additional context

1

Activity

  1. added theissue type on Aug 11, 2026
  2. zmsgsb commented on Aug 13, 2026

    @zmsgsb
    Author

    原因好像是因为不能热重载插件,热重载之后就会这样,重启服务器之后再使用指令则正常

  3. zmsgsb commented on Aug 14, 2026

    @zmsgsb
    Author

    还有一个bug,热重载后使用真命令会报错这个:

    14:56:05.578 ERROR [legacy-script-engine-quickjs] Fail in executing command "suicide"!
    14:56:05.578 ERROR [legacy-script-engine-quickjs] C++ Exception: script::Exception, from :
    14:56:05.578 ERROR [legacy-script-engine-quickjs] get on empty Global
    14:56:05.578 ERROR [legacy-script-engine-quickjs] In API: onExecute, In plugin: Y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions