Code Monkey home page Code Monkey logo

Comments (7)

colinrtwhite avatar colinrtwhite commented on May 23, 2024 1

Closing as fixed by Compose 1.6.0-alpha01. #2093 (comment)

from coil.

colinrtwhite avatar colinrtwhite commented on May 23, 2024

Does it still occur if you set this to false?

from coil.

siarhei-luskanau avatar siarhei-luskanau commented on May 23, 2024

I have tried to add the .addLastModifiedToFileCacheKey(false) in my pet project, but the DiskReadViolation still occur

from coil.

colinrtwhite avatar colinrtwhite commented on May 23, 2024

@siarhei-luskanau I'm not able to reproduce the strict mode violation in this sample. Can you post the full exception? Strict mode should print the callsite in the logs before the exception posted above.

From your callsite it looks like it's triggered by Android and is unrelated to Coil:

                 	at java.io.File.exists(File.java:813)
                 	at com.android.server.locales.LocaleManagerService.getOverrideLocaleConfig(LocaleManagerService.java:766)
                 	at com.android.server.locales.LocaleManagerService$LocaleManagerBinderService.getOverrideLocaleConfig(LocaleManagerService.java:215)
                 	at android.app.ILocaleManager$Stub.onTransact(ILocaleManager.java:175)

from coil.

colinrtwhite avatar colinrtwhite commented on May 23, 2024

Closing this out since the strict mode warning appears to be caused by LocaleManagerService.

from coil.

siarhei-luskanau avatar siarhei-luskanau commented on May 23, 2024

@siarhei-luskanau I'm not able to reproduce the strict mode violation in this sample. Can you post the full exception? Strict mode should print the callsite in the logs before the exception posted above.

From your callsite it looks like it's triggered by Android and is unrelated to Coil:

                 	at java.io.File.exists(File.java:813)
                 	at com.android.server.locales.LocaleManagerService.getOverrideLocaleConfig(LocaleManagerService.java:766)
                 	at com.android.server.locales.LocaleManagerService$LocaleManagerBinderService.getOverrideLocaleConfig(LocaleManagerService.java:215)
                 	at android.app.ILocaleManager$Stub.onTransact(ILocaleManager.java:175)

@colinrtwhite My pet project in main branch uses io.github.qdsfdhvh:image-loader image loader library. In that case I have no any issue with Android StrictMode.

In coin branch I have migrated to coil3 image library and faced with Android StrictMode issue.

I see that stacktrace doesn't mentioned the coil3. Anyway I'm sure that Android StrictMode issue appear due adding coil3 image library.

from coil.

colinrtwhite avatar colinrtwhite commented on May 23, 2024

I think there might be a strict mode failure in the sample related to a leaked closable - not file system access on the main thread. Let's reopen to track.

from coil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.