1. new 数组出现崩溃 new 数组时数组下标出现负值,但未做出错处理: new数组,数组字节数大于4MB的时候有可能出现crash! 解决办法: 加入 try catch 后,这样的错误几乎没有了,但是这样不是解决办法,只是给程序埋了个地雷. try{ cur_img.data[0] = new uint8_t[1280*720]; cur_img.data[1] = new uint8_t[1280*360]; cur_img.data[2] = new uint8_t[1280*36…