Closed RegianeF closed 7 months ago
I need set: diskCachePolicy(CachePolicy.READ_ONLY)
This isn't viable because telephoto needs to stream large bitmaps from the disk for optimum performance. In fact, the disk policy is overridden by telephoto to CachePolicy.ENABLED
here:
What's your reason for not saving downloaded photos to the disk?
For my test i used 11 imagens from https://unsplash.com/ and then this crash happend when insert app for the first time ou clean cache. It happens quite often, and happens most time in the last image from carousel.
If the app crashes only if you clear the cache in background then yep this is the same as https://github.com/saket/telephoto/issues/69. Is currentImage
a String
/Uri
type?
What's your reason for not saving downloaded photos to the disk?
I just tried some solutions without much reason behind it, basically I had some fileprovider Exception, placing the caches that way I didn't notice the problem anymore. And if I remove these lines the problem returns. This is weird, i don't understand.
If the app crashes only if you clear the cache in background then yep this is the same as #69. Is
currentImage
aString
/Uri
type?
I'm using just string for these tests.
I'm making a new app to show errors on my github, today an error I caught with Coil returned null. I can't currently play the file provider in this new app, I'm still going to adjust some things.
If will say in percetage, is like 5% of trys i get this erros.
https://github.com/RegianeF/SampleImageProject
The erros from this app related IllegalStateException: Coil returned a null cache snapshot:
Thanks for helping :)
We are also seeing this same error and I can't help but notice the !! in the CoilImageSource as well as the kotlin assertions used which crash the app instead of silently failing.
Merging this with https://github.com/saket/telephoto/issues/37
Hello,
Congratulations on the work, the zoom quality is veryy good.
I have a problem happening and I would like help if possible, I even viewed open issue #69 , but it didn't help me.
Excpetion:
My code:
CurrentImage is urls?.get(pagerState.currentPage)
I need set: diskCachePolicy(CachePolicy.READ_ONLY) and memoryCachePolicy(CachePolicy.READ_ONLY) because has another exception: java.io.FileNotFoundException: No content provider: (...) look like #50 . If I put it this way I can't reproduce the problem.
For my test i used 11 imagens from https://unsplash.com/ and then this crash happend when insert app for the first time ou clean cache. It happens quite often, and happens most time in the last image from carousel.
Thanks for helping :)