koreader / android-luajit-launcher

Android NativeActivity based launcher for LuaJIT, implementing the main loop within Lua land via FFI
MIT License
131 stars 84 forks source link

Hello World is outdated #367

Closed amsitlab closed 2 years ago

amsitlab commented 2 years ago

--------- beginning of main 04-06 22:29:21.297 V/NativeGlue( 9444): WindowFocusChanged: 0xf2faaa40 -- 1

Frenzie commented 2 years ago

Is there any actual app involved? See https://github.com/koreader/android-luajit-launcher/tree/2ebbc9611bd6da19a5d47ce66dbff9e0b3f9fc03/examples/helloWorld

amsitlab commented 2 years ago

I was copy all files from example/* directory to assets/module/ and re-compile with make realease at first time opening apps, its showing toast with text like "helloworld" but still crash.

--------- beginning of crash 04-07 04:20:12.559 F/libc (25759): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd7d9e124 in tid 25774 (RenderThread), pid 25759 (reader.launcher)

NiLuJe commented 2 years ago

Spoiler alert: I'm not sure any of us have even tested the example app in forever, so I can't actually guarantee that it's even supposed to work as-is ;).

Frenzie commented 2 years ago

It's probably more something like Android 10/11 for example breaking that sleep from FFI.

On Thu, Apr 7, 2022, 00:24 NiLuJe @.***> wrote:

Spoiler alert: I'm not sure any of us have even tested the example app in forever, so I can't actually guarantee that it's even supposed to work as-is ;).

— Reply to this email directly, view it on GitHub https://github.com/koreader/android-luajit-launcher/issues/367#issuecomment-1090872213, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRQBPV5CMZWY3ZOYKVB6TVDYFKFANCNFSM5SWOCEGQ . You are receiving this because you commented.Message ID: @.***>

amsitlab commented 2 years ago

It's probably more something like Android 10/11 for example breaking that sleep from FFI. On Thu, Apr 7, 2022, 00:24 NiLuJe @.> wrote: Spoiler alert: I'm not sure any of us have even tested the example app in forever, so I can't actually guarantee that it's even supposed to work as-is ;). — Reply to this email directly, view it on GitHub <#367 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABRQBPV5CMZWY3ZOYKVB6TVDYFKFANCNFSM5SWOCEGQ . You are receiving this because you commented.Message ID: @.>

No, I runing that on android 9 pie (AndroidOne)

Frenzie commented 2 years ago

Probably same difference, in any case what I meant from my phone is that you see the effect of line 6, but not of line 8, meaning line 7 crashes.

https://github.com/koreader/android-luajit-launcher/blob/2ebbc9611bd6da19a5d47ce66dbff9e0b3f9fc03/examples/helloWorld/llapp_main.lua#L6-L8

Line 7 being:

https://github.com/koreader/android-luajit-launcher/blob/2ebbc9611bd6da19a5d47ce66dbff9e0b3f9fc03/examples/helloWorld/utils.lua#L1-L15