You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the latest version of react-native-navigation and react-native, when we are trying to run our app on iOS 17, we are receiving the following main thread crash:
Exception NSException * "UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={1, 0}, scale=1.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert." 0x0000600000d35170
It seems to be cause by UIGraphicsBeginImageContext(size); inside the imageWithSize method in UIImage+utils.m
When commenting out the line it works. I assume it's because it's passing the height as 0, but not sure where this is coming from as the stack-trace is incomplete. This should definitely be handled.
in my case it happened when tintColor was passed in FastImage <FastImage tintColor={'#000000'} style={styles.iconStyle1} source={require('../../assets/close.png')} />
this fixed the issue <Image style={[styles.iconStyle1, { tintColor: '#000000' }]} source={require('../../assets/close.png')} />
What happened?
On the latest version of react-native-navigation and react-native, when we are trying to run our app on iOS 17, we are receiving the following main thread crash:
It seems to be cause by UIGraphicsBeginImageContext(size); inside the imageWithSize method in UIImage+utils.m
When commenting out the line it works. I assume it's because it's passing the height as 0, but not sure where this is coming from as the stack-trace is incomplete. This should definitely be handled.
Potentially some more useful information here: https://developer.apple.com/forums/thread/733326
What was the expected behaviour?
No response
Was it tested on latest react-native-navigation?
Help us reproduce this issue!
No response
In what environment did this happen?
React Native Navigation version: 7.37.0-hotfix.1
React Native version: 0.72.5
Has Fabric (React Native's new rendering system) enabled: no
Device model: iPhone 15 Pro
iOS version: 17.0
The text was updated successfully, but these errors were encountered: