Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 8.0.2
-
None
Description
From time to time I'm facing a random Qt Creator hang-ups. This time downloaded sources, debug symbols and run the debugger.
There is an infinite loop here. I have block == NULL and endBlock != NULL
for (QTextBlock block = firstBlockForResult; block != endBlock; block = block.next()) {
copy paste of locals at srcpluginscppeditorsemantichighlighter.cpp:201
+ this 0x0000023169ce05f0 {m_baseTextDocument=0x000002315cf05930 {m_fileIsBeingReloaded=false m_isObjCEnabled=...} ...} CppEditor::SemanticHighlighter * absParenPos Variable is optimized away and not available. + block {p=0x0000000000000000 <NULL> n=0 } QTextBlock + endBlock {p=0x0000023171eeba90 {...} n=728 } QTextBlock endRange 6 const int + extraParen {pos=984649680 chr={ucs=561 u'ȱ' } source={m_id=2410271145984 } ...} TextEditor::Parenthesis + firstBlockForResult {p=0x0000023171eeba90 {...} n=0 } QTextBlock from Variable is optimized away and not available. highlighter Variable is optimized away and not available. i 0 int + it {i=0x0000000000000000 <NULL> } QList<TextEditor::Parenthesis>::iterator + lastBlockForResult {p=0x0000023171eeba90 {...} n=729 } QTextBlock + paren {pos=-1621382864 chr={ucs=240 u'ð' } source={m_id=140721562714764 } ...} TextEditor::Parenthesis + parentheses ({p=0x0000000000000000 <NULL> n=0 }, {d={d=0x0000000000000000 <NULL> ptr=0x0000000000000000 <NULL> size=0 } }) std::pair<QTextBlock,QList<TextEditor::Parenthesis>> qt_category Variable is optimized away and not available. qt_category Variable is optimized away and not available. qt_category Variable is optimized away and not available. qt_category Variable is optimized away and not available. startRange -2 const int + syntacticParens {d={d=0x0000000000000000 <NULL> ptr=0x0000000000000000 <NULL> size=0 } } QList<TextEditor::Parenthesis> + t {t1=109862792094 t2=0 } QElapsedTimer to 64 int
call stack
CppEditor.dll!CppEditor::SemanticHighlighter::onHighlighterResultAvailable(int from, int to) Line 201 at C:\Users\qt\work\build\qt-creator\src\plugins\cppeditor\semantichighlighter.cpp(201) Qt6Core.dll!00007ffc50c6e160() Qt6Core.dll!00007ffc50c70414() Qt6Core.dll!00007ffc50d9e61c() Qt6Core.dll!00007ffc50d9e85b() Qt6Core.dll!00007ffc50d9e158() Qt6Widgets.dll!00007ffc51a010ee() Qt6Widgets.dll!00007ffc51a0008f() Qt6Core.dll!00007ffc50c331c5() Qt6Core.dll!00007ffc50c359fe() Qt6Gui.dll!00007ffc515b11cf() Qt6Core.dll!00007ffc50d8e560() Qt6Gui.dll!00007ffc515b11a9() Qt6Core.dll!00007ffc50c3889f() Qt6Core.dll!00007ffc50c30fdd() qtcreator.exe!main(int argc, char * * argv) Line 803 at C:\Users\qt\work\build\qt-creator\src\app\main.cpp(803) qtcreator.exe!WinMain(HINSTANCE__ * __formal, HINSTANCE__ * __formal, char * __formal, int __formal) Line 97 at C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp(97) [Inline Frame] qtcreator.exe!invoke_main() Line 102 at d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(102) qtcreator.exe!__scrt_common_main_seh() Line 288 at d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288) kernel32.dll!00007ffca7db74b4() ntdll.dll!00007ffca82a26a1()
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-28507 Loop at CppEditor::SemanticHighlighter::onHighlighterResultAvailable
- Closed
- relates to
-
QTCREATORBUG-26341 Infinite loop in SemanticHighlighter::onHighlighterResultAvailable
- Closed
-
QTCREATORBUG-26396 Infinite calls to setParentheses
- Closed