Skip to content

using luajit, android crashes when launching, while plainlua is ok #2341

Closed
@blairwang

Description

@blairwang

Apple M3, Android Studio2024.2

axmol 2.3.1

after setup env, my steps:

  1. modify axmol/3rdparty/CMakeList.txt, open luajit by add this line:

    option(AX_USE_LUAJIT "Use luajit instead plainlua option" ON)

  2. create a project, run:
    axmol new -p dev.axmol.hellolua -d /Users/xxx/xxx -l lua HelloLua

  3. build for android:
    axmol build -p android -a 'arm64'

  4. open the project using Android Studio2024.2, wait gradle sync ok and run 'HelloLua' with device "Xiaomi MI 8"(android 10, arm64):

it crashes at LuaStack::init() -> inner luaL_openlibs(_state);

Image

It will be ok when switch luajit to plainlua.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions