I am running a command line application via Popen in OSX which produces many lines of command line readout, passing this via stderr to my wx.TextCtrl window. I am using threads and classes and everything has been working fine, until I run something which produces thousands of lines, at which point my application runs good until it hangs at line 6498 and i'm not sure why, any ideas please?
self.process1 = Popen(shlex.split(command), shell=False, stderr=PIPE)
while True:
line = self.process1.stderr.readline().decode('utf-8')
wx.CallAfter(self.frame.running_log1.AppendText, line)
self.process1.stderr.flush()
if "Some text" in line:
break