java.lang.RuntimeException

An error occured while executing doInBackground()


Samebug tips5

You need to request MANAGE_USERS permissions before using of this method.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web18899

Solution icon of coderanch
via Coderanch by Gabriela Cristian, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by himani mittal, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by maulidan abdillah, 7 months ago
An error occured while executing doInBackground()

Solution icon of coderanch
via Coderanch by egbai mmumene, 7 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 galaxyfeeder
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by pkirankmr
, 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 milon87
, 1 year ago
An error occured while executing doInBackground()

Solution icon of github
via GitHub by MrAlex1598
, 1 year 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, 8 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, 1 year ago
49 times, 3 days ago
232 more bugmates