Page 1 of 1

Blender crashes in bm_corners_to_loops when importing .3ds

Posted: Wed Mar 07, 2012 3:27 am
by Myrmecophagavir
I build Blender (Windows x86) myself by getting from SVN. Recently it's started crashing when I import my .3ds files. I finally managed to get a debug build working - the crash occurs early in bm_corners_to_loops in mesh.c:

Code: Select all

	for (i=0; i < numTex; i++) {
		texface = CustomData_get_n(&me->fdata, CD_MTFACE, findex, i);
		texpoly = CustomData_get_n(&me->pdata, CD_MTEXPOLY, findex, i); 
>		ME_MTEXFACE_CPY(texpoly, texface);
At the last line, texpoly is NULL. This code and the crash seem to have been introduced with the recent 'bmesh' merge. Anyone know what should be done here?

Posted: Mon Mar 12, 2012 3:00 pm
by Myrmecophagavir
This seems to have been fixed.

Posted: Mon Mar 12, 2012 4:55 pm
by stiv
BMesh was only recently merged into trunk. There are still some 'issues'. If you are having compilation problems, the quickest place to get help is the #blendercoders IRC channel on .

Posted: Mon Mar 12, 2012 4:58 pm
by Myrmecophagavir
Thanks Stiv, though it wasn't a compilation problem. The code was just crashing when loading certain .3ds files - presumably not checking for a NULL pointer where it should have. Anyway, not a problem now that it's been fixed.