You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Telephoto uses coil's disk cache for streaming large images directly from the disk. This is working well for most users, but some users are reporting crashes where coil is returning a null cache entry, possibly because the cache entry was either cleared or opened somewhere else before telephoto could access it.
Describe the solution you'd like
an atomic API that writes the image data to disk then immediately opens a source for the file. That way we avoid the race condition between writing the image data and calling openSnapshot
@revonateB0T That API's only useful if you're also writing the data. Saket's looking for an API that will do URL -> DiskCache.Snapshot. The current way of URL -> disk cache key -> DiskCache.Snapshot allows some cases where disk cache key -> DiskCache.Snapshot will return null (race conditions around simultaneous read/write, cache getting cleared).
Is your feature request related to a problem? Please describe.
Telephoto uses coil's disk cache for streaming large images directly from the disk. This is working well for most users, but some users are reporting crashes where coil is returning a null cache entry, possibly because the cache entry was either cleared or opened somewhere else before telephoto could access it.
Describe the solution you'd like
Additional context
saket/telephoto#106 (comment)
The text was updated successfully, but these errors were encountered: