POV-Ray : Newsgroups : povray.beta-test : function re-declaration crash Server Time
30 Jul 2024 16:18:01 EDT (-0400)
  function re-declaration crash (Message 1 to 4 of 4)  
From: Elias Pschernig
Subject: function re-declaration crash
Date: 31 Oct 2001 05:09:59
Message: <3bdfcdf7@news.povray.org>
From thread about slow iso-surfaces:
> 
> > (probably because of the function declaration problems)
> 
> No, those should be gone.

I'm also still getting the function declaration crashes. Here my test scene:
(same scene i posted as "loop bug" for beta 5)

#declare I = 0;
#while(I < 2)       

   #declare C = pigment { crackle }                       
   
   #declare CF = function { pigment { C } }
          
   #declare I = I + 1;
#end 

It crashes both for MSVC and ICL compile (beta7).

winME, P3-933, 384 MB

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

From: Christoph Hormann
Subject: Re: function re-declaration crash
Date: 31 Oct 2001 10:51:43
Message: <3BE01E0F.5186B66F@gmx.de>
Elias Pschernig wrote:
> 
> [...]
> 
> It crashes both for MSVC and ICL compile (beta7).
> 

It crashes only with the intel compile here.  

The isowood problems i have seem to be the same type.  Same applies for
the problem Jan Walzer mentioned (crackle3.pov)  

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: function re-declaration crash
Date: 31 Oct 2001 11:09:14
Message: <3be0222a@news.povray.org>
In article <3BE01E0F.5186B66F@gmx.de> , Christoph Hormann 
<chr### [at] gmxde>  wrote:

>> It crashes both for MSVC and ICL compile (beta7).
>>
>
> It crashes only with the intel compile here.

After some investigation I think I found the problem.  It had to do with an
sometimes invalid pointer.  Depending on the compiler and architecture as
well as the context the pointer could still have valid content and thus
POV-Ray would not crash at all or only crash sometimes or always.  I don't
want to say that it is fixed yet because it never crashed for me in the
first place...


    Thorsten


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Elias Pschernig
Subject: Re: function re-declaration crash
Date: 31 Oct 2001 11:09:49
Message: <3be0224d$1@news.povray.org>
> > 
> > It crashes both for MSVC and ICL compile (beta7).
> > 
> 
> It crashes only with the intel compile here.  
> 
> The isowood problems i have seem to be the same type.  Same applies for
> the problem Jan Walzer mentioned (crackle3.pov)  

Yes, you're right. I just tried it with MSVC again, and no crash. (I hadn't
found out yet yesterday that i can directly click the 2 .exes, so i was
renaming them all the time - probably I mixed them somehow)

-- 
#macro C(X,Y)cylinder{X*x<X,0,-Y/2>.1}#end#macro U(R,X,Y)intersection{torus{.9
.1}box{-1 0rotate y*R*90}translate<X,0,Y>scale 1-z*.5}#end union{U(0,0,0)U(1,0
,0)U(2,-1,-1)U(1,1,0)U(1,1.5,-3)U(1,2,0)U(3,1,0)U(2,2,0)U(0,3,0)U(3,2,.5)C(.1,
2)C(.8,1)C(.8,-1)C(1.1,1)C(1.9,-1)pigment{rgb 10}rotate x*90translate<-1,0,4>}


Post a reply to this message

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