External commands sometimes hang in Windows
-------------------------------------------
Key: NXP-7319
URL: https://jira.nuxeo.com/browse/NXP-7319
Project: Nuxeo Enterprise Platform
Issue Type: Bug
Components: Transforms / Preview
Affects Versions: 5.4.3-SNAPSHOT
Environment: Windows (XP, Vista, 7, 2008R2)
Reporter: Mathieu Guillaume
Assignee: Julien Carsique
Priority: Major
External command executions sometimes don't return.
This can be seen in unit tests. Example:
org.nuxeo.ecm.platform.convert.tests.TestPDFToImage
Steps to reproduce:
- install ImageMagick but not Ghostscript
- run "mvn test" in nuxeo-platform-convert
-> the process hangs
If you check the command that is run, it's a simple "convert a.tmp b.png".
The same command run manually outputs a (verbose) error message and ends.
Possible analysis:
The external command is run through the CommandLineExecutor, in this case I
think it's the ShellExecutor implementation.
The ShellExecutor doesn't read the error stream.
Buffer saturation is known to hang processes on some platform (like Windows in
this case): cf. Process java documentation.
-> buffer fills -> process hangs -> waitFor() never returns -> the executor
never returns
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets