POV-Ray : Newsgroups : povray.general : Possible Parse Error: Operation Timed Out Server Time
25 Nov 2024 06:53:07 EST (-0500)
  Possible Parse Error: Operation Timed Out (Message 1 to 10 of 10)  
From: Sven Littkowski
Subject: Possible Parse Error: Operation Timed Out
Date: 21 Jan 2016 00:51:00
Message: <56a071c4$1@news.povray.org>
"Possible Parse Error: Operation Timed Out"

What are the possible causes for this Time Out problem? I get it quite
often, maybe in 40% of all render attempts.


Post a reply to this message

From: clipka
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 21 Jan 2016 07:45:01
Message: <web.56a0d1e9292a59c2ad6fa18f0@news.povray.org>
Sven Littkowski <jam### [at] yahoocom> wrote:
> "Possible Parse Error: Operation Timed Out"
>
> What are the possible causes for this Time Out problem? I get it quite
> often, maybe in 40% of all render attempts.

Sounds like the parser wants some information from the front-end (a likely
candidate would be figuring out the actual name for a file specified in the
scene) but the front-end doesn't react fast enough for the parser's liking. (The
two run in separate threads.)

Slow system and huge scene, maybe?


Post a reply to this message

From: Sven Littkowski
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 22 Jan 2016 14:52:29
Message: <56a2887d@news.povray.org>
Yes. Both is correct.

This situation gives me the following thought:
A new version of POV-Ray should have more tolerance to slower systems
(auto-configuration of expectation time between these two threads?), or
a configuration possibility to set expectation time by hand. Just a
suggestion.

But what can I do right now about this problem?

---------------------------

On 21.01.2016 07:41, clipka wrote:
> Slow system and huge scene, maybe?


Post a reply to this message

From: clipka
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 22 Jan 2016 18:44:02
Message: <56a2bec2$1@news.povray.org>
Am 22.01.2016 um 20:52 schrieb Sven Littkowski:
> Yes. Both is correct.
> 
> This situation gives me the following thought:
> A new version of POV-Ray should have more tolerance to slower systems
> (auto-configuration of expectation time between these two threads?), or
> a configuration possibility to set expectation time by hand. Just a
> suggestion.

Currently, a timeout of 10 seconds is used, which doesn't seem /that/
unreasonable.

> But what can I do right now about this problem?

Buy a faster computer? ;)

That, or make another change to your own personal build of POV-Ray:

At the end of source/base/build.h (but before the last "#endif"), insert:

    #define kDefaultTimeout 60

to increase the timeout from 10 seconds to 1 minute. Or insert any value
you deem fitting.


Post a reply to this message

From: Sven Littkowski
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 22 Jan 2016 21:21:01
Message: <56a2e38d@news.povray.org>
10 seconds? Yes, that seems long enough. I would think the same. But
still, it is not enough - at least not in my situation. :-(


Post a reply to this message

From: Mr
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 11 Jun 2017 15:45:00
Message: <web.593d9cc7292a59c261ea16670@news.povray.org>
Sven Littkowski <jam### [at] yahoocom> wrote:
> "Possible Parse Error: Operation Timed Out"
>
> What are the possible causes for this Time Out problem? I get it quite
> often, maybe in 40% of all render attempts.

I also met this in a very simple scene in which texture paths had mixed
backslashes and forward slashes (it can be invisible such as
"//dir1/dir2/file.png" which I believe will get converted to
"\dir1/dir2/file.png" on windows...)
The new handling of (forward/back/)slashes is more rigid than before, what did
we gain from it?

Thanks Stephen for the specular test scene ;-)


Post a reply to this message

From: Stephen
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 11 Jun 2017 15:55:16
Message: <593da024$1@news.povray.org>
On 6/11/2017 8:40 PM, Mr wrote:
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> "Possible Parse Error: Operation Timed Out"
>>
>> What are the possible causes for this Time Out problem? I get it quite
>> often, maybe in 40% of all render attempts.
>
> I also met this in a very simple scene in which texture paths had mixed
> backslashes and forward slashes (it can be invisible such as
> "//dir1/dir2/file.png" which I believe will get converted to
> "\dir1/dir2/file.png" on windows...)
> The new handling of (forward/back/)slashes is more rigid than before, what did
> we gain from it?
>
> Thanks Stephen for the specular test scene ;-)
>
>

Who said that and when? ;)

No problem.

-- 

Regards
     Stephen


Post a reply to this message

From: clipka
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 11 Jun 2017 16:44:14
Message: <593dab9e$1@news.povray.org>
Am 11.06.2017 um 21:40 schrieb Mr:
> Sven Littkowski <jam### [at] yahoocom> wrote:
>> "Possible Parse Error: Operation Timed Out"
>>
>> What are the possible causes for this Time Out problem? I get it quite
>> often, maybe in 40% of all render attempts.
> 
> I also met this in a very simple scene in which texture paths had mixed
> backslashes and forward slashes (it can be invisible such as
> "//dir1/dir2/file.png" which I believe will get converted to
> "\dir1/dir2/file.png" on windows...)
> The new handling of (forward/back/)slashes is more rigid than before, what did
> we gain from it?

What we gained is a more consistent treatment of backslashes in strings.

Previously,

    #include "subdir\test.inc"

did something different than

    #declare FooBar = "subdir\test.inc";
    #include FooBar

with the former effectively resolving to `#include "subdir/test.inc"`,
and the latter effectively resolving to `#include "subdir<TAB>est.inc"`,
where <TAB> would be the tab character (ASCII character hex 09).

Essentially, the former behaviour applied to any string literal
appearing where a filename was expected, while the latter applied to
string literals in any other context.

This was never well documented for the Windows version, and entirely
undocumented for the Unix version, where this behaviour made no sense at
all.

Now both constructs effectively resolve to `#include
"subdir<TAB>est.inc"` -- which is probably not what you want in that
particular context, but it's fully consistent and matches the documentation.

It also simplifies the parser a little bit.


Since forward slashes work as file separators on all platforms, it is
strongly recommended to use those instead of backward slashes.


BTW, "//dir1/dir2/file.png" is _not_ converted to "\dir1/dir2/file.png"
on windows. It's the backward slashes that are converted (two backward
slashes, i.e. "\\", being interpreted as a literal single backward
slash, i.e. "\"), so "\\dir1/dir2/file.png" _would_ be converted to
"\dir1/dir2/file.png"

In POV-Ray for Windows, both forward and backward slashes are ultimately
interpreted as path separators (if the string is used in a filename
context). In POV-Ray for Unix, only forward slashes are interpreted that
way.


Post a reply to this message

From: dick balaska
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 11 Jun 2017 17:49:48
Message: <593dbafc$1@news.povray.org>
Am 2017-06-11 16:44, also sprach clipka:

> BTW, "//dir1/dir2/file.png" is _not_ converted to "\dir1/dir2/file.png"
> on windows. It's the backward slashes that are converted (two backward
> slashes, i.e. "\\", being interpreted as a literal single backward
> slash, i.e. "\"), so "\\dir1/dir2/file.png" _would_ be converted to
> "\dir1/dir2/file.png"

It is timing out trying to find dir2/file.png on machine dir1.
//dir1 is a machine name (UNC path?)

-- 
dik


Post a reply to this message

From: clipka
Subject: Re: Possible Parse Error: Operation Timed Out
Date: 12 Jun 2017 13:11:19
Message: <593ecb37$1@news.povray.org>
Am 11.06.2017 um 23:49 schrieb dick balaska:
> Am 2017-06-11 16:44, also sprach clipka:
> 
>> BTW, "//dir1/dir2/file.png" is _not_ converted to "\dir1/dir2/file.png"
>> on windows. It's the backward slashes that are converted (two backward
>> slashes, i.e. "\\", being interpreted as a literal single backward
>> slash, i.e. "\"), so "\\dir1/dir2/file.png" _would_ be converted to
>> "\dir1/dir2/file.png"
> 
> It is timing out trying to find dir2/file.png on machine dir1.
> //dir1 is a machine name (UNC path?)

Sounds plausible.

File names `//Foo/Bar` or `\\Foo/Bar` (string literal "\\\\Foo/Bar")
would indeed be interpreted as "Bar" on machine "Foo".

And I wouldn't be surprised if the operating system gave you quite a
long timeout when attempting to access a file over the network, possibly
even longer than the default 10s POV-Ray is willing to wait.


Post a reply to this message

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