Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

error: object cannot be nil #161

Open
songyuyang0918 opened this issue Jun 29, 2021 · 1 comment
Open

error: object cannot be nil #161

songyuyang0918 opened this issue Jun 29, 2021 · 1 comment
Labels
checking check the issue

Comments

@songyuyang0918
Copy link

问题描述:
我有一个svga动图,它初始化内存消耗太大,所以使用作者提供的UIImage+Extesion方法。
截屏2021-06-29 下午6 18 32
截屏2021-06-29 下午6 18 49

如何再次出现:
使用该方法后,模拟器没有问题, 真机上报错: (iphone6 12.4.7 iphonexr 13.4.1)
-[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: img_561)'

附件:
https://drive.google.com/file/d/1QK7Q0NouGoVolap13WPdrhjm3Fa_hSZk/view?usp=sharing

Thank you very much for your help

@yangqingren yangqingren added the checking check the issue label Jul 6, 2021
@yangqingren
Copy link
Contributor

你好,这应该是别的 issues 中出现的代码,这是一个提前解码图片的操作
发生异常,可以自行排查 img_561 图片是否有异常并做好字典判空操作

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
checking check the issue
Projects
None yet
Development

No branches or pull requests

2 participants