Runtime error on Android 2.3.3

It works on my Galaxy Tab 2, but on the Xperia phone (Android 2.3.3) the game can’t even start, getting:

Runtime Error

java.lang.ExceptionInInitializer Error

Frustrating as hell, wanted to publish my game today.

playhaven_error.png

What are you getting in your console log?

There have been reports of problems with the Xperia.  We got one in and couldn’t reproduce them in the office, even with an APK that was failing for a customer.  The biggest problem is the folks reporting the problems don’t have the device.  Let me get you hooked up with engineering on this.  

It is however the weekend, so don’t expect anything until next week.  If you’re comfortable with other devices, if you’re releasing to google play, you could just not support the Xperiea’s right now. 

In addition to anything relevant in the console log, can you give us more information?  What build of Corona SDK?  Building on Windows or a Mac?  What model is the Xperia?  What version of Android is it running.  Who is the carrier?

Thanks

Rob

I heard back from engineering, and they feel this is a different issue.  In addition, do you get the same error building our sample apps? 

Corona build: 1202

OS building on: Windows

Xperia model: X10i

Android version: 2.3.3

Carrier: TELE2

Log:

10-06 17:18:44.858: I/Corona(8961): Runtime error
10-06 17:18:44.858: I/Corona(8961): java.lang.ExceptionInInitializerError
10-06 17:18:44.858: I/Corona(8961): Java Stack Trace:
10-06 17:18:44.858: I/Corona(8961):     v2.com.playhaven.requests.base.PHAPIRequest.send(PHAPIRequest.java:303)
10-06 17:18:44.858: I/Corona(8961):     v2.com.playhaven.requests.open.PHOpenRequest.send(PHOpenRequest.java:119)
10-06 17:18:44.858: I/Corona(8961):     com.playhaven.src.publishersdk.open.PHPublisherOpenRequest.send(PHPublisherOpenRequest.java:59)
10-06 17:18:44.858: I/Corona(8961):     plugin.playhaven.LuaLoader.init(LuaLoader.java:244)
10-06 17:18:44.858: I/Corona(8961):     plugin.playhaven.LuaLoader$InitPlayHaven.invoke(LuaLoader.java:567)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.JavaToNativeShim.nativeResize(Native Method)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:259)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:355)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1611)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
10-06 17:18:44.858: I/Corona(8961): stack traceback:
10-06 17:18:44.858: I/Corona(8961):     [C]: ?
10-06 17:18:44.858: I/Corona(8961):     [C]: in function ‘init’
10-06 17:18:44.858: I/Corona(8961):     ?: in main chunk
10-06 17:18:44.858: I/Corona(8961):     [C]: in function ‘require’
10-06 17:18:44.858: I/Corona(8961):     ?: in function ‘require’
10-06 17:18:44.858: I/Corona(8961):     ?: in main chunk
10-06 17:18:44.918: I/Corona(8961): Runtime error
10-06 17:18:44.918: I/Corona(8961): stack traceback:
10-06 17:18:44.918: I/Corona(8961):     [C]: ?
10-06 17:18:44.918: I/Corona(8961):     [C]: in function ‘init’
10-06 17:18:44.918: I/Corona(8961):     ?: in main chunk
10-06 17:18:44.918: I/Corona(8961):     [C]: in function ‘require’
10-06 17:18:44.918: I/Corona(8961):     ?: in function ‘require’
10-06 17:18:44.918: I/Corona(8961):     ?: in main chunk
 

Hope this helps.

Regards,

Damir.

Tried the sample app - getting the same error.

Regards,

Damir.

When you say “the sample app” is it the Playhaven sample app or one of the Corona Sample apps like Hello World?

Can you try not using the Playhaven plugin and see if you have the same problem?

It is the playhaven sample.

If I exclude playhaven from my game, it works fine.

From the log I would say it is obvious it is a playhaven fault.

Regards,

Damir.

probably the same exception raised by android 2.2?

Okay.  I think we’ve narrowed this down pretty closely.  Engineering needs a bug report filed on it so they can look into it further.  Please report a bug and post the bug tracking number back here.

Thanks

Rob

What are you getting in your console log?

