Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

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

48 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

  • 357 posts
  • Corona SDK

Looks like it's back to you @robmiracle



[TOPIC: post.html]
#27

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

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



[TOPIC: post.html]
#28

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 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,546 posts
  • Enterprise

I'm checking...



[TOPIC: post.html]
#30

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

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



[TOPIC: post.html]
#31

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 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

  • 357 posts
  • Corona SDK

Ding



[TOPIC: post.html]
#33

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,546 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

  • 357 posts
  • Corona SDK

Thanks Rob - appreciate it.



[TOPIC: post.html]
#35

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 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

  • 82 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,546 posts
  • Enterprise

What happens if you use the latest daily build?

 

Rob



[TOPIC: post.html]
#38

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 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: post.html]
#39

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

Still no IllegalStateExceptions. 30 day crash rate slowly dropping... down to 6.21%



[TOPIC: post.html]
#40

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 54 posts
  • Corona SDK

Hi, good to hear that. 

 

Does anyone have an experience with OneSignal Plugin? I would prefer not to rewrite it to REST API.



[TOPIC: post.html]
#41

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

We've just made a build that goes back to the plugin on a current build - will be releasing today and I'll update here with progress.



[TOPIC: post.html]
#42

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 54 posts
  • Corona SDK

Any feedback yet?



[TOPIC: post.html]
#43

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

Looks good - problem seems to have gone away.


  • Maciej Czekala likes this

[TOPIC: post.html]
#44

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 54 posts
  • Corona SDK

Great! Thanks!



[TOPIC: post.html]
#45

Maciej Czekala

[GLOBAL: userInfoPane.html]
Maciej Czekala
  • Enthusiast

  • 54 posts
  • Corona SDK

One thing, are you getting callback to "DidReceiveRemoteNotification(message, additionalData, isActive)" function from OneSignal.Init?

 

I don't anymore with 3462 build. Did anything changes in this element?



[TOPIC: post.html]
#46

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

Didn't notice. After problems with Notifications v2 I've reverted all the way back to v1 - keeping an eye out for crashes.



[TOPIC: post.html]
#47

naveen_pcs

[GLOBAL: userInfoPane.html]
naveen_pcs
  • Contributor

  • 266 posts
  • Corona SDK

So is the plugin now updated with this fix? All I have to do is use a newer daily build and I'm good to go? Was having tons of crashes on Android 8+ but haven't checked too recently.



[TOPIC: post.html]
#48

beernathan

[GLOBAL: userInfoPane.html]
beernathan
  • Contributor

  • 357 posts
  • Corona SDK

That's what worked for us.



[TOPIC: post.html]
#49

naveen_pcs

[GLOBAL: userInfoPane.html]
naveen_pcs
  • Contributor

  • 266 posts
  • Corona SDK

That's what worked for us.

Great, thanks! Fingers crossed.




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