android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2

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

Solutions on the web

via Stack Overflow by mohan.t
, 11 months ago
via GitHub by ghost
, 2 years ago
via GitHub by Wolftein
, 2 years ago
policy=31 violation=2
via oschina.net by Unknown author, 2 years ago
policy=23 violation=2
android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:148)
at libcore.io.IoBridge.read(IoBridge.java:425)
at java.io.RandomAccessFile.read(RandomAccessFile.java:287)
at java.io.RandomAccessFile.read(RandomAccessFile.java:270)
at com.intel.android.gallery3d.common.BlobCache.loadIndex(BlobCache.java:260)
at com.intel.android.gallery3d.common.BlobCache.(BlobCache.java:144)
at com.intel.android.gallery3d.util.CacheManager.getCache(CacheManager.java:56)
at com.intel.android.gallery3d.app.Bookmarker.getBookmark(Bookmarker.java:64)
at com.intel.android.gallery3d.app.MoviePlayer.initPlayer(MoviePlayer.java:281)
at com.intel.android.gallery3d.app.MoviePlayer.(MoviePlayer.java:142)
at com.intel.android.gallery3d.app.MovieActivity$1.(MovieActivity.java:91)
at com.intel.android.gallery3d.app.MovieActivity.onCreate(MovieActivity.java:90)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2188)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2273)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1236)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:149)
at android.app.ActivityThread.main(ActivityThread.java:5045)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)

Users with the same issue

86 times, 3 months ago
4 times, 3 months ago
6 times, 5 months ago
9 times, 5 months ago
Once, 6 months ago

Write tip

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