|
|
Hi,
I think I found a bug in the parsing of the shell-out parameters in the ini
files. I discovered this while running the allscene.sh where the commands for
pre scene and pre frame never gets executed although I turned off the
restrictions in the config file and the post-scene command works fine.
Debugging the sources I traced the problem down to the point where the
attribute object for the command_return parameters are inserted in the
options lists. Since the command-option and the appropriate return-option
uses the same identifiers the already parsed option will be removed from the
list when the other one is parsed. So of I exchange the order of command
option and return option in the ini-file the command executes properly, but
since the return option gets overwritten during parsing of the following
command-option, the return value is not properly interpreted.
The parsing problem occurs in "optin.cpp" around line 1254 where the new
option object gets registered with the main object, since the call to
"POVMSObject_Set" removes the first option registerd with this id although it
has a different type e.g. when the command-option had been parsed a string is
in the list and an int gets registered for the return-option.
I'm using povray 3.50a for unix running on OpenStep 4.2 with gcc/g++ 2.8.1.
but that shouldn't be a problem since using shell-outs without specifying a
return-option works and all the other things also.
I hope this is really a bug and my description helps to find it.
Greetings,
Jens Heise
Post a reply to this message
|
|