POV-Ray : Newsgroups : povray.beta-test : crash with "recursion" in functions : Re: crash with "recursion" in functions Server Time
26 Sep 2024 17:45:34 EDT (-0400)
  Re: crash with "recursion" in functions  
From:
Date: 5 Mar 2002 03:23:05
Message: <nmu88u42ea9akjithuu0famgo9c5kmre9p@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.

It not produce crash it POV-Ray 3.5 b 12 icl on the same machine. But it
doesn't mean it works properly. Now it display dialog window with message "The
POV-Ray core rendering code caused an access violation exception. It is
STRONGLY RECOMMENDED that you save your work and exit the program before
attempting the render again."

Anyway last night I experimented a lot with this source at home with beta 11
and found following:

1) Changing content of Sub[0] caused different results. For example it stopped
rendering displayed with unexpected message for example "wrong Warp type
number 1234" (I recall message from memory) or "Reached maximum number of
recursion in functions". Particularly second message was strange: first
becouse there wasn't such maximum number listed in limits list posted
yesterday, second - becouse message about recursion surprized when recursion
is afaik impossible at this moment.

2) When I removed array usage at all and used combination of Prev/Next
functions then all problems gone so I suppose crash was connected with
refferences in array. Now it works this way:

#local Prev=function(...){...} // previously Sub[0]
#local Next=function(...){...} // previously Sub[1]
#local C=2;
#while (C<Level)
  #local Prev=function(...){Next(...)} // previously Sub[C-1]
  #local Next=function(...){...} // previously Sub[C]
  #local C=C-1;
#end

This is sufficient for me except I'm not sure assigning of Prev not slow down
calculations (is it optimized when Ident1=function{Ident2} ?).

Note: I didn't used #undef to Prev and Next - is this no more necessary ?
Then apriopriate note could be removed from 6.1.6.2.

> Any confirmation ?

I ask again.

ABX


Post a reply to this message

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