Hello PyMOL and Java users,

We have found a solution to the problem we reported last week.

Bug:
Pymol occasionally  blocked when started with java.Runtime.exec.


Description:
The error was in our java-application since it is quite difficult to use the 
Process class properly.
The error was hard to find because it only occured in some java-versions.       

When processes that write to stdout are launched with
Runtime.exec(...) it is important to read the output into a
BufferedInputStream.
Otherwise the process is stopped after some amount of produced output
because of pipe_wait. In this case listing processes with ps shows an S 
(stopped) instead of R (running).

In our application we used InputStream but should have 
BufferedInputStream.

Yours,

Christoph Gille & Kristian Rother





Reply via email to