POV-Ray : Newsgroups : povray.general : POV-Ray hangs when using invalid numbers Server Time
29 Nov 2024 21:49:24 EST (-0500)
  POV-Ray hangs when using invalid numbers (Message 1 to 6 of 6)  
From: Florian Brucker
Subject: POV-Ray hangs when using invalid numbers
Date: 18 May 2005 13:59:48
Message: <428b8294$1@news.povray.org>
I got very strange things going on when rendering the following scene:

	torus { 1, 1 translate y*(1/0)/(1/0) }

Some versions of POV-Ray definitely hang over here (even with +w1 +h1).
Here's what I noticed:

Linux:
3.6.1 official binary: 			hangs
3.6.1 self-compiled: 			does not hang
3.5 self-compiled: 			does not hang
MegaPOV 1.1 compiled by Chris Hormann: 	hangs

Windows:
3.6.1 official binary:			does not hang
3.7.0.beta.4.icl8.win32:		does not hang

Linux tests were done by me on a Gentoo Linux, Kernel 2.6.11, AMD Athlon
XP 2600+, 1 GB RAM.
Windows tests were done by Lance Birch on a Win2000 Pro, Dual Athlon MPs.

This is either a issue with the official Linux binaries or with my setup
over here. I'd therefore be glad if anyone using Linux could render the
scene himself and post the results.

BTW: I do no that this translation does not make sense :) But I figured
if POV-Ray allows me to use inf and nan values, it should not hang on
them...


Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Nicolas Calimet
Subject: Re: POV-Ray hangs when using invalid numbers
Date: 18 May 2005 14:35:26
Message: <428b8aee@news.povray.org>
> 3.6.1 official binary: 			hangs

	Confirmed.

> 3.6.1 self-compiled: 			does not hang
> Linux tests were done by me on a Gentoo Linux, Kernel 2.6.11

	Which compiler and version are you using?  I seem to have such a
problem with various compiles produced with gcc-3.4.x but _not_ with older
versions (namely 2.95.3 and 3.3.4), gcc-4.0.0, or icc 8.x.  FYI the official
povray binary was compiled with gcc-3.4.1, which seems faulty here.

	- NC


Post a reply to this message

From: Florian Brucker
Subject: Re: POV-Ray hangs when using invalid numbers
Date: 18 May 2005 14:42:32
Message: <428b8c98$1@news.povray.org>
>> 3.6.1 official binary: 			hangs
> 
> 	Confirmed.

OK.

> Which compiler and version are you using?

$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/specs
Configured with:
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3.5-20050130
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5-20050130/info
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3
--host=i686-pc-linux-gnu --disable-altivec --enable-nls
--without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libgcj --enable-languages=c,c++,f77 --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.3.5-20050130 (Gentoo Linux 3.3.5.20050130-r1,
ssp-3.3.5.20050130-1, pie-8.7.7.1)


HTH,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

From: Alain
Subject: Re: POV-Ray hangs when using invalid numbers
Date: 18 May 2005 18:06:58
Message: <428bbc82$1@news.povray.org>
Florian Brucker nous apporta ses lumieres en ce 2005-05-18 20:02:
> I got very strange things going on when rendering the following scene:
> 
> 	torus { 1, 1 translate y*(1/0)/(1/0) }
> 
> Some versions of POV-Ray definitely hang over here (even with +w1 +h1).
> Here's what I noticed:
> 
> Linux:
> 3.6.1 official binary: 			hangs
> 3.6.1 self-compiled: 			does not hang
> 3.5 self-compiled: 			does not hang
> MegaPOV 1.1 compiled by Chris Hormann: 	hangs
> 
> Windows:
> 3.6.1 official binary:			does not hang
> 3.7.0.beta.4.icl8.win32:		does not hang
> 
> Linux tests were done by me on a Gentoo Linux, Kernel 2.6.11, AMD Athlon
> XP 2600+, 1 GB RAM.
> Windows tests were done by Lance Birch on a Win2000 Pro, Dual Athlon MPs.
> 
> This is either a issue with the official Linux binaries or with my setup
> over here. I'd therefore be glad if anyone using Linux could render the
> scene himself and post the results.
> 
> BTW: I do no that this translation does not make sense :) But I figured
> if POV-Ray allows me to use inf and nan values, it should not hang on
> them...
> 
> 
> Florian
The strangest thing is that there is no error: 1/0 is NOT a real number and
(1/0)/(1/0) is not defined.
Renders OK here on windows official POV-Ray 3.6.1a

Alain


Post a reply to this message

From: Jellby
Subject: Re: POV-Ray hangs when using invalid numbers
Date: 19 May 2005 08:40:10
Message: <qlisl2-i0c.ln1@badulaque.unex.es>
Entre otras cosas, Florian Brucker tuvo a bien escribir:

> I got very strange things going on when rendering the following scene:
> 
> torus { 1, 1 translate y*(1/0)/(1/0) }
> 
> Some versions of POV-Ray definitely hang over here (even with +w1 +h1).
> Here's what I noticed:
> 
> Linux:
> 3.6.1 official binary:                        hangs
> 3.6.1 self-compiled:                  does not hang
> 3.5 self-compiled:                    does not hang
> MegaPOV 1.1 compiled by Chris Hormann:        hangs

It seems to hang here (self-compiled, Mandriva 2005):

$ gcc -v
Reading specs from /usr/lib/gcc/i586-mandrake-linux-gnu/3.4.3/specs
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
--with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix --disable-checking
--enable-long-long --enable-__cxa_atexit --enable-clocale=gnu
--disable-libunwind-exceptions --enable-languages=c,c++,ada,f77,objc,java
--host=i586-mandrake-linux-gnu --with-system-zlib
Thread model: posix
gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)

-- 
light_source{9+9*x,1}camera{orthographic look_at(1-y)/4angle 30location
9/4-z*4}light_source{-9*z,1}union{box{.9-z.1+x clipped_by{plane{2+y-4*x
0}}}box{z-y-.1.1+z}box{-.1.1+x}box{.1z-.1}pigment{rgb<.8.2,1>}}//Jellby


Post a reply to this message

From: Nicolas Calimet
Subject: Re: POV-Ray hangs when using invalid numbers
Date: 19 May 2005 09:09:50
Message: <428c901e$1@news.povray.org>
> It seems to hang here (self-compiled, Mandriva 2005):
> gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)

	Yes, as I said it seems to occur when povray is compiled with
the 3.4 gcc series, and only this one as far as I tested.  It has to
do with the optimizer, which probably emits wrong code at some point.
I'll see if I can file a bug report in case nothing similar exists in
the gcc bugzilla database.

	- NC


Post a reply to this message

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