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

App getting crashed in iOS 17.0 #188

Open
nirmalsinhrathodcygnet opened this issue Oct 3, 2023 · 4 comments
Open

App getting crashed in iOS 17.0 #188

nirmalsinhrathodcygnet opened this issue Oct 3, 2023 · 4 comments

Comments

@nirmalsinhrathodcygnet
Copy link

Error: Exception thrown while executing UI block: UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 0}, scale=3.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert.

simulator_screenshot_98627BE9-DF5F-4C69-8C9E-8077F292FD72

@mahendroo
Copy link

mahendroo commented Nov 3, 2023

Hey @nirmalsinhrathodcygnet

This issue is related to the react-native-svg library that is being used to support the rendering of the QR code as a dependency with this library.

This is already fixed with that library, you can read more about the issue and fix here software-mansion/react-native-svg#2117

The above should solve your problem if you are on react-native >= 0.63. If you are on version lower, I would advise you to at least upgrade the codebase to 0.63.5 or later depending upon your requirement. As the react-native-svg version incorporating this fix doesn't support Android on less than 0.63 versions.

@AlMel3000
Copy link

Hello!

Do you use react-native-fast-image?

Check this solution please:
DylanVann/react-native-fast-image#1002 (comment)

@mahendroo
Copy link

Hey @AlMel3000

Thanks for the answer, I was not using Fast Image in my project and all over the internet I could only found the fast image related solutions.
This issue persist with react-native-svg as well and the library react-native-qrcode-svg library uses react-native-svg as dependency hence getting impacted.

@AlMel3000
Copy link

Hey @AlMel3000

Thanks for the answer, I was not using Fast Image in my project and all over the internet I could only found the fast image related solutions. This issue persist with react-native-svg as well and the library react-native-qrcode-svg library uses react-native-svg as dependency hence getting impacted.

I see.
The error is a pretty similar, so I thought I can help you.
Sorry for distraction

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

No branches or pull requests

3 participants