POV-Ray : Newsgroups : povray.beta-test : sin(X)^sin(X) -> crash! Server Time
31 Jul 2024 00:26:39 EDT (-0400)
  sin(X)^sin(X) -> crash! (Message 1 to 5 of 5)  
From: Warp
Subject: sin(X)^sin(X) -> crash!
Date: 24 Sep 2001 14:21:06
Message: <3baf7992@news.povray.org>
POV-Ray 3.5 beta4 for Windows, Win98, Athlon, 256MB.

  The following crashes POV-Ray:

#declare X = .1;
#while(X <= 4)
  sphere { <X, sin(X)^sin(X), -.1>, .02 pigment { rgb 1 } }
  #declare X = X+.1;
#end

  And yes, this *is* the shortest version I could come up. Calculating
once sin(X)^sin(X) doesn't seem to crash (even when sin(X) is negative).

  Note that it also crashes if the sin(X)^sin(X) part is replaced with
F(X) and the F function is defined as:

#declare F = function(x) { sin(x)^sin(x) }

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Bob H 
Subject: Re: sin(X)^sin(X) -> crash!
Date: 24 Sep 2001 14:39:48
Message: <3baf7df4$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3baf7992@news.povray.org...
>   POV-Ray 3.5 beta4 for Windows, Win98, Athlon, 256MB.
>
>   The following crashes POV-Ray:
>
> #declare X = .1;
> #while(X <= 4)
>   sphere { <X, sin(X)^sin(X), -.1>, .02 pigment { rgb 1 } }
>   #declare X = X+.1;
> #end

Same here.  3.5 beta 2 and 4, WinME, PIII.

Bob H.


Post a reply to this message

From: Mike Williams
Subject: Re: sin(X)^sin(X) -> crash!
Date: 17 Jan 2002 02:24:56
Message: <0FyKuFAEJeR8EwHC@econym.demon.co.uk>
Wasn't it Warp who wrote:
>  POV-Ray 3.5 beta4 for Windows, Win98, Athlon, 256MB.
>
>  The following crashes POV-Ray:
>
>#declare X = .1;
>#while(X <= 4)
>  sphere { <X, sin(X)^sin(X), -.1>, .02 pigment { rgb 1 } }
>  #declare X = X+.1;
>#end

This was supposed to have been fixed in beta 10, but it still crashes on
my machine.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: sin(X)^sin(X) -> crash!
Date: 17 Jan 2002 05:44:00
Message: <3c46aaf0@news.povray.org>
In article <0Fy### [at] econymdemoncouk> , Mike Williams 
<mik### [at] nospamplease>  wrote:

>>  POV-Ray 3.5 beta4 for Windows, Win98, Athlon, 256MB.
>>
>>  The following crashes POV-Ray:
>>
>>#declare X = .1;
>>#while(X <= 4)
>>  sphere { <X, sin(X)^sin(X), -.1>, .02 pigment { rgb 1 } }
>>  #declare X = X+.1;
>>#end
>
> This was supposed to have been fixed in beta 10, but it still crashes on
> my machine.

Yes, not all of the change made its way into beta 10...

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: sin(X)^sin(X) -> crash!
Date: 17 Jan 2002 05:46:15
Message: <3c46ab77@news.povray.org>
In article <0Fy### [at] econymdemoncouk> , Mike Williams 
<mik### [at] nospamplease>  wrote:

> Wasn't it Warp who wrote:
>>  POV-Ray 3.5 beta4 for Windows, Win98, Athlon, 256MB.
>>
>>  The following crashes POV-Ray:
>>
>>#declare X = .1;
>>#while(X <= 4)
>>  sphere { <X, sin(X)^sin(X), -.1>, .02 pigment { rgb 1 } }
>>  #declare X = X+.1;
>>#end
>
> This was supposed to have been fixed in beta 10, but it still crashes on
> my machine.

It further should be noted that the fix will simply issue an error for this
function if it encounters 0^0, which isn't defined.  So the above won't work
anyway, but it of course will no longer crash in beta 11.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

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