POV-Ray : Newsgroups : povray.beta-test : crash with "recursion" in functions : Re: crash with "recursion" in functions Server Time
29 Jul 2024 20:16:30 EDT (-0400)
  Re: crash with "recursion" in functions  
From:
Date: 11 Mar 2002 08:25:01
Message: <cvbp8usrplaal3kjioa7vi5uqv0dqsgcbi@4ax.com>

wrote:
> POV 3.5 b 11 icl on WinNT Sp 6 PII 233 with 128 MB
>
> Following script causes crash in POV-Ray 3.5 b 11.

Right, posted source was far from brief report. I posted it in that form to be
sure that I don't miss any of elements of complexity. It still was a shortcut
of real source. Anyway here is further and shorter investigation.

For L=2 and L=3 it works.
For L=4 it reports parse error "Problem in Evaluate_TPat"
For L=5 and greater it reports access violation exception

Any confirmation ?

Here is script (short enogh ?)

#local L=6;
#local Pattern=function{pattern{agate}}
#local S=array[L];
#local S[0]=function(u0,v0,u1,v1){Pattern(u1,v1,0)};
#local S[1]=function(u0,v0,u1,v1){S[0](u0,v0,u1,v1)};
#local C=2;
#while (C<L)
  #local S[C]=function(u0,v0,u1,v1){S[C-1](u0,v0,u1,v1)};
  #local C=C+1;
#end
#local C=S[L-1](0,0,-1,-1);

ABX


Post a reply to this message

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