react-native: Image.getSize raising {"framesToPop":1,"code":"E_GET_SIZE_FAILURE"}
Issue Description
Image.getSize fails randomly with error {"framesToPop":1,"code":"E_GET_SIZE_FAILURE"}
Steps to Reproduce / Code Snippets
In my Moto G3, it happens way more often than in my Nexus 5X. If I render a component with an Image that calls to getSize
and I render the same component with the same image twice, in my Moto G3 fails 90% of the times, so I think it could be related to reference closing in Android.
Sometimes it works and sometimes it fails for the very same image and component, functioning is erratic. I’m all the time loading local images.
Expected Results
Instead of raising an error, return the width and height
Additional Information
- React Native version: 0.33.0
- Platform(s) (iOS, Android, or both?): Android Only 6.0 real device, in emulator doesn’t happen (probably because images load faster)
- Operating System (macOS, Linux, or Windows?): macOS
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 6
- Comments: 15 (2 by maintainers)
@hramos could you please reopen this ?
It still happens with RN 0.55.3
+1
After upgrading to RN 0.34 Now I’m sometimes getting: