POV-Ray : Newsgroups : povray.bugreports : Povray 3.7 RC1: error when starting PovRay from another application the first time Server Time
21 Nov 2024 18:56:19 EST (-0500)
  Povray 3.7 RC1: error when starting PovRay from another application the first time (Message 1 to 3 of 3)  
From: m steiger
Subject: Povray 3.7 RC1: error when starting PovRay from another application the first time
Date: 3 Jan 2011 10:33:55
Message: <4d21ec63$1@news.povray.org>
Hi

I am starting PovRay from another application with following command:

%povray% /EDIT Test1.pov /RENDER Test1.pov
where %povray% is
    C:\Programme\POV_Ray\POV-Ray 3.7\bin\pvengine.exe
or
    C:\Programme\POV_Ray\POV-Ray 3.7\bin\pvengine-sse2.exe

 >>> case 1: If PovRay is NOT running, it will be started and following 
error message will be displayed:
----------------------------------------------------
IO Restrictions prohibit write access to 'Test1.png'
Failed to start render: Cannot open file.
----------------------------------------------------
But 'Test1.png' doesn't exist - it's the file PovRay should create!!!

 >>> case 2: If PovRay is already running, it will display 'Test1.pov' 
and start rendering as expected.

I was testing the same situation with PovRay 3.62.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PovRay 3.62 does not show an error messages!
It works perfect in both cases!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Here are my preferences I set before ...
- Menu: Options / * Keep single instance
- set '+FN' to command line option field to save PNG pictures

And here's the test file I use
-----------------------------------
// File: Test1.pov
camera {location -3*z}
light_source {<9,9,-9> 1 parallel}
sphere {0 1 pigment {rgb<1,1,0.5>}}
-----------------------------------


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Povray 3.7 RC1: error when starting PovRay from another applicationthe first time
Date: 3 Jan 2011 10:54:47
Message: <4d21f147@news.povray.org>
On 03.01.11 16:36, m.steiger wrote:
> Hi
>
> I am starting PovRay from another application with following command:
>
> %povray% /EDIT Test1.pov /RENDER Test1.pov
> where %povray% is
> C:\Programme\POV_Ray\POV-Ray 3.7\bin\pvengine.exe
> or
> C:\Programme\POV_Ray\POV-Ray 3.7\bin\pvengine-sse2.exe
>
>  >>> case 1: If PovRay is NOT running, it will be started and following
> error message will be displayed:
> ----------------------------------------------------
> IO Restrictions prohibit write access to 'Test1.png'
> Failed to start render: Cannot open file.
> ----------------------------------------------------
> But 'Test1.png' doesn't exist - it's the file PovRay should create!!!

Yes, and that is exactly what the error message says: It cannot _write_ that 
file.

>  >>> case 2: If PovRay is already running, it will display 'Test1.pov' and
> start rendering as expected.
>
> I was testing the same situation with PovRay 3.62.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> PovRay 3.62 does not show an error messages!
> It works perfect in both cases!!!
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Well, does it have IO restrictions enabled?

	Thorsten


Post a reply to this message

From: m steiger
Subject: Re: Povray 3.7 RC1: error when starting PovRay from another applicationthefirst time
Date: 3 Jan 2011 13:53:17
Message: <4d221b1d$1@news.povray.org>
Am 03.01.2011 16:54, schrieb Thorsten Froehlich:
> On 03.01.11 16:36, m.steiger wrote:
>> Hi
>>
>> I am starting PovRay from another application with following command:
>>
>> %povray% /EDIT Test1.pov /RENDER Test1.pov
>> where %povray% is
>> C:\Programme\POV_Ray\POV-Ray 3.7\bin\pvengine.exe
>> or
>> C:\Programme\POV_Ray\POV-Ray 3.7\bin\pvengine-sse2.exe
>>
>> >>> case 1: If PovRay is NOT running, it will be started and following
>> error message will be displayed:
>> ----------------------------------------------------
>> IO Restrictions prohibit write access to 'Test1.png'
>> Failed to start render: Cannot open file.
>> ----------------------------------------------------
>> But 'Test1.png' doesn't exist - it's the file PovRay should create!!!
>
> Yes, and that is exactly what the error message says: It cannot _write_
> that file.
>
>> >>> case 2: If PovRay is already running, it will display 'Test1.pov' and
>> start rendering as expected.
>>
>> I was testing the same situation with PovRay 3.62.
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> PovRay 3.62 does not show an error messages!
>> It works perfect in both cases!!!
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Well, does it have IO restrictions enabled?
>
> Thorsten

Do you mean 'Options / Script I/O-Restrictions' ?
Its' set to   * Allow Read, Restrict Write

If I set it to   * No Restrictions    I'll get this errror message:
----------------------------------------------------------------------
Possible Parse Error: Cannot find file 'Test1.pov', even after trying
  to append file type extension.
----------------------------------------------------------------------
Parse Error: Cannot open input file.
Render failed
----------------------------------------------------------------------

And again if PovRay is still running it's working fine without any error 
message.


That all is confusing me...
Shouldn't 'Script I/O-Restrictions' only belong to script handling ?
But the 1st error message belongs to the picture file handling.


Post a reply to this message

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