POV-Ray : Newsgroups : povray.general : Unhandled Exceptions... Server Time
19 May 2024 22:14:42 EDT (-0400)
  Unhandled Exceptions... (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Tim Nikias
Subject: Unhandled Exceptions...
Date: 16 Sep 2004 06:55:43
Message: <4149712f$1@news.povray.org>
I've recently run into some troubles with POV-Ray 3.6.1 for Windows on
Win2000, and I'm quiet confused as POV-Ray 3.5 didn't have this problem.

I know that programs don't like it when you try to use parameters or
variables that haven't been declared before. But in 3.5 days, POV-Ray would
just mark the line and tell me: "Hey, you stupid fool, you haven't
initialized this *thingy* here, how should I know what it's supposed to be,
float, vector, what?"

Now, POV-Ray crashes with an unhandled exception and I have to force-close
it using the taskbar as POV-Ray doesn't budge anymore. It depends on a few
seemingly random factors, like if I used some macros before or loaded
Include-Files, and I'm trying to properly pinpoint it. Anyways, anyone
notice this odd behaviour, or is it just me?

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Christoph Hormann
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 07:45:02
Message: <cibu3l$5gc$1@chho.imagico.de>
Tim Nikias wrote:
> 
> Now, POV-Ray crashes with an unhandled exception and I have to force-close
> it using the taskbar as POV-Ray doesn't budge anymore. It depends on a few
> seemingly random factors, like if I used some macros before or loaded
> Include-Files, and I'm trying to properly pinpoint it. Anyways, anyone
> notice this odd behaviour, or is it just me?

I suppose it is just you (and the fact that this has not been a problem 
for others despite POV-Ray 3.6 being available for long supports this).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 06 Jul. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Tim Nikias
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 08:29:38
Message: <41498732@news.povray.org>
> I suppose it is just you (and the fact that this has not been a problem
> for others despite POV-Ray 3.6 being available for long supports this).

Hm. Strange though, because sometimes it works, and sometimes it doesn't.
Still strange though is that when it doesn't, the problem is reproducable to
a certain extent. I'll see how much I can narrow it down to check if others
just haven't run into this sort of problem.

Ah well, I always seem to have some special cases evolving around me. :-)

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: =Bob=
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 09:21:49
Message: <4149936d@news.povray.org>
Someone else posted a similar experience (Mael)
in message news:413ad105$1@news.povray.org...
with the following:

File test.inc :

#macro sph()
  sphere { 0, 1 }
#end

File test.pov :

#include "test.inc"
sph()
#if (true
#end

============================
It's missing a closing paren after "true" and
it throws an exception when run. Does it on
3.6 under Win98 and 3.6.1 under Win2K.
=Bob=


Post a reply to this message

From: Tim Nikias
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 09:55:07
Message: <41499b3b$1@news.povray.org>
Yup, I get an exception there as well. Strange thing is, without the
included file and use of macro, it works fine and tells me, that the closing
bracket is missing. So it seems like using an un-initialized variable
triggers that problem as well. Hm. Anyone with insight in regards to the
POV-source have any idea where this comes from?

And thanks =Bob=, for pointing that out.

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: =Bob=
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 13:36:53
Message: <4149cf35$1@news.povray.org>
"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote in message
news:41499b3b$1@news.povray.org...
: Yup, I get an exception there as well. Strange thing is, without the
: included file and use of macro, it works fine and tells me, that the closing
: bracket is missing. So it seems like using an un-initialized variable
: triggers that problem as well. Hm. Anyone with insight in regards to the
: POV-source have any idea where this comes from?

I tried removing the call to the sph() macro, and Pov recovers
and displays the proper error.

If I change 'true' to something undeclared, like 'ntrue' and
add the appropriate closing paren, Pov recovers as long as
there is no call to the macro. If I put the call back in, Pov
throws an exception.

If I move the call to the macro sph() to below the #if (ntrue)
and #end, Pov recovers and displays the proper error.

If I change the #if to #while, Pov throws. If I write:

#include "test.inc"

sph()

#ifdef
#end

Pov throws an exception.
So it always seems to throw when the order is:

#include
call macro
# style script error

