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

QVariant<QMap<uint, QStringList>> dumper doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • Qt Creator 15.0.0-beta1
    • Debugger
    • None
    • macOS

    Description

      1) Build creator tests/manual/debugger/simple/simple.pro project with official Qt 6.7.2 macOS for arm kit
      2) Set breakpoint in testQVariant5() after var.setValue(my);
      3) Step to that code
      4) Observe <not accessible>

      Environment:
      macOS arm Sonoma 14.6.1 (23G93)
      Xcode 16.0
      Build version 16A242d

      Debugger log:

      (lldb) script theDumper.fetchVariables({"autoderef":1,"context":"","displaystringlimit":1000,"dyntype":1,"expanded":{"inspect":100,"local":100,"return":100,"watch":100},"fancy":1,"formats":{},"nativemixed":0,"partialvar":"","passexceptions":"1","qobjectnames":1,"qtnamespace":"","qtversion":395264,"stringcutoff":10000,"timestamps":0,"token":61,"typeformats":{},"watchers":[{"exp":"737472","iname":"watch.0"}]})
      >@
      >bridgemessage={msg="**** CAUGHT EXCEPTION: SUBITEM ****",channel="10"}
      >@
      >@
      >bridgemessage={msg="Traceback (most recent call last):",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2657, in handleLocals",channel="10"}
      >@
      >@
      >bridgemessage={msg="    self.putItem(value)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2982, in putItem",channel="10"}
      >@
      >@
      >bridgemessage={msg="    if self.tryPutPrettyItem(typename, value):",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1409, in tryPutPrettyItem",channel="10"}
      >@
      >@
      >bridgemessage={msg="    dumper(self, value)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2222, in qdump__QVariant",channel="10"}
      >@
      >@
      >bridgemessage={msg="    qdumpHelper__QVariant6(d, value)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2259, in qdumpHelper__QVariant6",channel="10"}
      >@
      >@
      >bridgemessage={msg="    d.putItem(val)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2982, in putItem",channel="10"}
      >@
      >@
      >bridgemessage={msg="    if self.tryPutPrettyItem(typename, value):",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1409, in tryPutPrettyItem",channel="10"}
      >@
      >@
      >bridgemessage={msg="    dumper(self, value)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1405, in qdump__QMap",channel="10"}
      >@
      >@
      >bridgemessage={msg="    qdumpHelper_QMap(d, value, value.type[0], value.type[1])",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1410, in qdumpHelper_QMap",channel="10"}
      >@
      >@
      >bridgemessage={msg="    qdumpHelper_Qt6_QMap(d, value, keyType, valueType)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1395, in qdumpHelper_Qt6_QMap",channel="10"}
      >@
      >@
      >bridgemessage={msg="    m = value['d']['d']['m']",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 3240, in __getitem__",channel="10"}
      >@
      >@
      >bridgemessage={msg="    return self.dumper.value_member_by_indexish(self, indexish)",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="  File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 4097, in value_member_by_indexish",channel="10"}
      >@
      >@
      >bridgemessage={msg="    raise RuntimeError('No member named %s in type %s'",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >bridgemessage={msg="RuntimeError: No member named d in type QMap<uint,QList<QString>>",channel="10"}
      >@
      >@
      >bridgemessage={msg="",channel="10"}
      >@
      >@
      >result={token="61",data=[{name="[statics]",iname="local.[statics]",numchild="1",value="",},{iname="local.name",name="name",origaddr="0x16fdfdb00",address="0x1001002b8",numchild="1",type="char*",valueencoded="utf8",value="01",},{iname="local.var",name="var",numchild="0",type="QMap<uint,QList<QString>>",valueencoded="notaccessible",value="",},{iname="local.my",name="my",numchild="2",address="0x600002447fc8",address="0x16fdfdb80",type="MyType",valueencoded="itemcount",value="2",},{iname="watch.0",wname="737472",numchild="0",type=" ",value="<no such value>",},],partial="0",runtime="0.012403750000004266"}@
       **** CAUGHT EXCEPTION: SUBITEM ****
       Traceback (most recent call last):
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2657, in handleLocals
           self.putItem(value)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2982, in putItem
           if self.tryPutPrettyItem(typename, value):
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1409, in tryPutPrettyItem
           dumper(self, value)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2222, in qdump__QVariant
           qdumpHelper__QVariant6(d, value)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2259, in qdumpHelper__QVariant6
           d.putItem(val)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2982, in putItem
           if self.tryPutPrettyItem(typename, value):
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1409, in tryPutPrettyItem
           dumper(self, value)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1405, in qdump__QMap
           qdumpHelper_QMap(d, value, value.type[0], value.type[1])
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1410, in qdumpHelper_QMap
           qdumpHelper_Qt6_QMap(d, value, keyType, valueType)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1395, in qdumpHelper_Qt6_QMap
           m = value['d']['d']['m']
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 3240, in __getitem__
           return self.dumper.value_member_by_indexish(self, indexish)
         File $/Users/alex/Dev/qtcreator/builds/cmake_release_qt672_creator_15/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 4097, in value_member_by_indexish
           raise RuntimeError('No member named %s in type %s'
       RuntimeError: No member named d in type QMap<uint,QList<QString>>
      >61^
      
      

      Attachments

        Issue Links

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

          Activity

            People

              hjk hjk
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes