Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone please help me about this issue? i am getting this issue around 500times in a week. #439

Closed
ishroid opened this issue Feb 15, 2018 · 5 comments

Comments

@ishroid
Copy link

ishroid commented Feb 15, 2018

Fatal Exception: java.lang.InternalError: Thread starting during runtime shutdown
       at java.lang.Thread.nativeCreate(Thread.java)
       at java.lang.Thread.start(Thread.java:733)
       at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:970)
       at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1611)
       at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:342)
       at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:562)
       at java.util.concurrent.ScheduledThreadPoolExecutor.execute(ScheduledThreadPoolExecutor.java:654)
       at com.onesignal.OneSignalPrefs.saveString(OneSignalPrefs.java:105)
       at com.onesignal.OneSignalStateSynchronizer$UserState.persistState(OneSignalStateSynchronizer.java:423)
       at com.onesignal.OneSignalStateSynchronizer$UserState.persistStateAfterSync(OneSignalStateSynchronizer.java:469)
       at com.onesignal.OneSignalStateSynchronizer$UserState.access$700(OneSignalStateSynchronizer.java:236)
       at com.onesignal.OneSignalStateSynchronizer.syncUserState(OneSignalStateSynchronizer.java:587)
       at com.onesignal.OneSignalStateSynchronizer$NetworkHandlerThread$1.run(OneSignalStateSynchronizer.java:538)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:164)
       at android.os.HandlerThread.run(HandlerThread.java:65)
@ishroid ishroid changed the title Anyone please help me about this issue? i am getting this issue in 500times in a week. Anyone please help me about this issue? i am getting this issue around 500times in a week. Feb 15, 2018
@jkasten2
Copy link
Member

@Ishratkhan A Thread starting during runtime shutdown should be extremely rare as this could only happen when the whole process for the app is about to be stoped.

Do you have anything in your code force killing your app? Such as android.os.Process.killProcess?

@ishroid
Copy link
Author

ishroid commented Feb 17, 2018

No! we don't have anything to kill process, we made some changes in our app, update you on this issue after few days.

Thank you

@jkasten2
Copy link
Member

Could you share what Android versions you seen the error on? Do you have have a log with the stack trace of all other threads at the time of the crash?

@ishroid
Copy link
Author

ishroid commented Feb 22, 2018

@jkasten2
Copy link
Member

@Ishratkhan Thanks for the full log with all threads. I wasn't able to find anything that would create this error from it. By chance are you using Thread.setDefaultUncaughtExceptionHandler in your app code in-addition to Crashlytics?

Going to merge this one into issue #443 as it is the same stack trace. Please follow up with us there. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants