App Crashing

Hi, 

My app crashed and when I was inspecting the logs, I found Sponsorpay to be the culprit.  
This is the log
 

01-13 14:48:59.431: E/AndroidRuntime(22184): FATAL EXCEPTION: main 01-13 14:48:59.431: E/AndroidRuntime(22184): java.lang.IllegalArgumentException: illegal type 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.naef.jnlua.LuaState.lua\_setfield(Native Method) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.naef.jnlua.LuaState.setField(Unknown Source) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at plugin.sponsorpay.listeners.SPVCSListener.onSPCurrencyDeltaReceived(SPVCSListener.java:50) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.sponsorpay.sdk.android.publisher.currency.CurrencyServerDeltaOfCoinsResponse.onSuccessfulResponseParsed(CurrencyServerDeltaOfCoinsResponse.java:78) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.sponsorpay.sdk.android.publisher.AbstractResponse.parseAndCallListener(AbstractResponse.java:188) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.sponsorpay.sdk.android.publisher.currency.VirtualCurrencyConnector.onAsyncRequestComplete(VirtualCurrencyConnector.java:153) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.sponsorpay.sdk.android.publisher.AsyncRequest.onPostExecute(AsyncRequest.java:195) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.sponsorpay.sdk.android.publisher.AsyncRequest.onPostExecute(AsyncRequest.java:1) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at android.os.AsyncTask.finish(AsyncTask.java:631) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at android.os.AsyncTask.access$600(AsyncTask.java:177) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at android.os.Looper.loop(Looper.java:137) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at android.app.ActivityThread.main(ActivityThread.java:4895) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at java.lang.reflect.Method.invokeNative(Native Method) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at java.lang.reflect.Method.invoke(Method.java:511) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761) 01-13 14:48:59.431: E/AndroidRuntime(22184):     at dalvik.system.NativeStart.main(Native Method) 01-13 14:48:59.509: E/android.os.Debug(363): !@Dumpstate \> dumpstate -k -t -z -d -o /data/log/dumpstate\_app\_error 01-13 14:48:59.525: I/ApplicationUsage(363): handleMessage : MSG\_UPDATE\_USAGE\_DB 01-13 14:48:59.525: I/ApplicationUsage(363): Updating Usage Statistics in DB @ 1389604739531 01-13 14:48:59.556: I/dumpstate(22372): begin 01-13 14:48:59.954: E/Watchdog(363): !@Sync 3960 01-13 14:48:59.994: V/AlarmManager(363): waitForAlarm result :8  

Says something about illegal arguments… but I can’t think of what that would be…

Anybody?

Hi there!

We’re currently looking at this.

Can you give us more information about this? (android version, snippet of the code perhaps, workflow that leads to the issue, any other plugin in use)

Thank you!

-David

SponsorPay

Device : Galaxy Tab

Android Version : 4.2.2

I call the sponsorpay.requestNewCoins function every 15 seconds or so… 
During on of these calls, this error occirs.

And I’ve got another error as well. This too crashed the app.

01-13 18:31:55.422: A/libc(22447): Fatal signal 11 (SIGSEGV) at 0x1144f700 (code=1) 01-13 18:31:55.432: E/AndroidRuntime(22447): FATAL EXCEPTION: main 01-13 18:31:55.432: E/AndroidRuntime(22447): com.naef.jnlua.LuaRuntimeException: ?:0: attempt to concatenate a string value 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.naef.jnlua.LuaState.lua\_newtable(Native Method) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.naef.jnlua.LuaState.newTable(Unknown Source) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.ansca.corona.CoronaLua.newEvent(CoronaLua.java:70) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at plugin.sponsorpay.listeners.SPVCSListener.onSPCurrencyDeltaReceived(SPVCSListener.java:43) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.currency.CurrencyServerDeltaOfCoinsResponse.onSuccessfulResponseParsed(CurrencyServerDeltaOfCoinsResponse.java:78) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.AbstractResponse.parseAndCallListener(AbstractResponse.java:188) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.currency.VirtualCurrencyConnector.onAsyncRequestComplete(VirtualCurrencyConnector.java:153) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.AsyncRequest.onPostExecute(AsyncRequest.java:195) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.AsyncRequest.onPostExecute(AsyncRequest.java:1) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.AsyncTask.finish(AsyncTask.java:602) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.AsyncTask.access$600(AsyncTask.java:156) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.Looper.loop(Looper.java:137) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.app.ActivityThread.main(ActivityThread.java:4436) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at java.lang.reflect.Method.invokeNative(Native Method) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at java.lang.reflect.Method.invoke(Method.java:511) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at dalvik.system.NativeStart.main(Native Method) 01-13 18:31:55.432: W/ActivityManager(214):   Force finishing activity com.my.app/com.ansca.corona.CoronaActivity 01-13 18:31:55.462: I/Process(22447): Sending signal. PID: 22447 SIG: 9  

