java.lang.RuntimeException: An error occured while executing doInBackground()


Samebug tips

MANAGE_USERS has a protection level of signature|system, so your application must be signed with the platform key. Take a look on this https://goo.gl/nXsTvH for more information about it.


9 months ago
Expert tip

Solutions on the web

Solution icon of coderanch
via Coderanch by egbai mmumene, 9 months ago
An error occured while executing doInBackground()

Solution icon of bugzilla
An error occured while executing doInBackground()

Solution icon of github
via GitHub by WxSmile
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by YShein
, 4 weeks ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by RoelRoel
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
An error occured while executing doInBackground()

Solution icon of github
via GitHub by gsczechowski
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by Alexendoo
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by mudar
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by bhushand
, 11 months ago
An error occured while executing doInBackground()

Stack trace

java.lang.RuntimeException: An error occured while executing doInBackground()
	at android.os.AsyncTask$3.done(AsyncTask.java:300)
	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
	at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.SecurityException: Permission Denial: opening provider com.android.gallery3d.provider.GalleryProvider from ProcessRecord{43bf86e8 21926:com.example.picasatest/u0a156} (pid=21926, uid=10156) requires com.google.android.gallery3d.permission.GALLERY_PROVIDER or com.google.android.gallery3d.permission.GALLERY_PROVIDER
	at android.os.Parcel.readException(Parcel.java:1465)
	at android.os.Parcel.readException(Parcel.java:1419)
	at android.app.ActivityManagerProxy.getContentProvider(ActivityManagerNative.java:2848)
	at android.app.ActivityThread.acquireProvider(ActivityThread.java:4399)
	at android.app.ContextImpl$ApplicationContentResolver.acquireUnstableProvider(ContextImpl.java:2200)
	at android.content.ContentResolver.acquireUnstableProvider(ContentResolver.java:1425)
	at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1047)
	at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:904)
	at android.content.ContentResolver.openInputStream(ContentResolver.java:629)
	at com.example.picasatest.android.lib.util.ImageUtil.resizeToFileFromOtherProvider(ImageUtil.java:129)
	at com.example.picasatest.android.lib.util.ImageUtil.resizeToFile(ImageUtil.java:57)
	at com.example.picasatest.util.ImageResizeTask.doInBackground(ImageResizeTask.java:53)
	at com.example.picasatest.util.ImageResizeTask.doInBackground(ImageResizeTask.java:14)
	at android.os.AsyncTask$2.call(AsyncTask.java:288)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	... 4 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

157 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
112 times, 1 week ago
236 more bugmates