POV-Ray : Newsgroups : povray.beta-test : crash inside two #while : Re: crash inside two #while Server Time
30 Jul 2024 04:20:22 EDT (-0400)
  Re: crash inside two #while  
From: Tom Melly
Date: 11 Jan 2002 12:42:18
Message: <3c3f23fa$1@news.povray.org>
"Gleb" <gk1### [at] sotonacuk> wrote in message news:3c3f1f29$1@news.povray.org...
> This simplified code causes a stable crash (POV 3.5 b9 PIII-1000 512 Mb
> Win2000):

Crashes for me too (after 99% of render). 3.5 beta9.icl.win32  p3 733 W2K

Here's an oddity. The modified code below outputs this to #debug:

-1.#J
-1.#J
-1.#J
-1.#J
-1.#J
-1.#J
-1.#J
-1.#J
-1.#J

Huh?

Here's the modified code

#declare n=1;
#declare i=-1;
#while(i<=n)
  #declare j=-1;
  #while(j<=n)
    #declare tt=((-0.1)^(0.1));
    #debug concat(str(tt,2,2),"\n")
    //sphere{<0,0,0> 1 }
    #declare j=j+1;
  #end
  #declare i=i+1;
#end

(no crash with sphere commented out).

Thinking about it, aren't you trying to find the root of a negative number here?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.