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:
- g++ c++ error: ‘malloc’ was not declared in this scope
- c++ error: ‘malloc’ was not declared in this scope
- Free(): invalid pointer error when libtorch runs under Linux
- Solution to the problem that keil can’t set breakpoint
- Due to multi process — pychar debug breakpoint debugging encounter pychar dataloader will be stuck
- ‘break’ not in the ‘loop’ or ‘switch’ context Error (Fixed)
- zookeeper Failed to Startup: Error: JAVA_HOME is not set and java could not be found in PATH
- Solution to abnormal errors during startup of Python’s Anaconda
- Solve to the cache because there was insufficient free space available after evict
- Solution: vs currently does not hit the breakpoint and has not loaded any symbols for the document
- Could not find method causes verifyerror, which in turn causes crash
- Tomcat Error: because there was insufficient free space available after evicting expired cache entries
- Clion breakpoint not triggered debugging no response to solve the problem
- RabbitMQ Startup Script (How to Set)
- Solution to null pointer error in array
- [idea] error occurred when using @ data annotation in Lombok: no related get / set method was found
- Realization of breakpoint download based on DIO in flutter
- Error in `./a.out‘: free(): invalid next size (fast): 0x0000000001da8010
- Error: While importing ‘run_app_dev‘, an ImportError was raised.
- After the go pointer is declared and assigned, a panic: runtime error: invalid memory address or nil pointer reference appears