Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Locals and Expressions window is blank

    General and Desktop
    2
    7
    1704
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      BasicPoke last edited by

      Hello, my Locals and Expressions window has stopped working and is blank. I have read that I should download gdb but I can't find that. What should I do? Would downloading the latest Qt help?

      Here is my pro file:
      @QT += core gui

      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

      TARGET = GaugeMon
      TEMPLATE = app

      SOURCES += main.cpp
      GaugeMon.cpp

      HEADERS +=
      ../DAQ_C/cbw.h
      GaugeMon.h

      FORMS +=
      GaugeMon.ui

      OTHER_FILES +=

      #---Following added when DAQ library was added---
      #win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../DAQ_C/ -lcbw32
      #else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../DAQ_C/ -lcbw32d
      LIBS += -L$$PWD/../../DAQ_C/ -lcbw32

      INCLUDEPATH += $$PWD/../../DAQ_C
      DEPENDPATH += $$PWD/../../DAQ_C
      @

      The only thing that looks odd in my debug log is this:
      @>&"Python Exception <type 'exceptions.UnicodeEncodeError'> 'ascii' codec can't encode character u'\xff' in position 867: ordinal not in range(128): \n"

      &"Error occurred in Python command: 'ascii' codec can't encode character u'\xff' in position 867: ordinal not in range(128)\n"
      3473^error,msg="Error occurred in Python command: 'ascii' codec can't encode character u'\\xff' in position 867: ordinal not in range(128)"
      dDUMPER FAILED: 3473^error,data={msg="Error occurred in Python command: 'ascii' codec can't encode character u'\\xff' in position 867: ordinal not in range(128)"}
      @

      Any ideas? Thanks.
      Ron

      1 Reply Last reply Reply Quote 0
      • B
        BasicPoke last edited by

        It started working again today for no apparent reason.
        Ron

        1 Reply Last reply Reply Quote 0
        • B
          BasicPoke last edited by

          Ok, my Locals and Expressions window is sometimes blank, and occasionally works. Really annoying. Any ideas?
          Thanks
          Ron

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Hi,

            Got any non-ascii char in your code/data ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • B
              BasicPoke last edited by

              I don't believe there are any odd characters. Don't even have any C strings. Now I am losing debug info exactly when I need it, very frustrating. I have a breakpoint in a function, I stop there, step a few times (Locals and Expressions is working correctly), then add another breakpoint, click continue, then it stops at the new breakpoint. When I start stepping, the Locals and Expressions window all goes gray and values are no longer updated. The values are also wrong when I hover over a variable.

              With the L&E window closed, then values when I hover are grayed out and incorrect.

              I have restarted Qt Creator, powered down & rebooted. Any ideas?
              Thanks
              Ron

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                What OS and Qt Creator versions are you running ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply Reply Quote 0
                • B
                  BasicPoke last edited by

                  Windows 7 64-bit, and I believe that was Qt Creator 3.1.0 and Qt 5.2.1. I installed Qt Creator "3.2.1 (opensource)" and the problem has gone away for now. I may be back later. Thanks for your help.
                  Ron

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post