Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

IllegalStateException Crashes
Started by beernathan Nov 04 2018 10:28 PM

7 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 315 posts
  • Corona SDK

Hi,

 

After releasing recently based on Corona 3326 we're getting a LOT of Android crashes on Android 8 (and a few on 8.1). Google Play is reporting it to us as:

 

java.lang.RuntimeException:
 
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3397)
 
at android.app.ActivityThread.-wrap18 (Unknown Source)
 
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1780)
 
at android.os.Handler.dispatchMessage (Handler.java:105)
 
at android.os.Looper.loop (Looper.java:164)
 
at android.app.ActivityThread.main (ActivityThread.java:6938)
 
at java.lang.reflect.Method.invoke (Native Method)
 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:327)
 
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1374)
Caused by: java.lang.IllegalStateException:
 
at android.app.ContextImpl.startServiceCommon (ContextImpl.java:1538)
 
at android.app.ContextImpl.startService (ContextImpl.java:1484)
 
at android.content.ContextWrapper.startService (ContextWrapper.java:663)
 
at android.content.ContextWrapper.startService (ContextWrapper.java:663)
 
at com.ansca.corona.SystemStartupBroadcastReceiver.onReceive (SystemStartupBroadcastReceiver.java:29)
 
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3390)

Anyone else getting this? Any ideas?

 

Thanks,

Nathan.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,838 posts
  • Corona Staff

What plugins are you using?

 

Rob



[TOPIC: post.html]
#3

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 315 posts
  • Corona SDK

gameanalytics

OneSignal

advertisingId

native.popup.social

notifications

googleAnalytics

analytics.flurry

gaemNetwork.google

CoronaSplashControl

 

OK, so the analytics are a bit over the top - could drop Flurry & GA, but have had them there forever and it hasn't been a problem before.

 

Nathan.



[TOPIC: post.html]
#4

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 315 posts
  • Corona SDK

Any ideas @robmiracle ?



[TOPIC: post.html]
#5

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,838 posts
  • Corona Staff

What is this plugin: gaemNetwork.google?

 

Is there a more detailed stack trace on the crashes?  (please use pastebin.com or similar to share them)

 

Rob



[TOPIC: post.html]
#6

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 315 posts
  • Corona SDK

Hi @robmiracle it's this one (I just spelt it wrong above)...

 

https://docs.coronalabs.com/plugin/gameNetwork-google/index.html

 

Just noticed that it's legacy and I'm pretty sure we're not even using it in this app - was a hangover from an existing build.settings file.

 

That's all the detail I have - it's just from the Crash report on the Google Play console.



[TOPIC: post.html]
#7

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 24,838 posts
  • Corona Staff

You certainly should probably avoid using "CoronaProvider.gameNetwork.google". It was replaced by the GPGS plugin a long time ago and we recently updated it to GPGS v2 to be compliant with current Google requirements. If you're not using it, I'd remove it. If you're using it, you should switch to GPGS v2.

 

There is also a new notifications plugin, notifications v2 that uses Firebase Cloud Messaging (FCM) instead of Google Cloud Messaging (GCM) which is Google's preferred way to send notifications. Though I don't know that it should crash you.

 

As far as the stack trace, the Google Play developer console should let you drill down to see the specific error. 

 

Rob



[TOPIC: post.html]
#8

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 315 posts
  • Corona SDK

Looks like we don't ever require "gameNetwork" in the code, so I doubt that's it, but I will replace.

 

Looking at how to get a bigger stack trace from GP.

 

Update: Google Play only provides what I pasted above

 

Interestingly we don't have any user reports of the problem - could be something failing silently?

 

Why do you think it's a plugin issue?




[topic_controls]
[/topic_controls]