airbnb / lottie-ios

An iOS library to natively render After Effects vector animations
http://airbnb.io/lottie/
Apache License 2.0
25.76k stars 3.75k forks source link

Error Domain=NSCocoaErrorDomain Code=260 "The file “heart-icon-like.lottie” couldn’t be opened because there is no such file." #2224

Closed rcrahul43 closed 11 months ago

rcrahul43 commented 1 year ago

Which Version of Lottie are you using?

Lottie 4.1.3

Actual Behavior

Animation files are removed from cache and not loaded once app received memory warning. SDK throws following warning: Error when decoding lottie "heart-icon-like": Error Domain=NSCocoaErrorDomain Code=260 "The file “heart-icon-like.lottie” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/rahulchaudhari/Library/Developer/CoreSimulator/Devices/0B02E6E5-9824-4730-992A-A10FFABD3B75/data/Containers/Data/Application/3D23C25E-7ABE-477A-8AC7-7C851BA46868/tmp/heart-icon-like.lottie} https://github.com/airbnb/lottie-ios/assets/10935538/d9c05e34-920d-4dbf-a4da-0388ea594161

Animation JSON

calda commented 1 year ago

Can you please share a sample project with specific steps to reproduce your issue?

rcrahul43 commented 1 year ago

LottieSample.zip

Steps to reproduce are recorded in the video attached previously. Basically in case of system memory warning, lottie files are not available.

github-actions[bot] commented 1 year ago

This issue is stale because it is marked "can't reproduce" and has had no activity in the past week. Please comment with additional information, or this issue will be closed due to inactivity in one week.