If I remove the # style error and place an object like
a box there using an undeclared variable, Pov recovers
and displays the proper error.

=Bob=


Post a reply to this message

From: Tim Nikias
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 18:01:11
Message: <414a0d27@news.povray.org>
Hm. With all this detailed information, shouldn't it be possible to submit a
bug report? Perhaps we'd need to rally a few more Windows Users to check the
bug, cause if it's just us two, then there isn't much point in having the
POV-Team work on such a small-scale issue. After all, now we know the source
of the problem and know what to look for when we get that exception. If
there are more people that can confirm this, it would be worth a report
though.


-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: =Bob=
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 19:12:19
Message: <414a1dd3$1@news.povray.org>
"Tim Nikias" <JUSTTHELOWERCASE:timISNOTnikias(at)gmx.netWARE> wrote in message
news:414a0d27@news.povray.org...
: Hm. With all this detailed information, shouldn't it be possible to submit a
: bug report? Perhaps we'd need to rally a few more Windows Users to check the
: bug, cause if it's just us two, then there isn't much point in having the
: POV-Team work on such a small-scale issue. After all, now we know the source
: of the problem and know what to look for when we get that exception. If
: there are more people that can confirm this, it would be worth a report
: though.

Four people have confirmed the error so far.

I think it's a bug now. I downloaded the source and
made a debug version. I can make a work-a-round
to eliminate the problem for a missing parameter in
an "ifdef" or an "ifndef" and it works fine. It seems to
be in the source file, tokenize.cpp in the function
Get_Token. That doesn't mean that really is the problem,
just that it's where I traced it to and I don't have time to
look any deeper.

No flames from the Pov Programmers please...
Just trying to help...
=Bob=


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 19:43:28
Message: <opsef1jpgccs6ysw@frogeater.bredbandsbolaget.se>
On Thu, 16 Sep 2004 16:13:06 -0700, =Bob=  
<robertUNDERSCOREdobbinsATmailDOTtdsDOTnet> wrote:
> Four people have confirmed the error so far.


You can add me to that list.



> I think it's a bug now. I downloaded the source and
> made a debug version. I can make a work-a-round
> to eliminate the problem for a missing parameter in
> an "ifdef" or an "ifndef" and it works fine. It seems to
> be in the source file, tokenize.cpp in the function
> Get_Token. That doesn't mean that really is the problem,
> just that it's where I traced it to and I don't have time to
> look any deeper.


For me, the exception occurs in the function Terminate_Tokenizer.

I was able to "fix" it, but I'm not very familiar with the code that  
handles macro calls, so I can't at this point be sure that I didn't break  
something else.
For what it's worth, here's what I did:

In the file tokenize.cpp:
  In the function Return_From_Macro:
    After the line:
     Input_File->In_File = Cond_Stack[CS_Index].Macro_File ;
    Add the line:
     Cond_Stack[CS_Index].Macro_Same_Flag = true;


Perhaps someone who knows more about the code than I do could tell us if  
that is a good fix or not.



-- 
FE


Post a reply to this message

From: =Bob=
Subject: Re: Unhandled Exceptions...
Date: 16 Sep 2004 19:58:13
Message: <414a2895$1@news.povray.org>
"Fredrik Eriksson" <noo### [at] nowherecom> wrote in message
news:ops### [at] frogeaterbredbandsbolagetse...
: On Thu, 16 Sep 2004 16:13:06 -0700, =Bob=
: <robertUNDERSCOREdobbinsATmailDOTtdsDOTnet> wrote:
: > Four people have confirmed the error so far.
:
: You can add me to that list.

Five!

: For me, the exception occurs in the function Terminate_Tokenizer.
:
: I was able to "fix" it, but I'm not very familiar with the code that
: handles macro calls, so I can't at this point be sure that I didn't break
: something else.
: For what it's worth, here's what I did:

I tried your fix, but it doesn't deal with the missing parameter
in an ifdef or ifndef for me. I'll look further tomorrow. Thanks
for posting this.

Note to Pov Programmers: We really appreciate all your
efforts. We appreciate you so much that we will try to
help all we can. Thanks for such a great piece of software!
=Bob=


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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