Crashes on start

I knew things were going too smooth!

We finally got our app posted to the Google Play store. We tested on a Nexus 7 and all seemed fine.

A buddy loaded it on his Galaxy S5 and it crashes when he clicks the icon. It does not fail in the simulator nor on a real Nexus 7.

I’m not familiar with java debugging since the code in Corona is Lua. Here is what is in the bug report. App development was done on a Mac. The iOS version is currently being reviewed by Apple.

Where do I begin?

Android Version Android 4.4

java.lang.IllegalStateException
at android.media.MediaPlayer._start(Native Method)
at android.media.MediaPlayer.start(MediaPlayer.java:1531)
at com.ansca.corona.MediaManager.playMedia(MediaManager.java:173)
at com.ansca.corona.events.MediaEvent.Send(MediaEvent.java:58)
at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:87)
at com.ansca.corona.Controller.updateRuntimeState(Controller.java:281)
at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:417)
at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1622)
at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)

Hi @fly4,

Please check out the debugging guide which shows you some Android debugging methods:

http://docs.coronalabs.com/guide/basics/debugging/index.html

Best regards,

Brent

Thanks Brent.

I took a look at the debug info at the link you provided.

My app does not crash in the simulator for the S5. And I don’t have an S5 to use for debugging so the tools are not an option.

I’m sure it’s something simple.

Any other suggestions?

Does anyone have any further suggestions on how to debug this error without having a physical Galaxy S5?

There is a group on Facebook where people volunteer to beta test your apps.  I don’t know how active the group is, but every one there is a Corona SDK developer who can attach their devices to the computer and grab console logs for you.

https://www.facebook.com/groups/102481146589254/

That might be a good starting point.

Rob

Thanks Rob!

I joined the group and someone quickly volunteered to test it. I think I’m on to a solution.

Hi @fly4,

Please check out the debugging guide which shows you some Android debugging methods:

http://docs.coronalabs.com/guide/basics/debugging/index.html

Best regards,

Brent

Thanks Brent.

I took a look at the debug info at the link you provided.

My app does not crash in the simulator for the S5. And I don’t have an S5 to use for debugging so the tools are not an option.

I’m sure it’s something simple.

Any other suggestions?

Does anyone have any further suggestions on how to debug this error without having a physical Galaxy S5?

There is a group on Facebook where people volunteer to beta test your apps.  I don’t know how active the group is, but every one there is a Corona SDK developer who can attach their devices to the computer and grab console logs for you.

https://www.facebook.com/groups/102481146589254/

That might be a good starting point.

Rob

Thanks Rob!

I joined the group and someone quickly volunteered to test it. I think I’m on to a solution.