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 violation - android.os.strictmode.DiskWriteViolation #782

Closed
KiraFleming opened this issue Mar 9, 2022 · 1 comment
Closed

Comments

@KiraFleming
Copy link

KiraFleming commented Mar 9, 2022

✍️ Describe the bug

D/StrictMode: StrictMode policy violation; ~duration=618 ms: android.os.strictmode.DiskWriteViolation
        at android.os.StrictMode$AndroidBlockGuardPolicy.onWriteToDisk(StrictMode.java:1552)
        at libcore.io.BlockGuardOs.remove(BlockGuardOs.java:340)
        at libcore.io.ForwardingOs.remove(ForwardingOs.java:185)
        at android.app.ActivityThread$AndroidOs.remove(ActivityThread.java:7616)
        at java.io.UnixFileSystem.delete(UnixFileSystem.java:331)
        at java.io.File.delete(File.java:1037)
        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)

💣 Steps to reproduce

Init Chucker with detectAll() as the StrictMode policy

📱 Tech info

  • Device: Nokia G10
  • OS: 11
  • Chucker version: 3.5.2
@cortinico
Copy link
Member

I believe this is a duplicate of #737 and got already fixed on #750

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

3 participants