POV-Ray : Newsgroups : povray.general : povray crashes on multiplication? : povray crashes on multiplication? Server Time
31 Jul 2024 02:30:27 EDT (-0400)
  povray crashes on multiplication?  
From: stevenvh
Date: 2 Dec 2007 15:00:01
Message: <web.47530db5ce3f99a0e99dba500@news.povray.org>
Hi,
I'm using a macro which is called only a few (7) times:

/* code starts here *********************************************************/
#macro DrawShelfSection( aLeft, aRight, aY, aSlanting )
    #declare InvCosSl = 1 / cos ( 180 * aSlanting / pi );
    ...
    #declare xx = Left;
    #while (xx < Right)
        ...
        #if (xx + Bwidth <= Right)
            DrawBook( xx, aY, Bheight, Bwidth, aSlanting, RandomColor > )
        #end
        #declare xx = xx + Bwidth * InvCosSl;
    #end
#end
/* code ends here ***********************************************************/

When I start rendering the "tokens parsed" counter starts and runs until POVray
crashes at about 270 million (!) tokens parsed.
When I change the last declaration to

    #declare xx = xx + Bwidth;

everything runs fine (with only 660000 tokens parsed).
I first thought the error may have been caused by the 10000x10000 pixel image,
but it also happens on a 500x500.
You can find the error msg dialog at http://www.nenya.be/temp/povray_err.png.

Ideaz anyone?
TIA
Steven


Post a reply to this message

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