From c372d485e2085f36fddc371c48ce0bc1a96478cf Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Sun, 10 Jul 2016 19:31:26 -0700 Subject: [PATCH] Fix bug in PsychoBlend where render hangs. This was because it was taking the standard input from Psychopath, but was buffering it and not reading it. The percentage complete printouts would fill the buffer in some cases, and cause the process to not exit since not all stdout had been handled. --- psychoblend/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psychoblend/render.py b/psychoblend/render.py index 4addb22..86b1ac3 100644 --- a/psychoblend/render.py +++ b/psychoblend/render.py @@ -54,7 +54,7 @@ class PsychopathRender(bpy.types.RenderEngine): # Start Rendering! try: self._process = subprocess.Popen([psy_binary] + args, - stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT) except OSError: # TODO, report api print("Psychopath: could not execute '%s'" % psy_binary)