Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ios Crash Fix #932

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Ios Crash Fix #932

wants to merge 3 commits into from

Conversation

rezq2009
Copy link

@rezq2009 rezq2009 commented Sep 25, 2022

@mohitarora777
Copy link

mohitarora777 commented Nov 7, 2022

@rezq2009 Just wanted to confirm using WebP also cause this crash or just GIF images ?

@fabio-nettis
Copy link

@DylanVann, Sorry for pinging you directly, but can this be merged please? Library is currently unusable on iOS.

Information on Error

From what I've read so far the issue is caused by the SDWebImage pod that is currently on version 5.11.1 in the projects podspec. Updating it to the latest version would fix this issue.

- (void) setOnFastImageError: (RCTDirectEventBlock)onFastImageError {
    _onFastImageError = onFastImageError;
    if (self.hasErrored) {
        _onFastImageError(@{}); // <-- Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
    }
}

Related issues

Following issues are containing references to this issue or related issues caused by the outdated version of SDWebImage.

@econnerty
Copy link

Is there anyway for me to patch this manually? I added your changes, but the project will not build anymore? @rezq2009

@rezq2009
Copy link
Author

@econnerty

need to :
pod update
in ios dictionary after apply this patch

OR
remove all react-native-fast-image && make sure is unlinked
then install it again and apply this patch before pod install

@ghost
Copy link

ghost commented Feb 7, 2023

@DylanVann Do you have any chance to merge this. This is required to increase the performance of the iOS. We need to use newer versions as below:

  s.dependency 'SDWebImage', '~> 5.15.1'
  s.dependency 'SDWebImageWebPCoder', '~> 0.10.1'

@amerllica
Copy link

@rezq2009, During these 6 months, the SDWebImage and SDWebImageWebPCoder got updated and even your PR needs to be updated.

  s.dependency 'SDWebImage', '~> 5.15.4'
  s.dependency 'SDWebImageWebPCoder', '~> 0.10.1'

@rezq2009
Copy link
Author

rezq2009 commented Mar 2, 2023 via email

@ghost
Copy link

ghost commented Mar 2, 2023

Is it possible to do this version upgrade on my project without merging this PR?

@steve-godlewski
Copy link

Seeing a large number of these crashes in our production app, would be great to get this PR merged in. Any update here?

@amerllica
Copy link

@ensar-initialcode

I think you need to know patch-package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants