Blender crashes in bm_corners_to_loops when importing .3ds

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

Post Reply
Myrmecophagavir
Posts: 0
Joined: Tue Aug 24, 2010 1:40 am

Blender crashes in bm_corners_to_loops when importing .3ds

Post 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?

Myrmecophagavir
Posts: 0
Joined: Tue Aug 24, 2010 1:40 am

Post by Myrmecophagavir »

This seems to have been fixed.

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Post 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 freenode.net .

Myrmecophagavir
Posts: 0
Joined: Tue Aug 24, 2010 1:40 am

Post 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.

Post Reply