[Bf-committers] 2.33a freeze.... ehh... bug!

Peter den Bak bf-committers@blender.org
Wed, 12 May 2004 19:39:41 +0200


Hi,

Here it hangs:
It is in ray.c at line 1196

The value of ddalabda= -1.#IND0
This is very strange because ddalabda is a float. So how can it have the
value -1.#IND0 ,or does this notation have a special meaning in the MSVC6
debugger?


		while(TRUE) {

			no= ocread(xo, yo, zo);
			nodecount++;
			if(no) {
				if(nodecount>3) coherent= 0;
				
				/* calculate ray intersection with octree
node */
				VECCOPY(vec1, vec2);
					// dox,y,z is negative
				vec2[0]= ox1-ddalabda*dox;
				vec2[1]= oy1-ddalabda*doy;
				vec2[2]= oz1-ddalabda*doz;
				/* no calc, this is store */
				calc_ocval_ray(NULL, vec1[0], vec1[1],
vec1[2], vec2[0], vec2[1], vec2[2]);
				
				is->ddalabda= ddalabda;
				if( testnode(is, no, xo,yo,zo) ) return 1;
			}
			else if(coh_test) {
				coherent_ray++;
				return 0;
			}

			labdao= ddalabda;

			if(labdax<labday) {
				if(labday<labdaz) {
					xo+=dx;
					labdax+=ldx;
				} else if(labdax<labdaz) {
					xo+=dx;
					labdax+=ldx;
				} else {
					zo+=dz;
					labdaz+=ldz;
					if(labdax==labdaz) {
						xo+=dx;
						labdax+=ldx;
					}
				}
			} else if(labdax<labdaz) {
				yo+=dy;
				labday+=ldy;
				if(labday==labdax) {
					xo+=dx;
					labdax+=ldx;
				}
			} else if(labday<labdaz) {
				yo+=dy;
				labday+=ldy;
			} else if(labday<labdax) {
				zo+=dz;
				labdaz+=ldz;
				if(labdaz==labday) {
					yo+=dy;
					labday+=ldy;
				}
			} else {
				xo+=dx;
				labdax+=ldx;
				yo+=dy;
				labday+=ldy;
				zo+=dz;
				labdaz+=ldz;
			}

			ddalabda=MIN3(labdax,labday,labdaz);
			if(ddalabda==labdao) break;
			/* to make sure the last node is always checked */
			if(labdao>=1.0) break;
		}

Regards,

Peter


-----Original Message-----
From: bf-committers-admin@blender.org
[mailto:bf-committers-admin@blender.org] On Behalf Of Ton Roosendaal
Sent: Wednesday, May 12, 2004 5:25 PM
To: bf-committers@blender.org
Subject: [Bf-committers] 2.33a freeze.... ehh... bug!

Hi,

On irc was a long session this afternoon to find a problem in windows  
compile with a .blend.
For some reason it crashes with 2.33 release (windows) but not OSX  
(release, current CVS).
Also the latest cvs crashes for *some* Windows builds, but not for  
everyone (Like the one Fabio posted today in testing build forum goes  
fine).

http://homepages.ihug.com.au/~smerity/sat-dish2_crazy.rar

Just unpack, and load in Blender, press F12.
When rendering reaches the last part (handle with bolts) it hangs...  
infinite loop or so.

I'd need someone familiar with debug compiling and interrupting a  
running program to examine the function call stack... where is it  
hanging, and why?
Personally I suspect some optimize compile option...

For direct assistance/feedback you can also go to irc.freenode.net  
#blendercoders.

For this bug to solve, I'd prefer to wait with final "freeze", so the  
translation (Dave Stone) is OK to commit. Also Matt Ebb has some label  
text improvements for menus he'd like to add.
Further just keep testing! I'll update status end of day by mail here.

-Ton-

------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton@blender.org  
http://www.blender.org

_______________________________________________
Bf-committers mailing list
Bf-committers@blender.org
http://www.blender.org/mailman/listinfo/bf-committers