Details
Description
1) Build creator tests/manual/debugger/simple/simple.pro project with official Qt 6.7.2 macOS for arm kit
2) Set a break point in testQVariant3() after
var.setValue(QStringList() << "World");
3) Step to that code
4) Observe <not accessible>
Dumper log
<1506fetchVariables({"autoderef":1,"context":"","displaystringlimit":1000,"dyntype":1,"expanded":{"inspect":100,"local":100,"local.var":100,"return":100,"watch":100},"fancy":1,"formats":{"watch.0":4},"nativemixed":0,"partialvar":"local.var","passexceptions":"1","qobjectnames":1,"qtnamespace":"","qtversion":395010,"stringcutoff":10000,"timestamps":0,"token":1506,"typeformats":{},"watchers":[{"exp":"696d","iname":"watch.0"}]}) >(lldb) script theDumper.fetchVariables({"autoderef":1,"context":"","displaystringlimit":1000,"dyntype":1,"expanded":{"inspect":100,"local":100,"local.var":100,"return":100,"watch":100},"fancy":1,"formats":{"watch.0":4},"nativemixed":0,"partialvar":"local.var","passexceptions":"1","qobjectnames":1,"qtnamespace":"","qtversion":395010,"stringcutoff":10000,"timestamps":0,"token":1506,"typeformats":{},"watchers":[{"exp":"696d","iname":"watch.0"}]}) >@ >bridgemessage={msg="NAME: {0: '<Error>', 101: 'char', 102: 'signed char', 103: 'unsigned char', 104: 'bool', 105: 'char8_t', 106: 'int8_t', 107: 'uint8_t', 108: 'qint8', 109: 'quint8', 110: 'short', 111: 'short int', 112: 'signed short', 113: 'signed short int', 114: 'unsigned short', 115: 'unsigned short int', 116: 'char16_t', 117: 'int16_t', 118: 'uint16_t', 119: 'qint16', 120: 'quint16', 121: 'int', 122: 'signed int', 123: 'unsigned int', 124: 'char32_t', 125: 'int32_t', 126: 'uint32_t', 127: 'qint32', 128: 'quint32', 129: 'long long', 130: 'signed long long', 131: 'unsigned long long', 132: 'int64_t', 133: 'uint64_t', 134: 'qint64', 135: 'quint64', 136: 'float', 137: 'double', 138: 'qreal', 139: 'QChar', 140: 'Qt::ItemDataRole', 141: 'QVariant', 142: 'QObject', 143: 'QObjectPrivate', 144: 'QByteArray', 145: 'QString', 146: 'QStandardItemData', 147: 'QXmlAttributes::Attribute', 148: 'QList<QObject*>', 149: 'QList<QStandardItemData>', 150: 'QList<QRect>', 151: 'QList<QVariant>', 152: 'QVariantList', 153: 'QMap<QString, QVariant>', 154: 'QVariantMap', 155: 'QHash<QString, QVariant>', 156: 'QVariantHash', 157: 'QPoint', 158: 'QPointF', 159: 'QLine', 160: 'QLineF', 161: 'std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>', 162: 'QStringList', 163: 'QList<QString>', 164: 'QStringList'}",channel="10"} >@ >@ >bridgemessage={msg="CODE: {0: 2, 101: 3, 102: 3, 103: 3, 104: 3, 105: 3, 106: 3, 107: 3, 108: 3, 109: 3, 110: 3, 111: 3, 112: 3, 113: 3, 114: 3, 115: 3, 116: 3, 117: 3, 118: 3, 119: 3, 120: 3, 121: 3, 122: 3, 123: 3, 124: 3, 125: 3, 126: 3, 127: 3, 128: 3, 129: 3, 130: 3, 131: 3, 132: 3, 133: 3, 134: 3, 135: 3, 136: 4, 137: 4, 138: 0, 139: 1, 140: 5, 141: 1, 142: 1, 143: 1, 144: 1, 145: 1, 146: 1, 147: 1, 148: 1, 149: 1, 150: 1, 151: 1, 152: 0, 153: 1, 154: 0, 155: 1, 156: 0, 157: 1, 158: 1, 159: 1, 160: 1, 161: 1, 163: 1, 164: 0}",channel="10"} >@ >@ >bridgemessage={msg="SIZE: {0: 1, 101: 1, 102: 1, 103: 1, 104: 1, 105: 1, 106: 1, 107: 1, 108: 1, 109: 1, 110: 2, 111: 2, 112: 2, 113: 2, 114: 2, 115: 2, 116: 2, 117: 2, 118: 2, 119: 2, 120: 2, 121: 4, 122: 4, 123: 4, 124: 4, 125: 4, 126: 4, 127: 4, 128: 4, 129: 8, 130: 8, 131: 8, 132: 8, 133: 8, 134: 8, 135: 8, 136: 4, 137: 8, 138: 8, 139: 2, 140: 4, 141: 32, 142: 16, 143: 80, 144: 24, 145: 24, 146: 40, 147: 96, 148: 24, 149: 24, 150: 24, 151: 24, 152: 24, 153: 8, 154: 8, 155: 8, 156: 8, 157: 8, 158: 16, 159: 16, 160: 32, 161: 32, 163: 24, 164: 24}",channel="10"} >@ >@ >bridgemessage={msg="TARGS: {}",channel="10"} >@ >@ >bridgemessage={msg="BITSIZE: {}",channel="10"} >@ >@ >bridgemessage={msg="TARGET: {138: 137, 152: 151, 154: 153, 156: 155, 164: 163}",channel="10"} >@ >@ >bridgemessage={msg="CANNOT DETERMINE SIZE FOR TYPE 162",channel="10"} >@ >@ >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/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2656, in handleLocals",channel="10"} >@ >@ >bridgemessage={msg=" self.putItem(value)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2981, in putItem",channel="10"} >@ >@ >bridgemessage={msg=" if self.tryPutPrettyItem(typename, value):",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1408, in tryPutPrettyItem",channel="10"} >@ >@ >bridgemessage={msg=" dumper(self, value)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2176, in qdump__QVariant",channel="10"} >@ >@ >bridgemessage={msg=" qdumpHelper__QVariant6(d, value)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2213, in qdumpHelper__QVariant6",channel="10"} >@ >@ >bridgemessage={msg=" d.putItem(val)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2981, in putItem",channel="10"} >@ >@ >bridgemessage={msg=" if self.tryPutPrettyItem(typename, value):",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1408, in tryPutPrettyItem",channel="10"} >@ >@ >bridgemessage={msg=" dumper(self, value)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1884, in qdump__QStringList",channel="10"} >@ >@ >bridgemessage={msg=" qdumpHelper_QList(d, value, '@QString')",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1123, in qdumpHelper_QList",channel="10"} >@ >@ >bridgemessage={msg=" d.qtVersionPing(value.typeid)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg=" File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 301, in qtVersionPing",channel="10"} >@ >@ >bridgemessage={msg=" self.setQtVersionAtLeast6(test_size > size_for_qt5)",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >bridgemessage={msg="TypeError: '>' not supported between instances of 'NoneType' and 'int'",channel="10"} >@ >@ >bridgemessage={msg="",channel="10"} >@ >@ >result={token="1506",data=[{name="[statics]",iname="local.[statics]",numchild="1",value="",},{iname="local.var",name="var",numchild="1",numchild="0",type="QStringList",valueencoded="notaccessible",value="",},{iname="watch.0",wname="696D",numchild="0",type=" ",value="<no such value>",},],partial="1",runtime="0.00448762499999944"}@ NAME: {0: '<Error>', 101: 'char', 102: 'signed char', 103: 'unsigned char', 104: 'bool', 105: 'char8_t', 106: 'int8_t', 107: 'uint8_t', 108: 'qint8', 109: 'quint8', 110: 'short', 111: 'short int', 112: 'signed short', 113: 'signed short int', 114: 'unsigned short', 115: 'unsigned short int', 116: 'char16_t', 117: 'int16_t', 118: 'uint16_t', 119: 'qint16', 120: 'quint16', 121: 'int', 122: 'signed int', 123: 'unsigned int', 124: 'char32_t', 125: 'int32_t', 126: 'uint32_t', 127: 'qint32', 128: 'quint32', 129: 'long long', 130: 'signed long long', 131: 'unsigned long long', 132: 'int64_t', 133: 'uint64_t', 134: 'qint64', 135: 'quint64', 136: 'float', 137: 'double', 138: 'qreal', 139: 'QChar', 140: 'Qt::ItemDataRole', 141: 'QVariant', 142: 'QObject', 143: 'QObjectPrivate', 144: 'QByteArray', 145: 'QString', 146: 'QStandardItemData', 147: 'QXmlAttributes::Attribute', 148: 'QList<QObject*>', 149: 'QList<QStandardItemData>', 150: 'QList<QRect>', 151: 'QList<QVariant>', 152: 'QVariantList', 153: 'QMap<QString, QVariant>', 154: 'QVariantMap', 155: 'QHash<QString, QVariant>', 156: 'QVariantHash', 157: 'QPoint', 158: 'QPointF', 159: 'QLine', 160: 'QLineF', 161: 'std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>', 162: 'QStringList', 163: 'QList<QString>', 164: 'QStringList'} CODE: {0: 2, 101: 3, 102: 3, 103: 3, 104: 3, 105: 3, 106: 3, 107: 3, 108: 3, 109: 3, 110: 3, 111: 3, 112: 3, 113: 3, 114: 3, 115: 3, 116: 3, 117: 3, 118: 3, 119: 3, 120: 3, 121: 3, 122: 3, 123: 3, 124: 3, 125: 3, 126: 3, 127: 3, 128: 3, 129: 3, 130: 3, 131: 3, 132: 3, 133: 3, 134: 3, 135: 3, 136: 4, 137: 4, 138: 0, 139: 1, 140: 5, 141: 1, 142: 1, 143: 1, 144: 1, 145: 1, 146: 1, 147: 1, 148: 1, 149: 1, 150: 1, 151: 1, 152: 0, 153: 1, 154: 0, 155: 1, 156: 0, 157: 1, 158: 1, 159: 1, 160: 1, 161: 1, 163: 1, 164: 0} SIZE: {0: 1, 101: 1, 102: 1, 103: 1, 104: 1, 105: 1, 106: 1, 107: 1, 108: 1, 109: 1, 110: 2, 111: 2, 112: 2, 113: 2, 114: 2, 115: 2, 116: 2, 117: 2, 118: 2, 119: 2, 120: 2, 121: 4, 122: 4, 123: 4, 124: 4, 125: 4, 126: 4, 127: 4, 128: 4, 129: 8, 130: 8, 131: 8, 132: 8, 133: 8, 134: 8, 135: 8, 136: 4, 137: 8, 138: 8, 139: 2, 140: 4, 141: 32, 142: 16, 143: 80, 144: 24, 145: 24, 146: 40, 147: 96, 148: 24, 149: 24, 150: 24, 151: 24, 152: 24, 153: 8, 154: 8, 155: 8, 156: 8, 157: 8, 158: 16, 159: 16, 160: 32, 161: 32, 163: 24, 164: 24} TARGS: {} BITSIZE: {} TARGET: {138: 137, 152: 151, 154: 153, 156: 155, 164: 163} CANNOT DETERMINE SIZE FOR TYPE 162 **** CAUGHT EXCEPTION: SUBITEM **** Traceback (most recent call last): File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2656, in handleLocals self.putItem(value) File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2981, in putItem if self.tryPutPrettyItem(typename, value): File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1408, in tryPutPrettyItem dumper(self, value) File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2176, in qdump__QVariant qdumpHelper__QVariant6(d, value) File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 2213, in qdumpHelper__QVariant6 d.putItem(val) File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 2981, in putItem if self.tryPutPrettyItem(typename, value): File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 1408, in tryPutPrettyItem dumper(self, value) File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1884, in qdump__QStringList qdumpHelper_QList(d, value, '@QString') File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/qttypes.py$, line 1123, in qdumpHelper_QList d.qtVersionPing(value.typeid) File $/Users/alex/Dev/qtcreator/official/Qt Creator 14.0.0-rc1/Qt Creator.app/Contents/Resources/debugger/dumper.py$, line 301, in qtVersionPing self.setQtVersionAtLeast6(test_size > size_for_qt5) TypeError: '>' not supported between instances of 'NoneType' and 'int' >1506^
Attachments
Issue Links
- split to
-
QTCREATORBUG-31770 QVariant<QMap<uint, QStringList>> dumper doesn't work
- Reported