-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
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:
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.
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?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
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