HDRI post from iabel@iebele.nl requires approval

Let's keep this on radiance-general.



Begin forwarded message:

From: iebele abel <iabel@iebele.nl>
Date: January 31, 2014 12:03:14 PM PST
To: High Dynamic Range Imaging <hdri@radiance-online.org>
Subject: RE: [HDRI] SMP file busy problem on iterative rendering in Linux

Dear Chris,

I had something similar, using a similar script. That situation - a lock on the pp file - was solved after all octrees were compiled again, although rvu and rpict did not complain. Somehow rpiece locked the pp file, however. Strange... Good luck,


---- Chris Kallie schreef ----

Dear Radiance Users,

I've assembled a simple script that iterates through a folder containing
octrees, and renders using SMP. On Mac, everything works as expected.
However, on Linux, I get errors suggesting both the syncfile and ppfile
are still locked by the OS. I've attempted two solutions, including
adding 'sleep 5' after pfilt (first attempt, shown below), and then by
externalizing the while loop, with an ending 'exit 0' (second attempt,
not shown here), but neither approach fixed the problem.

Here is one version of code which works on Mac but not in Linux:

for file in obj/*.oct
   rm -f syncfile argsfile ppfile
   echo 1 64 > syncfile
   cat syncfile
   echo -F syncfile @arguments -vf room.vf -o $filename.unf
$filename.oct > argsfile
   cat argsfile
   while [ "$NCPU" -gt 0 ]
       echo "running proc $NCPU"
       rpiece -v -PP ppfile @argsfile &
       sleep 5
       NCPU=`expr $NCPU - 1`
   echo "Filtering File - $filename.unf"
   pfilt -1 -e -2 -m .25 -r .6 -x /3 -y /3 $filename.unf > $filename.hdr
   sleep 5
   rm -f syncfile argsfile ppfile

Interestingly, I do not get an error saying "cannot remove 'argsfile' ".
After the first image is successfully rendered, I get the following
errors at each successive iteration, indicating the rm only works once
(line 4) in the first iteration:

rm: cannot remove 'syncfile': Text file busy
rm: cannot remove 'ppfile': Text file busy
rm: cannot remove 'syncfile': Text file busy
rm: cannot remove 'ppfile': Text file busy

Since the error isn't fatal, the machine keeps rendering, and ends up
rendering the same (first) image over and over. Has anyone run into this
problem and found a solution? Any advice would be greatly appreciated.


HDRI mailing list

From: hdri-request@radiance-online.org
Date: January 31, 2014 12:34:20 PM PST
Subject: confirm 20969091e7e2e4da0d2a03094f2222341b41133d

If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.