POV-Ray : Newsgroups : povray.beta-test : Doubled errors Server Time: 28 Aug 2014 05:05:40 GMT
  Doubled errors (Message 1 to 8 of 8)  
From: Timo Poikola
Subject: Doubled errors
Date: 18 Jul 2011 09:15:01
Message: <web.4e23f93edfdc922df1a674c50@news.povray.org>
Is there any reason, why parse errors are seen twice:

File 'example.pov' line 10: Parse Error: No matching } in 'pigment', { found
 instead
File 'example.pov' line 10: Parse Error: No matching } in 'pigment', { found
 instead
Fatal error in parser: Cannot parse input.
Render failed

In this case, there is only one '{' in line 10.

Povray is 3.7 RC3.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Doubled errors
Date: 18 Jul 2011 14:59:13
Message: <4e244a41$1@news.povray.org>
On 18.07.11 11:13, Timo Poikola wrote:
> Is there any reason, why parse errors are seen twice:
>
> File 'example.pov' line 10: Parse Error: No matching } in 'pigment', { found
>   instead
> File 'example.pov' line 10: Parse Error: No matching } in 'pigment', { found
>   instead
> Fatal error in parser: Cannot parse input.
> Render failed
>
> In this case, there is only one '{' in line 10.
>
> Povray is 3.7 RC3.

http://www.catb.org/~esr/faqs/smart-questions.html


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Doubled errors
Date: 18 Jul 2011 15:26:48
Message: <4e2450b8$1@news.povray.org>
Timo Poikola wrote:

> Is there any reason, why parse errors are seen twice:

As Thorsten probably intended to convey, answering this
question requires to see a small code sample that reproduces
the effect.


Post a reply to this message

From: Timo Poikola
Subject: Re: Doubled errors
Date: 18 Jul 2011 20:05:00
Message: <web.4e2490c7f2a3198ff1a674c50@news.povray.org>
Christian Froeschlin <chrfr [at] chrfrde> wrote:
> Timo Poikola wrote:
>
> > Is there any reason, why parse errors are seen twice:
>
> As Thorsten probably intended to convey, answering this
> question requires to see a small code sample that reproduces
> the effect.

Every now and then, if there is any problem which produce a "parse error",
exactly same error message is printed 2 times. This effect is totally
independent on actual reason of error.

2 examples:
----
File 'a.pov' line 2: Parse Error: Expected 'numeric expression', } found instead
File 'a.pov' line 2: Parse Error: Expected 'numeric expression', } found instead
Fatal error in parser: Cannot parse input.
Render failed

a.pov:
global_settings {assumed_gamma 1.5}
box {<-0.5, -0.5, -0.5>, }
light_source {<4, 5, -5>, rgb <1, 1, 1>}
camera {location <5, 5, -5> look_at <0, 0, 0>}
----
File 'b.pov' line 2: Parse Error: Expected 'object', undeclared identifier 'foo'
 found instead
File 'b.pov' line 2: Parse Error: Expected 'object', undeclared identifier 'foo'
 found instead
Fatal error in parser: Cannot parse input.
Render failed

b.pov:
global_settings {assumed_gamma 1.5}
object { foo }
light_source {<4, 5, -5>, rgb <1, 1, 1>}
camera {location <5, 5, -5> look_at <0, 0, 0>}
----

Povray: 3.7 RC3
Host computer: 64 bit Debian sid, AMD Phenom X4 9950, 8GB ram


Post a reply to this message

From: Jim Holsenback
Subject: Re: Doubled errors
Date: 19 Jul 2011 13:46:37
Message: <4e258abd$1@news.povray.org>
On 07/18/2011 05:00 PM, Timo Poikola wrote:
> 2 examples:
> ----
> File 'a.pov' line 2: Parse Error: Expected 'numeric expression', } found instead
> File 'a.pov' line 2: Parse Error: Expected 'numeric expression', } found instead
> Fatal error in parser: Cannot parse input.
> Render failed
> ----
> File 'b.pov' line 2: Parse Error: Expected 'object', undeclared identifier 'foo'
>   found instead
> File 'b.pov' line 2: Parse Error: Expected 'object', undeclared identifier 'foo'
>   found instead
> Fatal error in parser: Cannot parse input.
> Render failed

yep ... confirmed both these items

> Povray: 3.7 RC3
> Host computer: 64 bit Debian sid, AMD Phenom X4 9950, 8GB ram
>
>

32 bit OpenSuse ... up to date developers copy


Post a reply to this message

From: Jim Holsenback
Subject: Re: Doubled errors
Date: 19 Jul 2011 15:22:00
Message: <4e25a118$1@news.povray.org>
On 07/19/2011 10:46 AM, Jim Holsenback wrote:
> yep ... confirmed both these items

honestly never noticed before but (thud) it's /not/ just picking on the 
cases mentioned by the original poster ... try specifying scale like this:

<scale 1,0.5,1>


Post a reply to this message

From: Christian Froeschlin
Subject: Re: Doubled errors
Date: 19 Jul 2011 22:40:56
Message: <4e2607f8@news.povray.org>
Jim Holsenback wrote:

> honestly never noticed before but (thud) it's /not/ just picking on the 
> cases mentioned by the original poster ... try specifying scale like this:

Ok, I also see it on Window version. Never look at errors there
because they appears in the status bar anyway - and only once ;)


Post a reply to this message

From: Alain
Subject: Re: Doubled errors
Date: 20 Jul 2011 19:30:17
Message: <4e272cc9@news.povray.org>
Le 2011/07/19 18:40, Christian Froeschlin a écrit :
> Jim Holsenback wrote:
>
>> honestly never noticed before but (thud) it's /not/ just picking on
>> the cases mentioned by the original poster ... try specifying scale
>> like this:
>
> Ok, I also see it on Window version. Never look at errors there
> because they appears in the status bar anyway - and only once ;)

They probably appears twice, but only one is ever displayed, so you 
can't notice.


Post a reply to this message

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