bumptech / bumptech/glide

Strict Mode : Glide Compose Disk Read Voilation

Open
#5,687 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

Glide compoose version Used : "com.github.bumptech.glide:compose:1.0.0-beta08"

StrictMode policy violation; ~duration=168 ms: android.os.strictmode.DiskReadViolation
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1596)
at libcore.io.BlockGuardOs.access(BlockGuardOs.java:71)
at libcore.io.ForwardingOs.access(ForwardingOs.java:72)
at android.app.ActivityThread$AndroidOs.access(ActivityThread.java:7538)
at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:281)
at java.io.File.exists(File.java:815)
at android.app.ContextImpl.ensurePrivateDirExists(ContextImpl.java:681)
at android.app.ContextImpl.ensurePrivateCacheDirExists(ContextImpl.java:677)
at android.app.ContextImpl.getCacheDir(ContextImpl.java:788)
at android.content.ContextWrapper.getCacheDir(ContextWrapper.java:293)
at com.bumptech.glide.h.u(Unknown Source:14)
at l5.b.invoke(Unknown Source:80)
at cg.q.getValue(Unknown Source:20)
at m8.w.p(Unknown Source:21)
at w5.h.invokeSuspend(Unknown Source:32)
at ig.a.resumeWith(Unknown Source:7)
at Kh.M.run(Unknown Source:106)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:223)
at android.app.ActivityThread.main(ActivityThread.java:7661)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

Contributor guide

Open the contributing guide

Research direction

Reproduce the report with Glide Compose 1.0.0-beta08 and Android StrictMode enabled, then trace the call leading to com.bumptech.glide.h.u and Context.getCacheDir(). Confirm whether the disk-read violation can be avoided or appropriately scheduled, and verify the violation no longer occurs under the reported conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile, performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.