POV-Ray : Newsgroups : povray.beta-test : Array/declare memory (?) bug in b5 Server Time
4 Nov 2024 13:01:07 EST (-0500)
  Array/declare memory (?) bug in b5 (Message 1 to 3 of 3)  
From: Redbeard (MDJohnson)
Subject: Array/declare memory (?) bug in b5
Date: 8 Oct 2001 01:57:57
Message: <3bc14065$1@news.povray.org>
Pov 3.5b5, AMD Athlon 700, 192MB Windows 98SE

I think this is probably a memory.  When I run the following file, POV-Ray
disappears while parsing.  No error reports are generated by Windows or
POV-Ray.  POV-Ray just silently shuts down.

The file 'trace.txt' has consecutive numbers from 0 to 760.  It also fails
on multidimensional arrays, but sooner.  If you take out the #declare Q=1;
it doesn't crash.

#macro Print(X)
    #fopen DFile "trace.txt" append
    #write (DFile, str(X,-3,0), "\n")
    #fclose DFile
#end

#declare G = array[1000]
#declare X = 0;
#while (X < 1000)
    Print(X)
    #declare Q = 1;
    #declare X = X + 1;
#end

Michael

-----
camera{location<8,20>look_at<6,0,4>}light_source{<8,8>rgb
1}difference{union{
#macro M(D,J)#local
R=asc(substr(D,J,1))-32;<div(R,10)*2,mod(R,10)>#end#macro
E(D,B,R)prism{-D,4+D,R#local C=1;#while(C<R+1)M(B,C)#local C=C+1;#end}#end
E(
0," (2:FPKAD80* U_dZU"18)sphere{2,2}#macro
T(N)cylinder{<9,-N,3><9,4+N,3>3-N}
#end T(0)}T(2)E(1"45LNXUK4"8)pigment{rgb x+y/2}}//(c)2001
MDJohnson(Redbeard)


Post a reply to this message

From: Ron Parker
Subject: Re: Array/declare memory (?) bug in b5
Date: 8 Oct 2001 23:02:40
Message: <slrn9s4q6s.3el.ron.parker@fwi.com>
On Mon, 8 Oct 2001 01:59:19 -0400, Redbeard \(MDJohnson\) wrote:
>Pov 3.5b5, AMD Athlon 700, 192MB Windows 98SE
>
>I think this is probably a memory.  When I run the following file, POV-Ray
>disappears while parsing.  No error reports are generated by Windows or
>POV-Ray.  POV-Ray just silently shuts down.

I think this is the bug of the hour, caused by loops that contain only
#-directives and declarations.  See other posts from the past few days for
the gory details.

--
#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

From: Redbeard (MDJohnson)
Subject: Re: Array/declare memory (?) bug in b5
Date: 9 Oct 2001 03:41:32
Message: <3bc2aa2c$1@news.povray.org>
"Ron Parker" <ron### [at] povrayorg> wrote in message
news:slr### [at] fwicom...
> On Mon, 8 Oct 2001 01:59:19 -0400, Redbeard \(MDJohnson\) wrote:
> >Pov 3.5b5, AMD Athlon 700, 192MB Windows 98SE
> >
> >I think this is probably a memory.  When I run the following file, POV-Ray
> >disappears while parsing.  No error reports are generated by Windows or
> >POV-Ray.  POV-Ray just silently shuts down.
>
> I think this is the bug of the hour, caused by loops that contain only
> #-directives and declarations.  See other posts from the past few days for
> the gory details.
>

That's what I've been thinking :-)

--
#declare R=<8,4,.6>/3;#declare C=function{pattern{object{text{ttf"crystal.ttf"
"MDJ"1,0translate-R/4}}}}camera{location-z*30}box{-R,R pigment{rgbf 1}interior
{media{emission.1density{function{C(x,y,z)}density_map{[0mandel 50color_map{[0
rgb 0][.2rgb x][1rgb x+y]}interior 1,1.5scale 60translate<-33.75,2.85>exponent
4][1rgb<2,2>]}}}}scale 24hollow}// (c) 2001 MDJohnson red### [at] wvadelphianet


Post a reply to this message

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