Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StrictMode policy violation: android.os.strictmode.DiskReadViolation #1129

Open
rohitjakhar opened this issue Nov 21, 2023 · 1 comment
Open

Comments

@rohitjakhar
Copy link

✍️ Describe the bug

While I am using StrctMode for testing app i found this issue in Chucker.

StrictMode policy violation; ~duration=839 ms: android.os.strictmode.DiskWriteViolation
at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1629)
at libcore.io.BlockGuardOs.remove(BlockGuardOs.java:365)
at libcore.io.ForwardingOs.remove(ForwardingOs.java:673)
at android.app.ActivityThread$AndroidOs.remove(ActivityThread.java:8002)
at java.io.UnixFileSystem.delete(UnixFileSystem.java:363)
at java.io.File.delete(File.java:1035)
at com.chuckerteam.chucker.internal.data.room.ChuckerDatabase$Companion.create(ChuckerDatabase.kt:22)
at com.chuckerteam.chucker.internal.data.repository.RepositoryProvider.initialize(RepositoryProvider.kt:34)
at com.chuckerteam.chucker.api.ChuckerCollector.<init>(ChuckerCollector.kt:32)
at com.chuckerteam.chucker.api.ChuckerCollector.<init>(ChuckerCollector.kt:23)
at com.chuckerteam.chucker.api.ChuckerInterceptor$Builder.build(ChuckerInterceptor.kt:366)                                                                                              
@leinardi
Copy link

I have StrictMode enabled but I don't get this violation (API 29), on which API level do you get it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants