Description
From time to time, I get this error when debugging using LLDB on OSX.
After the error, the debugger becomes unresponsive and aborting it is the only possible action. In lldbbridge.py, catching the exception and ignoring it seems to work correctly:
try:
msg = self.process.GetSTDOUT(1024)
if msg isnotNone:
self.report('output={channel="stdout",data="%s"}' % self.hexencode(msg))
except:
pass
----------------------------
ERROR: Lldb stderr: Exception in thread Thread-1:
Traceback (most recent call last):
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/Applications/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py", line 1000, in loop
self.handleEvent(event)
File "/Applications/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py", line 1412, in handleEvent
msg = self.process.GetSTDOUT(1024)
File "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Resources/Python3/lldb/_init_.py", line 8516, in GetSTDOUT
return _lldb.SBProcess_GetSTDOUT(self, dst)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 1023: unexpected end of data