Android game continues crashing

FiLu

  • Posts: 39
Hi,

My game continues crashing on my phone. It is all well created in stencyl, but as soon as I try to open it on my mobile phone, it crashes. I asked in several threads now and read a lot, but I didn't find anything that helps me. I am using the myplaygames extension.

Here is all I already did:

- Update to newest build (8140)
- Create two linked apps in the developer center (release and debug, although I think I do only need the release one, because I test it via Google Play)
- enabled Google Play games in stencyl settings
- entered my Application ID in stencyl settings
- changed the Application ID in ids.xml

I don't know what I have to do anymore... I attached a picture with the code of my starting scene, where it crashes. It's a when created event.

Thanks

Justin

  • *
  • Posts: 4716
Perhaps somebody will be able to tell just from those blocks, but you should post your logs. We'll probably need to see the error that occurred when it crashed.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

sdieters

  • Posts: 2068
Justin, its probably the same error i posted my whole story about a while back. Filu, did you change the orientation or scaling mode? It can either be that or an actor in your start scene
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

FiLu

  • Posts: 39
It's not an actor in the starting scene, because I already tested it with other scenes and it never worked. I deleted the blocks in the starting scene for example and tried submit a score after a game and as soon as it trys to connect to google play, it crashed.

How can I post the logs when I said I tested it on my phone via Google play? It is created by stencyl without any errors. But I can't be the only one with this problem... I think it has to be something with the connection to Google. The game works totally fine but it just crashes at connecting. Do I have to do any other steps to enable the google play games function for my app?

Justin

  • *
  • Posts: 4716
When I test a game on my android, the device sends info to Stencyl's log viewer. Is this not the case for you?

Never mind, I re-read what you said.

Can you test with a USB cable? Or perhaps there's another way to see the debug info.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

FiLu

  • Posts: 39
Hi, I tested my game via usb now, but it stucks at sending to device. I attached my logs, I have an error there, but I don't know what it is about.

Thanks

sdieters

  • Posts: 2068
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

FiLu

  • Posts: 39
I did evrything in that video, but it says: Device is offline...

It isn't, screen is always on. And I have the latest usb driver... I don't even get where all the errors at the beginning are coming from :-X :-X :-X

EDIT: I'm sorry, made a mistake, it was launching now, but crashes as it always does on my phone. New logs attached.

thanks

« Last Edit: February 08, 2015, 02:53:28 pm by FiLu »

FiLu

  • Posts: 39
So, is this a hopeless case?
I would really like to fix this, because I spend weeks on programming my game (maybe because I was a beginner) and I am not that far from publishing it...

sdieters

  • Posts: 2068
Its not a hopeless case, but the biggest problem is that the source hasn't been found yet. I have done a couple of test with this problem and the results are kinda random. What I did find is that for my it was either the scaling mode/orientation causing it to crash. I solved this by setting the scale mode to none, and if that doesnt work, also set the orientation back to portrait. The second cause was an actor/behavior in the first scene that I had to replace in the scene.

Please try one of these things and let us know if it worked.
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

FiLu

  • Posts: 39
I tried all of that now and none worked.

First of all, I set the scale mode to No scaling and it still crashed.

Afterwards I set the orientation to Landscape (which is totally crap for my game, but nevermind) --> crash

Set it back to portrait again and it still crashed.

It can't be any actor in the scene, because if I take out the blocks posted above (the myplaygames-extension-blocks) my game "survives" the first scene and then works fine, until there comes a point, where I make an achievement or a new highscore or anything while playing. Then the if-block for the connection to Google Play Games is activated and the game crashes again. So it can't be any actor or something, because my game totally works, until it tries to connect to Google Play Games.

FiLu

  • Posts: 39
Are there any other things I may do?

sdieters

  • Posts: 2068
Perhaps you made a miatake in aettinf up the google extention?
My new profile is TheIndieStation.
When you see a recent post with this name, i'm probably using my phone. So dont mind any typo's =p

MacMowl

  • Posts: 65
Hi there,

I've got exactly the same problem as yours. My game works perfectly on iOS but it crashes on ANDROID when it tries to connect to Google Services.

I also use the myplaygames extension. If I disable it, I have no problem.

And, like you, nothing wrong in the log file...

FiLu, did you find a solution ?

Thanks for reply.

MacMowl

  • Posts: 65
I still have the problem.

Here is the log file, if someone can help...

Thank you