1. Problem scene
APP startup exception crashes
BlockChainStep(1332,0x7000057ad000) malloc: * error for object 0x600000008300: pointer being freed was not allocated
* set a breakpoint in malloc_error_break to debug
Second, the cause of the crash
In Xcode8 this will occur if your image resource file has 16 bitmaps or if the image display mode is P3 and the Deployment Target is below iOS9.3. (As a matter of fact, a small button appeared in the project of our company, which caused this crash. I don’t know how the designer made this special picture…) If your App needs to support the wide color functionality, you’ll have to set the Deployment Target to above iOS9.3. If your APP doesn’t need to support wide color functionality and you want to be compatible with the older versions of iOS, you’ll need to convert all the 16-bit or P3 images to 8-bit sRGB assets
3. Solutions
Convert image to 8-bit sRGB Assets format
Reference article: Xcode assets problem caused by running iOS8 crash solution
Read More:
- UIStackView before iOS 9.0
- Eclipse run main method error: a JNI error has occurred, please check your installation and try again
- Xcode – pbxcp Error Repair – no such file or directory
- Converting PDF file to JPG image in Ubuntu
- g++ c++ error: ‘malloc’ was not declared in this scope
- Compiling TPC-H tools for Mac
- Mac ports installation software prompts “warning: xcodebuild exists but failed to execute”
- [problem record] objc_ Too many arguments to function call
- opencv cvtColor dtype issue(error: (-215) )
- c++ error: ‘malloc’ was not declared in this scope
- iOS clang: error: linker command failed with exit code 1 (use -v to see invocation)
- [error log] 27.1.0 series of errors Error:Failed to resolve: com.android.support :support-an notations:27.1.0
- Upload Appstore error itms-90725
- “Failed to convert @ drawable / XX into a drawable exception details are logged in window”
- Unable to find utility “instruments”, not a developer tool or in PATH
- There is an unhandled exception at: 0xc0000005: an access conflict occurred while reading location 0x00000000.
- The key “target densitydpi” is not supported
- Start react-native after updating Xcode11 and report an error: Unknown argument type ‘_attribute_’ in method -[RCTAppState getCurren
- The pyinstaller settings icon appears“ struct.error : unpack requires a buffer of 16 bytes”
- About Xcode command phasescriptexecution failed with a nonzero exit code solution