Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24281

UnicodeDecodeError Python exception when debugging with LLDB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.12.3
    • Debugger
    • None
    • macOS

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            est77 Est T
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes