Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Game crashes on Android, "stack corruption detected" (log included) — Gideros Forum

Game crashes on Android, "stack corruption detected" (log included)

KarrizKarriz Member
edited July 2013 in General questions
Hi,
I've made a small game that runs fine in the Windows app player. Obviously I cannot test the accelerometer functionality on my PC, though.

When I try to run the game in Android, it always crashes when I enter the game scene. Menus load up fine.
Gideros Android app player just crashes without any messages.

Then I tried exporting the game to Eclipse and running it as a real Android application. Same thing happens, the game crashes when I select the game level.

However, Eclipse gives me a log:

07-29 21:23:46.116: D/dalvikvm(31640): Trying to load lib /mnt/asec/tk.digitoimi.spacelander-1/lib/libgideros.so 0x413b3b08
07-29 21:23:46.437: D/dalvikvm(31640): Added shared lib /mnt/asec/tk.digitoimi.spacelander-1/lib/libgideros.so 0x413b3b08
07-29 21:23:46.437: D/dalvikvm(31640): No JNI_OnLoad found in /mnt/asec/tk.digitoimi.spacelander-1/lib/libgideros.so 0x413b3b08, skipping init
07-29 21:23:46.437: D/dalvikvm(31640): Trying to load lib /mnt/asec/tk.digitoimi.spacelander-1/lib/libluasocket.so 0x413b3b08
07-29 21:23:46.457: D/dalvikvm(31640): Added shared lib /mnt/asec/tk.digitoimi.spacelander-1/lib/libluasocket.so 0x413b3b08
07-29 21:23:46.457: D/dalvikvm(31640): Trying to load lib /mnt/asec/tk.digitoimi.spacelander-1/lib/liblfs.so 0x413b3b08
07-29 21:23:46.467: D/dalvikvm(31640): Added shared lib /mnt/asec/tk.digitoimi.spacelander-1/lib/liblfs.so 0x413b3b08
07-29 21:23:46.467: D/dalvikvm(31640): Trying to load lib /mnt/asec/tk.digitoimi.spacelander-1/lib/libggooglebilling.so 0x413b3b08
07-29 21:23:46.507: D/dalvikvm(31640): Added shared lib /mnt/asec/tk.digitoimi.spacelander-1/lib/libggooglebilling.so 0x413b3b08
07-29 21:23:46.507: D/dalvikvm(31640): Trying to load lib /mnt/asec/tk.digitoimi.spacelander-1/lib/liblsqlite3.so 0x413b3b08
07-29 21:23:46.577: D/dalvikvm(31640): Added shared lib /mnt/asec/tk.digitoimi.spacelander-1/lib/liblsqlite3.so 0x413b3b08
07-29 21:23:47.037: D/Gideros_Java(31640): externalDir: /mnt/sdcard
07-29 21:23:47.037: D/Gideros_Java(31640): internalDir: /data/data/tk.digitoimi.spacelander/files
07-29 21:23:47.037: D/Gideros_Java(31640): cacheDir: /data/data/tk.digitoimi.spacelander/cache
07-29 21:23:47.277: D/libEGL(31640): loaded /system/lib/egl/libGLES_android.so
07-29 21:23:47.358: D/libEGL(31640): loaded /system/lib/egl/libEGL_mali.so
07-29 21:23:47.398: D/libEGL(31640): loaded /system/lib/egl/libGLESv1_CM_mali.so
07-29 21:23:47.398: D/libEGL(31640): loaded /system/lib/egl/libGLESv2_mali.so
07-29 21:23:47.578: D/OpenGLRenderer(31640): Enabling debug mode 0
07-29 21:26:33.249: D/Gideros(31640): *CppLuaBridge::luaEvent* stack NOT ok begin:3 end:7 delta:0
07-29 21:26:33.249: D/Gideros(31640): *EventDispatcherBinder::dispatchEvent* stack NOT ok begin:2 end:7 delta:0
07-29 21:26:33.249: D/Gideros(31640): *visit(MouseEvent* v)* stack NOT ok begin:0 end:7 delta:0
07-29 21:26:33.249: D/Gideros(31640): *CppLuaBridge::luaEvent* stack NOT ok begin:0 end:7 delta:0
07-29 21:26:33.249: D/Gideros(31640): *enterFrame* stack NOT ok begin:0 end:7 delta:0
07-29 21:26:33.249: D/Gideros(31640): C:/Users/Karri/Documents/Karri/spacelander_android/Space Lander/assets/assets/TiledAsWorldEditor.lua.jet:116: module 'bit' not found:
07-29 21:26:33.249: D/Gideros(31640): no field package.preload['bit']
07-29 21:26:33.249: D/Gideros(31640): no file './bit.lua'
07-29 21:26:33.249: D/Gideros(31640): no file '/usr/local/share/lua/5.1/bit.lua'
07-29 21:26:33.249: D/Gideros(31640): no file '/usr/local/share/lua/5.1/bit/init.lua'
07-29 21:26:33.249: D/Gideros(31640): no file '/usr/local/lib/lua/5.1/bit.lua'
07-29 21:26:33.249: D/Gideros(31640): no file '/usr/local/lib/lua/5.1/bit/init.lua'
07-29 21:26:33.249: D/Gideros(31640): no file './bit.so'
07-29 21:26:33.249: D/Gideros(31640): no file '/usr/local/lib/lua/5.1/bit.so'
07-29 21:26:33.249: D/Gideros(31640): no file '/usr/local/lib/lua/5.1/loadall.so'
07-29 21:26:33.249: D/Gideros(31640): stack traceback:
07-29 21:26:33.249: D/Gideros(31640): C:/Users/Karri/Documents/Karri/spacelander_android/Space Lander/assets/assets/TiledAsWorldEditor.lua.jet:116: in function 'IncludeBitOp'
07-29 21:26:33.249: D/Gideros(31640): C:/Users/Karri/Documents/Karri/spacelander_android/Space Lander/assets/assets/TiledAsWorldEditor.lua.jet:441: in function 'createTiles'
07-29 21:26:33.249: D/Gideros(31640): C:/Users/Karri/Documents/Karri/spacelander_android/Space Lander/assets/assets/TiledAsWorldEditor.lua.jet:625: in function 'drawLayers'
07-29 21:26:33.249: D/Gideros(31640): C:/Users/Karri/Documents/Karri/spacelander_android/Space Lander/assets/assets/TiledAsWorldEditor.lua.jet:664: in funct
07-29 21:26:33.249: A//system/bin/app_process(31640): stack corruption detected: aborted


The gamescene.lua needs TiledAsWorldEditor.lua to run the game level. That could be causing this bug.
It could also be related to bitop plugin which I do have installed.
Does someone understand what goes wrong here?

Comments

  • atilimatilim Maintainer
    Your code requires bitop plugin. Do you know how to add plugins to Android?
  • ar2rsawseenar2rsawseen Maintainer
    edited July 2013 Accepted Answer
    @Karriz it seems to be a bitop plugin.
    You need to add it inside your main activity in Android.
    Something like:
    System.loadLibrary("bitop");
    And check if you have libbitop.so files in your armeabi folders

    Likes: Karriz

    +1 -1 (+1 / -0 )Share on Facebook
  • KarrizKarriz Member
    Yeah, that did the trick!

    Though, how do you install plugins on the player?
  • ar2rsawseenar2rsawseen Maintainer
    @Karriz in your project directory you will find assets folder. Open it and delete the assets folder inside it. And build it now. You will have a player installed with your plugin ;)

    http://docs.giderosmobile.com/deployment.html and click Device player with plugins
  • KarrizKarriz Member
    Okay, thanks a lot!
Sign In or Register to comment.