question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RCTImageLoader crashes when canceling image loads (RN 0.36)

See original GitHub issue

Image 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];
  }
}

image

image

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:closed
  • Created 7 years ago
  • Reactions:22
  • Comments:106 (59 by maintainers)

github_iconTop GitHub Comments

18reactions
gabegreenbergcommented, Nov 23, 2016

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).

17reactions
huitsingcommented, Nov 23, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found