app crashes after a few seconds

A project to port LÖVE to Android handhelds
Locked
Holonist
Prole
Posts: 3
Joined: Wed Feb 11, 2015 10:45 am

app crashes after a few seconds

Post 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
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: app crashes after a few seconds

Post 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.
Bird thing: @fysxdotorg Blog thing: fysx.org
Holonist
Prole
Posts: 3
Joined: Wed Feb 11, 2015 10:45 am

Re: app crashes after a few seconds

Post 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
User avatar
fysx
Citizen
Posts: 97
Joined: Mon Jan 30, 2012 8:36 pm
Contact:

Re: app crashes after a few seconds

Post 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.
Bird thing: @fysxdotorg Blog thing: fysx.org
Holonist
Prole
Posts: 3
Joined: Wed Feb 11, 2015 10:45 am

Re: app crashes after a few seconds

Post 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
Locked

Who is online

Users browsing this forum: No registered users and 88 guests