Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

37 replies to this topic
[TOPIC CONTROLS]
Page 2 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Looks like it's back to you @robmiracle



[TOPIC: post.html]
#27

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Hey @robmiracle - do you agree with the assessment from OneSignal?



[TOPIC: post.html]
#28

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Feel like we're stuck between a rock & a hard place here.

 

It appears that you're saying we can't release an app right now that has both OneSignal and Notifications?



[TOPIC: post.html]
#29

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,253 posts
  • Enterprise

I'm checking...



[TOPIC: post.html]
#30

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Ping... this is still a big problem @robmiracle



[TOPIC: post.html]
#31

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

This is now getting very frustrating. We re-coded to go to the OneSignal REST API (not the plugin) and re-released. We only have Notifications v2 now and we're still getting this crash on android all the time (Corona 3326):

 

 

java.lang.RuntimeException:
 
at android.app.ActivityThread.handleReceiver (ActivityThread.java:3399)
 
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:6944)
 
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:3392)


[TOPIC: post.html]
#32

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Ding



[TOPIC: post.html]
#33

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,253 posts
  • Enterprise

I've asked engineering to look into this as soon as possible.

 

Rob



[TOPIC: post.html]
#34

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Thanks Rob - appreciate it.



[TOPIC: post.html]
#35

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

Just to recap - here are our current plugins on Android....

 

["plugin.gameanalytics"] =
{
publisherId = "com.gameanalytics",
},
        -- ["plugin.OneSignal"] =
        -- {
        --     publisherId = "com.onesignal",
        -- },
        ["plugin.advertisingId"] =
        {
            publisherId = "com.coronalabs"
        },
        ["CoronaProvider.native.popup.social"] =
        {
            publisherId = "com.coronalabs"
        },
        -- ["CoronaProvider.native.popup.activity"] =
        -- {
        --     publisherId = "com.coronalabs"
        -- },
        ["plugin.notifications.v2"] =
        {
            publisherId = "com.coronalabs"
        },
        ["plugin.googleAnalytics"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true, }
        },
        ["CoronaProvider.analytics.flurry"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { iphone=true, android=true }
        },
        ["CoronaProvider.gameNetwork.google"] =
        {
            publisherId = "com.coronalabs",
            supportedPlatforms = { android=true }
        },
        ["plugin.CoronaSplashControl"] =
        {
            publisherId = "com.coronalabs"
        },


[TOPIC: post.html]
#36

sahil19.sindh

[GLOBAL: userInfoPane.html]
sahil19.sindh
  • Enthusiast

  • 79 posts
  • Corona SDK

Yes, the problem seems to be in the new corona 3326 itself. We have around 20-25 apps on Store and as Google said support API level 26+ support then we updated corona and start updating apps, we have just updated 4 or 5 i think yet and were checking stats. Its horrible our crash rate increased a lot, previously it was close to 99.9, 99.8 and so on and now its around 98, 97 and even 96 on one app.

We have used plugins like Admob, Notifications V2, GPGS v2 and splash screen control. 

 

Note: No change has been done in build other than just taking build with the new Corona sdk 3326.

Please anyone if know how to solve this, please comment below so all can get the benefit from it.



[TOPIC: post.html]
#37

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,253 posts
  • Enterprise

What happens if you use the latest daily build?

 

Rob



[TOPIC: post.html]
#38

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 334 posts
  • Corona SDK

So we pushed out a release based on 3462 on Feb 7 with a 50% rollout. It's the 12th now so we are 5 days in.

 

Reporting on the Google Play console is with last 1 day or last 7 days, so not enough granularity, but...

 

1 day

3326: 17 IllegalStateException

3462: 0 IllegalStateException

 

7 day

3326: 69 IllegalStateException

3462: 0 IllegalStateException

 

Looking good on the latest build! Will give it a couple more days then crank it up to a full rollout.

 

NOTE: This is all using the OneSignal REST API (not the plugin). Would be great to see this same experiment with the plugin.




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]