From 812efbb46a7092c6149404d016fbd6ff04b98e70 Mon Sep 17 00:00:00 2001 From: David Bridges Date: Mon, 2 Sep 2019 16:14:55 +0100 Subject: [PATCH] BF: Print errors to stdoutFrame Trackback error messages were starting on the StdOutFrame and finishing on the console. Also, an error occured randomly causing psychopy to crash. The crash would happen when printing whilst a traceback was printed. With this fix, the crash has not reoccurred. --- psychopy/app/builder/builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/psychopy/app/builder/builder.py b/psychopy/app/builder/builder.py index 74d34b8b21..8bdc31f217 100644 --- a/psychopy/app/builder/builder.py +++ b/psychopy/app/builder/builder.py @@ -124,7 +124,9 @@ def doCheck(self): # then check if the process ended # self.exit for line in self.proc.stderr.readlines(): - sys.stdout.write(line) + self.queue.put(line) + if not line: + break return True def getBuffer(self):