2013-11-18 05:04:17 -0500 commented answer ORB crashes on specific image.... how do I handle this correctly? 2013-11-15 09:26:22 -0500 received badge ● Supporter (source) 2013-11-15 08:48:45 -0500 asked a question ORB crashes on specific image.... how do I handle this correctly? My code: #0rb test img=cv2.imread("training_data/positives/img3348.jpg",0) print img,type(img),img.shape,type(img[0][0]) OrbParams={"nfeatures":500,"scaleFactor":1.5,"nlevels":8,"edgeThreshold":31,"firstLevel":0,"WTA_K":2, "scoreType":0,"patchSize":31} ShinyMysteriousOrb=cv2.ORB(**OrbParams) print ShinyMysteriousOrb.detectAndCompute(img,None)  Now this works fine for most images, but there is a specific one which triggers inconsistent behaviour.... Infrequently it works, mostly it crashes with either of the following errors: python: malloc.c:3637: _int_malloc: Assertion (unsigned long)(size) >= (unsigned long)(nb)' failed. Aborted (core dumped) Segmentation fault (core dumped) * Error in /usr/bin/python': corrupted double-linked list: 0x0000000004814ed0 * On that last one there are three *'s on either side... but opencv answers interprets two of these as bold. Also note that with the third error the console hangs and won't release control back to me i have to control z it. Console vomit: jonathan@jonathan-laptop: [[0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] ..., [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0]] (240, 320) *** Error in `/usr/bin/python': corrupted double-linked list: 0x0000000004814ed0 *** jonathan@jonathan-laptop: [[0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] ..., [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0]] (240, 320) jonathan@jonathan-laptop: [[0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] ..., [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0] [0 0 0 ..., 0 0 0]] (240, 320) ([, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,