[Resolved] Application crashes on start, Motorola Xoom

Greetings,

So I’ve been working on the app for awhile and I haven’t run into any problems until recently. I’m not sure what changed but when I try to run the app on my Xoom, it freezes at startup without any error messages. I used to be able to run it fine on the device.

This is some of the output from the device when I try to run it. There were no errors during the install. Maybe one of you can understand this better than me. Thanks

[blockcode]
I/ActivityThread(12430): Pub com.eriksoft.games.wmf2.files: com.ansca.corona.FileContentProvider
D/dalvikvm(12430): GC_CONCURRENT freed 169K, 4% free 6317K/6535K, paused 2ms+2ms, total 52ms

D/dalvikvm(12430): WAIT_FOR_CONCURRENT_GC blocked 7ms

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/liblua.so 0x4147b0f0

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/liblua.so 0x4147b0f0

D/dalvikvm(12430): No JNI_OnLoad found in /data/data/com.eriksoft.games.wmf2/lib/liblua.so 0x4147b0f0, skipping init

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libjnlua5.1.so 0x4147b0f0

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/libjnlua5.1.so 0x4147b0f0

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libjnlua5.1.so 0x4147b0f0

D/dalvikvm(12430): Shared lib ‘/data/data/com.eriksoft.games.wmf2/lib/libjnlua5.1.so’ already loaded in same CL 0x4147b0f0

I/dalvikvm(12430): threadid=1: recursive native library load attempt (/data/data/com.eriksoft.games.wmf2/lib/libjnlua5.1.so)

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libopenal.so 0x4147b0f0

I/OpenAL_SLES(12430): alc_opensles_init

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/libopenal.so 0x4147b0f0

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libmpg123.so 0x4147b0f0

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/libmpg123.so 0x4147b0f0

D/dalvikvm(12430): No JNI_OnLoad found in /data/data/com.eriksoft.games.wmf2/lib/libmpg123.so 0x4147b0f0, skipping init

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libvorbisidec.so 0x4147b0f0

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/libvorbisidec.so 0x4147b0f0

D/dalvikvm(12430): No JNI_OnLoad found in /data/data/com.eriksoft.games.wmf2/lib/libvorbisidec.so 0x4147b0f0, skipping init

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libalmixer.so 0x4147b0f0

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/libalmixer.so 0x4147b0f0

D/dalvikvm(12430): No JNI_OnLoad found in /data/data/com.eriksoft.games.wmf2/lib/libalmixer.so 0x4147b0f0, skipping init

D/dalvikvm(12430): Trying to load lib /data/data/com.eriksoft.games.wmf2/lib/libcorona.so 0x4147b0f0

D/dalvikvm(12430): Added shared lib /data/data/com.eriksoft.games.wmf2/lib/libcorona.so 0x4147b0f0

D/libEGL (12430): loaded /system/lib/egl/libEGL_tegra.so

D/libEGL (12430): loaded /system/lib/egl/libGLESv1_CM_tegra.so

D/libEGL (12430): loaded /system/lib/egl/libGLESv2_tegra.so

D/OpenGLRenderer(12430): Enabling debug mode 0

D/dalvikvm(12430): Note: class Landroid/opengl/GLWrapperBase; has 250 unimplemented (abstract) methods

W/IInputConnectionWrapper( 1375): showStatusIcon on inactive InputConnection

I/ActivityManager( 270): Displayed com.eriksoft.games.wmf2/com.ansca.corona.CoronaActivity: +662ms

D/dalvikvm(12430): GC_CONCURRENT freed 181K, 4% free 6599K/6855K, paused 4ms+4ms, total 36ms

D/dalvikvm(12430): WAIT_FOR_CONCURRENT_GC blocked 23ms

D/dalvikvm(12430): GC_CONCURRENT freed 371K, 7% free 6742K/7175K, paused 13ms+4ms, total 41ms

D/dalvikvm(12430): WAIT_FOR_CONCURRENT_GC blocked 14ms

D/dalvikvm(12430): GC_FOR_ALLOC freed 313K, 9% free 6600K/7175K, paused 30ms, total 30ms

I/dalvikvm-heap(12430): Grow heap (frag case) to 6.795MB for 318244-byte allocation

D/dalvikvm(12430): GC_FOR_ALLOC freed 0K, 8% free 6911K/7495K, paused 26ms, total 26ms

I/Corona (12430): waiting for netbeans debugger initialization

D/dalvikvm( 270): WAIT_FOR_CONCURRENT_GC blocked 0ms

D/dalvikvm( 270): GC_EXPLICIT freed 879K, 22% free 15231K/19399K, paused 12ms+8ms, total 114ms
[/blockcode] [import]uid: 45650 topic_id: 32863 reply_id: 332863[/import]

I guess some more information would be useful. The application is called wmf2 and when I try to run it it freezes. I have to kill the process manually.

I tried changing the application to just print “hello world” and removed the audio and visual assets but it still freezes on startup. I’m out of ideas. [import]uid: 45650 topic_id: 32863 reply_id: 130605[/import]

I built and ran the HelloWorld sample app and it ran without any problem… [import]uid: 45650 topic_id: 32863 reply_id: 130606[/import]

Okay, I figured out the problem. I was running the app in debug mode from Cider when I built for android. Cider automatically add some code to the top of main.lua when you run in debug and apparently that doesn’t work well on the device. It’s strange that I never had a problem with it before though. [import]uid: 45650 topic_id: 32863 reply_id: 130607[/import]

I guess some more information would be useful. The application is called wmf2 and when I try to run it it freezes. I have to kill the process manually.

I tried changing the application to just print “hello world” and removed the audio and visual assets but it still freezes on startup. I’m out of ideas. [import]uid: 45650 topic_id: 32863 reply_id: 130605[/import]

I built and ran the HelloWorld sample app and it ran without any problem… [import]uid: 45650 topic_id: 32863 reply_id: 130606[/import]

Okay, I figured out the problem. I was running the app in debug mode from Cider when I built for android. Cider automatically add some code to the top of main.lua when you run in debug and apparently that doesn’t work well on the device. It’s strange that I never had a problem with it before though. [import]uid: 45650 topic_id: 32863 reply_id: 130607[/import]