|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
% povray input_file.pov
error code = -24
Unknown error code
In vfe/vfesession.cpp, I made a small change to print out the error code (I know I
could have used a debugger for this...):
const char *vfeSession::GetErrorString(int code) const
{
if (code == -1)
code = m_LastError;
switch (code)
{
case vfeNoError:
return "No error";
.
.
.
}
// added djconnel Jan2008
fprintf(stderr, "error code = %d\n", code);
return "Unknown error code";
}
In vfe/unix/unixconsole.cpp :
void ErrorExit(vfeSession *session)
{
fprintf(stderr, "%s\n", session->GetErrorString());
session->Shutdown();
delete session;
exit(RETURN_ERROR);
}
Pardon my c++ gross ignorance, but I'm not sure where the value of code is passed to
the GetErrorString(), although somehow it's getting an illegal value.... independent
of the source file.
--------------
Version information:
POV-Ray 3.7.0.beta.29
This is an unofficial beta-test version compiled by:
djc### [at] yahoocom
It may not be distributed without written permission.
Copyright 1991-2003 Persistence of Vision Team
Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.
Built-in features:
I/O restrictions: enabled
X Window display: enabled (using SDL)
SVGAlib display: disabled
Supported image formats: gif tga iff ppm pgm hdr png jpeg tiff
Unsupported image formats: openexr
Compilation settings:
Build architecture: x86_64-unknown-linux-gnu
Built/Optimized for: x86_64-unknown-linux-gnu (using -march=native)
Compiler vendor: gnu
Compiler version: g++ 4.3.2
Compiler flags: -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-s -O3 -ffast-math -march=native -pthread
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dan Connelly <djc### [at] yahoocom> wrote:
> % povray input_file.pov
> error code = -24
> Unknown error code
> --------------
>
> Version information:
> POV-Ray 3.7.0.beta.29
>
> This is an unofficial beta-test version compiled by:
> djc### [at] yahoocom
You did patch vfe.cpp, did you?
If you didn't, then the unknown error is no surprise since 2009-01-01, 00:00.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
clipka wrote:
> You did patch vfe.cpp, did you?
No :). I've been in southeast Asia, not following updates...
>
> If you didn't, then the unknown error is no surprise since 2009-01-01, 00:00.
>
Ahh, the famous Y(2K+9) problem :)
I deleted the offending time check.
% diff vfe.cpp*
747a748,753
> // this code may not be removed or modified unless the compilation is for
personal
> // use and the binary is not distributed to anyone else.
> xtime_get(&t, TIME_UTC);
> if (t.sec > 1230760800)
> throw POV_EXCEPTION(kCannotHandleRequestErr, "Please obtain an updated version
of this application.");
>
thanks,
Dan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dan Connelly wrote:
> > throw POV_EXCEPTION(kCannotHandleRequestErr, "Please obtain an
> updated version of this application.");
It seems to me this is an error: it throws an exception code, defined in
source/base/pov_err.h , yet enumerated values defined in vfe/vfesession.h are assumed
by vfeSession::GetErrorString(int code), which ends up getting invoked.
I'm not going to spend any time on it, though.... easy enough to delete the check.
Dan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|