There have been reports of problems with the Xperia.  We got one in and couldn’t reproduce them in the office, even with an APK that was failing for a customer.  The biggest problem is the folks reporting the problems don’t have the device.  Let me get you hooked up with engineering on this.  

It is however the weekend, so don’t expect anything until next week.  If you’re comfortable with other devices, if you’re releasing to google play, you could just not support the Xperiea’s right now. 

In addition to anything relevant in the console log, can you give us more information?  What build of Corona SDK?  Building on Windows or a Mac?  What model is the Xperia?  What version of Android is it running.  Who is the carrier?

Thanks

Rob

I heard back from engineering, and they feel this is a different issue.  In addition, do you get the same error building our sample apps? 

Corona build: 1202

OS building on: Windows

Xperia model: X10i

Android version: 2.3.3

Carrier: TELE2

Log:

10-06 17:18:44.858: I/Corona(8961): Runtime error
10-06 17:18:44.858: I/Corona(8961): java.lang.ExceptionInInitializerError
10-06 17:18:44.858: I/Corona(8961): Java Stack Trace:
10-06 17:18:44.858: I/Corona(8961):     v2.com.playhaven.requests.base.PHAPIRequest.send(PHAPIRequest.java:303)
10-06 17:18:44.858: I/Corona(8961):     v2.com.playhaven.requests.open.PHOpenRequest.send(PHOpenRequest.java:119)
10-06 17:18:44.858: I/Corona(8961):     com.playhaven.src.publishersdk.open.PHPublisherOpenRequest.send(PHPublisherOpenRequest.java:59)
10-06 17:18:44.858: I/Corona(8961):     plugin.playhaven.LuaLoader.init(LuaLoader.java:244)
10-06 17:18:44.858: I/Corona(8961):     plugin.playhaven.LuaLoader$InitPlayHaven.invoke(LuaLoader.java:567)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.JavaToNativeShim.nativeResize(Native Method)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.JavaToNativeShim.resize(JavaToNativeShim.java:259)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.opengl.CoronaGLSurfaceView$CoronaRenderer.onSurfaceChanged(CoronaGLSurfaceView.java:355)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1611)
10-06 17:18:44.858: I/Corona(8961):     com.ansca.corona.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1377)
10-06 17:18:44.858: I/Corona(8961): stack traceback:
10-06 17:18:44.858: I/Corona(8961):     [C]: ?
10-06 17:18:44.858: I/Corona(8961):     [C]: in function ‘init’
10-06 17:18:44.858: I/Corona(8961):     ?: in main chunk
10-06 17:18:44.858: I/Corona(8961):     [C]: in function ‘require’
10-06 17:18:44.858: I/Corona(8961):     ?: in function ‘require’
10-06 17:18:44.858: I/Corona(8961):     ?: in main chunk
10-06 17:18:44.918: I/Corona(8961): Runtime error
10-06 17:18:44.918: I/Corona(8961): stack traceback:
10-06 17:18:44.918: I/Corona(8961):     [C]: ?
10-06 17:18:44.918: I/Corona(8961):     [C]: in function ‘init’
10-06 17:18:44.918: I/Corona(8961):     ?: in main chunk
10-06 17:18:44.918: I/Corona(8961):     [C]: in function ‘require’
10-06 17:18:44.918: I/Corona(8961):     ?: in function ‘require’
10-06 17:18:44.918: I/Corona(8961):     ?: in main chunk
 

Hope this helps.

Regards,

Damir.

Tried the sample app - getting the same error.

Regards,

Damir.

When you say “the sample app” is it the Playhaven sample app or one of the Corona Sample apps like Hello World?

Can you try not using the Playhaven plugin and see if you have the same problem?

It is the playhaven sample.

If I exclude playhaven from my game, it works fine.

From the log I would say it is obvious it is a playhaven fault.

Regards,

Damir.

probably the same exception raised by android 2.2?

Okay.  I think we’ve narrowed this down pretty closely.  Engineering needs a bug report filed on it so they can look into it further.  Please report a bug and post the bug tracking number back here.

Thanks

Rob

I am also experiencing this issue, and have emailed Playhaven support to see if they have any fixes.

my work around for this is to check 

system.getInfo('platformVersion') \>= '4.'

before initializing any playhaven stuff

Will we ever get a solution to this an be able to use Playhaven ???