POV-Ray : Newsgroups : povray.beta-test : Workaround for function problems in beta 8 without scene file modification Server Time
2 Nov 2024 11:24:56 EDT (-0400)
  Workaround for function problems in beta 8 without scene file modification (Message 1 to 10 of 20)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Thorsten Froehlich
Subject: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 08:02:04
Message: <3c10bdcc@news.povray.org>
The following is the description for the workaround when using Windows with
INI files.  For the Mac version you can either use INI files or simply add
the one line as the first function in your scene as suggested previously.

Create a scene file with one line

    #declare foo__ = function { 0 } // or any other unused name

Save the scene file under whatever name you like in a location that is
readable by the file io restrictions and a valid include directory.  Lets
say you named the file "workaround.inc".  Now open your povray.ini file and
add this line to it.

    Include_Header=workaround.inc

Note that you may only have one Include_Header per scene, so this workaround
will require you to disable any other Include_Header option you might have.
This will permanently work around all problems with functions in beta 8.
The problem will be resolved in the next beta version.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: bob h
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 12:06:52
Message: <3c10f72c$1@news.povray.org>
"Thorsten Froehlich" <tho### [at] trfde> wrote in message
news:3c10bdcc@news.povray.org...
> This will permanently work around all problems with functions in beta 8.

Unless your me, in which case it doesn't  :-(


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 13:59:56
Message: <3c1111ac@news.povray.org>
In article <3c10f72c$1@news.povray.org> , "bob h" <omn### [at] charternet> 
wrote:

> Unless your me, in which case it doesn't  :-(

Well, your scene and your problem would help...

    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: bob h
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 15:28:57
Message: <3c112689@news.povray.org>
I'm certain I have done the suggested workaround correctly, put the
Include_Header= line at beginning of povray.ini after trying at end too.  I
left the function the same and made the filename beta8fix.inc.


#declare F_p=function {
        pigment {bozo
                color_map {
                [0 color rgb 0][1 color rgb 1]
        }}
}

isosurface {
        function {y-F_p(x,y,z).gray}
        contained_by {box {-1,1}}
 texture {pigment {rgb 1}}
  rotate -45*x translate 3*z
}

light_source {<10,10,-10>,1}


The following output occured once, however the crashes are random.  I've
tried many different isosurface scenes.


Fatal Error: Floating-point exception detected in function 'F_im'. Your
function either attempted a division by zero, used a function outside its
domain or called an internal function with invalid parameters.


Returned from renderer with error status
Possible Rendering Error: libpng: No IDATs written into file
Rendering Error: Cannot write PNG file.


Returned from renderer with error status

CPU time used: kernel 0.11 seconds, user 0.02 seconds, total 0.13 seconds

[WinXP, 800MHz P3, 512MB SDRAM]


Post a reply to this message

From: Warp
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 17:22:55
Message: <3c11413e@news.povray.org>
It doesn't crash here (when I use the workaround).

-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Coridon Henshaw
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 18:24:10
Message: <Xns9170BB3381723CoridonHenshaw@204.213.191.226>
Warp <war### [at] tagpovrayorg> wrote in news:3c11413e@news.povray.org:

>   It doesn't crash here (when I use the workaround).

Crashes here if I use Include_Header in povray.ini.  Further testing 
reveals that beta 8 ignores the Include_Header directive.  Pov won't parse 
any file referenced there nor will it issue an error message if 
include_header points to a non-existant file.

Bob H's test scene works fine if I #include the workaround header.

Tests conducted on both my WinME and Win2K boxes.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 7 Dec 2001 19:02:54
Message: <3c1158ae@news.povray.org>
In article <Xns### [at] 204213191226> , 
che### [at] sympaticoca (Coridon Henshaw) wrote:

> Crashes here if I use Include_Header in povray.ini.  Further testing
> reveals that beta 8 ignores the Include_Header directive.  Pov won't parse
> any file referenced there nor will it issue an error message if
> include_header points to a non-existant file.