Device : Intel Xolo X900

Android Version : 4.0.4

Hi!

We have a new plugin just about to be released. It’s only waiting for our internal QA team to give the green light.

I’ll keep this thread updated.

Cheers,

David

– SponsorPay

Hi!

Just to let you know that the new plugin is currently available (v.1.3.0)

Let me know if you’re still having issues with this updated version.

We’ve also added a “enableLogging(boolean)” method, to enable the native log statements for a better debugging.

Cheers,

David

– SponsorPay

@David

Thanks! Will try out the new version, and let you know how it goes.

Hi there!

We’re currently looking at this.

Can you give us more information about this? (android version, snippet of the code perhaps, workflow that leads to the issue, any other plugin in use)

Thank you!

-David

SponsorPay

Device : Galaxy Tab

Android Version : 4.2.2

I call the sponsorpay.requestNewCoins function every 15 seconds or so… 
During on of these calls, this error occirs.

And I’ve got another error as well. This too crashed the app.

01-13 18:31:55.422: A/libc(22447): Fatal signal 11 (SIGSEGV) at 0x1144f700 (code=1) 01-13 18:31:55.432: E/AndroidRuntime(22447): FATAL EXCEPTION: main 01-13 18:31:55.432: E/AndroidRuntime(22447): com.naef.jnlua.LuaRuntimeException: ?:0: attempt to concatenate a string value 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.naef.jnlua.LuaState.lua\_newtable(Native Method) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.naef.jnlua.LuaState.newTable(Unknown Source) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.ansca.corona.CoronaLua.newEvent(CoronaLua.java:70) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at plugin.sponsorpay.listeners.SPVCSListener.onSPCurrencyDeltaReceived(SPVCSListener.java:43) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.currency.CurrencyServerDeltaOfCoinsResponse.onSuccessfulResponseParsed(CurrencyServerDeltaOfCoinsResponse.java:78) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.AbstractResponse.parseAndCallListener(AbstractResponse.java:188) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.currency.VirtualCurrencyConnector.onAsyncRequestComplete(VirtualCurrencyConnector.java:153) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.AsyncRequest.onPostExecute(AsyncRequest.java:195) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.sponsorpay.sdk.android.publisher.AsyncRequest.onPostExecute(AsyncRequest.java:1) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.AsyncTask.finish(AsyncTask.java:602) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.AsyncTask.access$600(AsyncTask.java:156) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:615) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.Handler.dispatchMessage(Handler.java:99) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.os.Looper.loop(Looper.java:137) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at android.app.ActivityThread.main(ActivityThread.java:4436) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at java.lang.reflect.Method.invokeNative(Native Method) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at java.lang.reflect.Method.invoke(Method.java:511) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 01-13 18:31:55.432: E/AndroidRuntime(22447):     at dalvik.system.NativeStart.main(Native Method) 01-13 18:31:55.432: W/ActivityManager(214):   Force finishing activity com.my.app/com.ansca.corona.CoronaActivity 01-13 18:31:55.462: I/Process(22447): Sending signal. PID: 22447 SIG: 9  

Device : Intel Xolo X900

Android Version : 4.0.4

Hi!

We have a new plugin just about to be released. It’s only waiting for our internal QA team to give the green light.

I’ll keep this thread updated.

Cheers,

David

– SponsorPay

Hi!

Just to let you know that the new plugin is currently available (v.1.3.0)

Let me know if you’re still having issues with this updated version.

We’ve also added a “enableLogging(boolean)” method, to enable the native log statements for a better debugging.

Cheers,

David

– SponsorPay

@David

Thanks! Will try out the new version, and let you know how it goes.