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

Debugger doesn't work when path contains Unicode character

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.14.0
    • Qt Creator 4.0.1
    • Debugger
    • None
    • openSUSE 42.1, x64

    Description

      1.) Create a plain C++ project on a path which contains some Unicode characters (like /home/user/Programozás/Qt)
      2.) Turn on Python pretty printer
      3.) Compile the Hello World code in Debug mode and start the debugger
      4.) Stop the debugger at a certain point while the program is running

      The backtrace and local variables windows are totally empty. The following error message appears in the debugger log (Window -> Views -> ~):

      &"python theDumper.fetchStack({\"limit\":140,\"nativemixed\":0,\"token\":142})\n"
      &"Traceback (most recent call last):\n"
      &"  File \"<string>\", line 1, in <module>\n"
      &"  File \"/usr/share/qtcreator/debugger/gdbbridge.py\", line 1652, in fetchStack\n"
      &"    objfile = fromNativePath(symtab.objfile.filename)\n"
      &"UnicodeEncodeError: 'ascii' codec can't encode character u'\\xe1' in position 32: ordinal not in range(128)\n"
      &"Error while executing Python code.\n"
      142^error,msg="Error while executing Python code."
      

      Attachments

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

        Activity

          People

            hjk hjk
            szotsaki Szőts Ákos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes