Page 1 of 1

app crashes after a few seconds

Posted: Wed Feb 11, 2015 11:16 am
by Holonist
Hi, to my surprise I was able to run my game on my HTC One mini (android 4.4.3 i think).
Just had to remove all my shaders.

It is a rpg with different game states. All states work fine, except the "fight" state.
When in "fight state", the game simply crashes at some point. It closes and Android gives me the message " 'LÖVE for Android' wurde beendet." (it's German for "has been closed").

edit: i already downgraded to ndk_r9, problem remains

I have no idea where to start to try fix this.
Is there any log in my phone I can look into?

Thanks, Holo

Re: app crashes after a few seconds

Posted: Thu Feb 12, 2015 11:23 pm
by fysx
Ja, das gibt es (German for "Yes, there is")!

https://bitbucket.org/MartinFelis/love- ... iki/Logcat

You should note that the android port uses OpenGL ES whereas the desktop version uses "proper" OpenGL. So there are very likely some differences where you have to adjust the shaders when using on mobile.

Re: app crashes after a few seconds

Posted: Fri Feb 13, 2015 11:14 am
by Holonist
Hi, as I said, I simply removed all my shaders.

I got logcat to work but it spit out extremely much gibberish.
Anything I should specifically look for?

Also, are there any known issues/crashes with löve functions except from shaders?

Edit: I also want to make sure i downgraded my ndk correctly.
What i did:
- extracted ndk-r9 to c:
- adjusted the NDK_HOME environment variable accordingly (win 7)
- deleted android-sdl 2 folder
- extracted your untouched andorid-sdl folder again
- inside it, ran commandline: ndk-build

Is this the correct and complete order?

Thanks

Re: app crashes after a few seconds

Posted: Fri Feb 13, 2015 2:28 pm
by fysx
The list is not complete. You are missing a "ant debug" or even "ant debug install" to directly install it on the device.

Are you using the latest version? In version 0.9.1b there is an error when printing values that are neither strings or numbers.

The code you can get from https://bitbucket.org/MartinFelis/love- ... ter.tar.gz has no known sources for crashes.

Re: app crashes after a few seconds

Posted: Fri Jul 03, 2015 8:26 am
by Holonist
I had a similar problem with another Lua framework for mobile games. There my game crashed because some resource-folders started with an underscore (e.g "_data"). Android doesn't seem to like that. I'll try if changing the folder names fixes my LÖVE App