|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This simplified code causes a stable crash (POV 3.5 b9 PIII-1000 512 Mb
Win2000):
It's OK if one of #while blocks or sphere is removed.
//-------8<----------
#declare n=1;
#declare i=-1;
#while(i<=n)
#declare j=-1;
#while(j<=n)
#declare tt=((-0.1)^(0.1));
sphere{<0,0,tt> 1 }
#declare j=j+1;
#end
#declare i=i+1;
#end
//-------8<----------
gleb
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Fri, 11 Jan 2002 17:21:45 -0000, "Gleb" <gk1### [at] sotonacuk> wrote:
> This simplified code causes a stable crash (POV 3.5 b9 PIII-1000 512 Mb
> Win2000):
> It's OK if one of #while blocks or sphere is removed.
I can't confirm. Works properly on my machine.
POV 3.5 b 9.icl on PII 233 128 MB with NT 4 Sp 6
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it Tom Melly who wrote:
>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?
I think it's trying to say "-1.#IND", indicating an invalid number.
Because you only allowed it to display 2 places of decimals, it has
rounded up the "I" to "J". In the same way, if you allow 1 or 3 places
of decimals it will round the "#" up to "$" or the "N" up to "O"
respectively.
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Mike Williams" <mik### [at] nospamplease> wrote in message
news:5fp### [at] econymdemoncouk...
> I think it's trying to say "-1.#IND", indicating an invalid number.
<snip>
Wow! Thanks Sherlock. YNYHBUCTL when the idea of rounding ind to j seems
aesthetically pleasing....
Presumably that's the -0.1^0.1 ?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Presumably that's the -0.1^0.1 ?
Yeah... probably. Negative numbers to fractional powers are undefined, I
believe.
- Slime
[ http://www.slimeland.com/ ]
[ http://www.slimeland.com/images/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Of course, the result of this operation is undefined.
The strange part is that the crash takes place only inside at least two
#while blocks.
Maybe it's about stack memory releases when handling an error event?
gleb
----- Original Message -----
From: "Slime" <noo### [at] hotmailcom>
Newsgroups: povray.beta-test
Sent: Friday, January 11, 2002 9:14 PM
> Yeah... probably. Negative numbers to fractional powers are undefined, I
> believe.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |