RCTImageLoader crashes when canceling image loads (RN 0.36)
See original GitHub issueImage Loader Crashing at OSAtomicOr32Barrier (EXC_BAD_ACCESS)
Start of Stack is
- (void)didMoveToWindow
{
[super didMoveToWindow];
if (!self.window) {
// Cancel loading the image if we've moved offscreen. In addition to helping
// prioritise image requests that are actually on-screen, this removes
// requests that have gotten "stuck" from the queue, unblocking other images
// from loading.
**[self cancelImageLoad];**
} else if ([self shouldChangeImageSource]) {
[self reloadImage];
}
}
Steps to Reproduce / Code Snippets
Put some Network Images on the Page (Specially in a List View) then scroll or change tabs so Images which are not loaded yet are out of the View Port and go back to same tab/viewport and you will see this error.
Expected Results
No Error
Additional Information
- React Native version: Latest 0.36.rc.0
- Platform(s) (iOS, Android, or both?): iOS
- Operating System (macOS, Linux, or Windows?): macOS
Issue Analytics
- State:
- Created 7 years ago
- Reactions:22
- Comments:106 (59 by maintainers)
Top Results From Across the Web
[Image] Crashes when canceling image loads - React Native
[Image] Crashes when canceling image loads. closed. Tim Gibadullin. It is really sad, that one of the ReactNative core components has a bug ......
Read more >React native application crashes when I try to display local ...
Im trying to build an application that can display images stored locally on the device itself. This application is only targeted for iPads....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We (G2i) are going to match @huitsing 's $250 bounty!! So it’s now at $500 total. That will buy you a very large turkey for your feast tomorrow (for those in the USA).
Hey everyone, we (ZeeMee) are willing to pay a $250 bounty to anyone who fixes this bug, and gets their fix merged into
master
! Let’s kill this thing.