java.lang.RuntimeException: Package manager has died

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via Stack Overflow by Ixx

Split operations in smaller pieces if possible, and try not to exchange huge data (>1mb) between service and application

Solutions on the web

java.lang.RuntimeException: Package manager has died
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.content.pm.IPackageManager$Stub$Proxy.queryContentProviders(IPackageManager.java:2906)
at android.app.ApplicationPackageManager.queryContentProviders(ApplicationPackageManager.java:695)
at com.android.providers.contacts.ContactDirectoryManager.getDirectoryProviderPackages(ContactDirectoryManager.java:219)
at com.android.providers.contacts.ContactDirectoryManager.scanAllPackages(ContactDirectoryManager.java:256)
at com.android.providers.contacts.ContactDirectoryManager.scanAllPackagesIfNeeded(ContactDirectoryManager.java:191)
at com.android.providers.contacts.ContactDirectoryManager.scanAllPackages(ContactDirectoryManager.java:181)
at com.android.providers.contacts.ContactsProvider2.updateDirectoriesInBackground(ContactsProvider2.java:2028)
at com.android.providers.contacts.ContactsProvider2.performBackgroundTask(ContactsProvider2.java:1850)
at com.android.providers.contacts.ContactsProvider2$1.handleMessage(ContactsProvider2.java:1501)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
2 times, 1 month ago
34 times, 1 month ago
Once, 3 months ago
68 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.