POV-Ray : Newsgroups : povray.beta-test : crash with loop Server Time
30 Jul 2024 08:22:34 EDT (-0400)
  crash with loop (Message 1 to 6 of 6)  
From: Simon Adameit
Subject: crash with loop
Date: 28 Dec 2001 13:28:07
Message: <3c2cb9b7@news.povray.org>
The following code crashes POV
#local Z=0;
#while(Z<1)
#local
#end

433 Celeron 64 MB Windows 98 SE POV beta 9
--
#local T=text{ttf"timrom.ttf""Simon Adameit".01,0}#local Y=1;#while(Y>-1)
#local X=0;#while(X<7)#local O=trace(T<X,Y><X,Y>+z);cylinder{<X-3,Y,5>*.01
<X-3,Y,5>*.01+5e-3,5e-5pigment{rgb 25*O}}#debug chr(83-(O.x=0)*51)#local
X=X+.05;#end#debug"\n"#local Y=Y-.05;#end


Post a reply to this message

From:
Subject: Re: crash with loop
Date: 28 Dec 2001 13:42:08
Message: <sjep2ucv0jrdi5jto9vk67gr2sp521cdhc@4ax.com>
On Fri, 28 Dec 2001 19:27:25 +0100, "Simon Adameit" <gom### [at] gmxde> wrote:
> The following code crashes POV

I can confirm this
POV 3.5 b 9 on PII 233 128 MB with NT 4 Sp 6

> #local Z=0;
> #while(Z<1)
> #local
> #end

I want refresh another win editor problem (listed in known bug list):

1. remove first line and save, current script is:
    #while(Z<1)
    #local
    #end
    Parse Error: Expected 'numeric expression', undeclared identifier 'Z' found
instead

2. Ctrl+Z back removed line and remove second line (arrow down, shift+arrow
down+del), current script is:
    #local Z=0;
    #local
    #end
    Parse Error: Expected 'numeric expression', undeclared identifier 'Z' found
instead

Seems editor not checked that content of windows is changed.

ABX


Post a reply to this message

From: Mike Williams
Subject: Re: crash with loop
Date: 29 Dec 2001 11:04:00
Message: <7WA5KBAlHdL8Ewmn@econym.demon.co.uk>


>I want refresh another win editor problem (listed in known bug list):
>
>1. remove first line and save, current script is:
>    #while(Z<1)
>    #local
>    #end
>    Parse Error: Expected 'numeric expression', undeclared identifier 'Z' found
>instead
>
>2. Ctrl+Z back removed line and remove second line (arrow down, shift+arrow
>down+del), current script is:
>    #local Z=0;
>    #local
>    #end
>    Parse Error: Expected 'numeric expression', undeclared identifier 'Z' found
>instead
>
>Seems editor not checked that content of windows is changed.

I confirm that this happens. The "save" icon is greyed out (presumably
because the editor is convinced that the text hasn't changed) you have
to use Ctrl-S or the File->Save menu to force it to be saved.

Does CodeMax have its own known bug list where this is listed? I'm
pretty sure it's never been in my POV known bug list.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From:
Subject: Re: crash with loop
Date: 31 Dec 2001 02:23:33
Message: <48403u81h40uim3egul58vj1f679dmbg10@4ax.com>
On Sat, 29 Dec 2001 14:23:33 +0000, Mike Williams <mik### [at] nospamplease> wrote:
> I'm pretty sure it's never been in my POV known bug list.

You have listed it as:

First report from bugreports
http://news.povray.org/u12outsm2kso3k5ef4lp26ogm5cvsm46ge@4ax.com

Just check this post: there are three listed. I don't know why but you never
unrolled this list. Seems only first is fixed now as Rune reported.

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

From: Greg M  Johnson
Subject: Re: crash with loop
Date: 2 Jan 2002 14:02:06
Message: <3c33592e$1@news.povray.org>
"Simon Adameit" <gom### [at] gmxde> wrote in message
news:3c2cb9b7@news.povray.org...
> The following code crashes POV
> #local Z=0;
> #while(Z<1)
> #local
> #end
>

Ain't that an infinite loop?


Post a reply to this message

From: Ron Parker
Subject: Re: crash with loop
Date: 2 Jan 2002 16:13:15
Message: <slrna36tve.1rp.ron.parker@fwi.com>
On Wed, 2 Jan 2002 14:00:51 -0500, Greg M. Johnson wrote:
> "Simon Adameit" <gom### [at] gmxde> wrote in message
> news:3c2cb9b7@news.povray.org...
>> The following code crashes POV
>> #local Z=0;
>> #while(Z<1)
>> #local
>> #end
>>
> 
> Ain't that an infinite loop?

Yes, but it's worse than that.  It's essentially the same as if you wrote
a file that was just #local #local #local #local #local ad infinitum, with
the result that the parser stackfaults.

--
#macro R(L P)sphere{L __}cylinder{L P __}#end#macro P(_1)union{R(z+_ z)R(-z _-z)
R(_-z*3_+z)torus{1__ clipped_by{plane{_ 0}}}translate z+_1}#end#macro S(_)9-(_1-
_)*(_1-_)#end#macro Z(_1 _ __)union{P(_)P(-_)R(y-z-1_)translate.1*_1-y*8pigment{
rgb<S(7)S(5)S(3)>}}#if(_1)Z(_1-__,_,__)#end#end Z(10x*-2,.2)camera{rotate x*90}


Post a reply to this message

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