You have an Include_Header option in another INI file that is included.
Once you remove it, the Include_Header in povray.ini will work as pointed
out in my original post.

    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: Coridon Henshaw
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 8 Dec 2001 00:17:00
Message: <Xns91712E13ED46CoridonHenshaw@204.213.191.226>
"Thorsten Froehlich" <tho### [at] trfde> wrote in
news:3c1158ae@news.povray.org: 

> In article <Xns### [at] 204213191226> , 
> che### [at] sympaticoca (Coridon Henshaw) wrote:

>> Crashes here if I use Include_Header in povray.ini.  Further testing
>> reveals that beta 8 ignores the Include_Header directive.  Pov won't
>> parse any file referenced there nor will it issue an error message if
>> include_header points to a non-existant file.
 
> You have an Include_Header option in another INI file that is included.

Not unless the pov installer drops an INI with Include_Header.  As a habit, 
I do not use INI files nor did I even know that the include_header 
directive existed before you mentioned it the other day.  The only pov-
related INI files on my systems are those included in the pov distribution 
and those created by the rerun subsystem.

Look for yourself:

c:\>grep ?
Turbo GREP 5.5 Copyright (c) 1992, 2000 Inprise Corporation

 <text cut>

   -v-  Non-matching lines only         -i-  Ignore case
   -d-  Search subdirectories           -z-  Verbose

 <text cut>

c:\>grep -d -i include_header *.ini

File Program Files\POV-Ray for Windows v3.5\renderer\POVRAY.INI:
Include_Header=c:\temp\beta8fix.inc
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun00.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun01.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun02.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun03.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun04.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun05.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun06.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun07.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun08.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun09.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun10.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun11.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun12.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun13.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun14.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\Rerun15.Ini:
Include_Header=
File Program Files\POV-Ray for Windows v3.5\renderer\rerun\CURRENT.INI:
Include_Header=

c:\temp\beta8fix.inc is the path to the workaround file.  Note that this 
include_header reference in povray.ini didn't get transfered into 
current.ini even though the last render I executed was the isosurface bug 
test you posted earlier.


Post a reply to this message

From: bob h
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 8 Dec 2001 02:39:40
Message: <3c11c3bc@news.povray.org>
"Coridon Henshaw" <che### [at] sympaticoca> wrote in message
news:Xns### [at] 204213191226...
>
> c:\temp\beta8fix.inc is the path to the workaround file.  Note that this
> include_header reference in povray.ini didn't get transfered into
> current.ini even though the last render I executed was the isosurface bug
> test you posted earlier.

Yes, that's what I get here.  Made the search for "Include_Header" too just
before I saw yours.  That renderer\rerun\current.ini  sure seems the cause
alright.  You can remove the output path to it by editing the
ini\pvengine.ini file where it says:

[Permitted Output Paths]
1=%INSTALLDIR%\Renderer\ReRun
2=%INSTALLDIR%\Insert Menu

Change it to:

[Permitted Output Paths]
1=
;%INSTALLDIR%\Renderer\ReRun
2=%INSTALLDIR%\Insert Menu


A rerun00.ini file is created still but POV does render without crashing
now.
--
text{ttf"arial","bob h",.1,0pigment{rgb 9}translate<-1,-.2,3>}


Post a reply to this message

From: bob h
Subject: Re: Workaround for function problems in beta 8 without scene file modification
Date: 8 Dec 2001 03:06:34
Message: <3c11ca0a$1@news.povray.org>
"bob h" <omn### [at] charternet> wrote in message
news:3c11c3bc@news.povray.org...
>
> [Permitted Output Paths]
> 1=
> ;%INSTALLDIR%\Renderer\ReRun
> 2=%INSTALLDIR%\Insert Menu
>
>
> A rerun00.ini file is created still but POV does render without crashing
> now.

I spoke too soon, the current.ini returned after closing POV-Ray and going
back to it shortly afterward.  Checking pvengine.ini shows that did not
change though so I don't know how I kept the file from returning only
momentarily before.
So... has not stopped from crashing again.  Maybe someone has ideas on
another temporary fix.


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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