Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
4.8.4, 5.0.0
-
None
-
Windows 7 64-bit
-
01db67fd97621ed86641be63d2ea7f3655b2dc92 (Qt Creator)
Description
I started getting random crashes in Qt Creator and have narrowed it down as much as I can. Here are the steps to reproduce:
1. Open the attached .cpp file in Qt Creator.
2. In the line "const int someBigIntArray[] = {", double click to the right of the "{", which will cause the whole block to be selected.
3. Click in the selected region (e.g., directly on the "{" ), and drag your mouse to begin the process of moving the text elsewhere.
4. Drop it inside of the "
" block. Qt Creator should crash.
Notes:
-It only happens if you're dragging many lines of text. If you delete most of those 0's so that there are only a few left, it won't crash. If you can't reproduce the bug, try adding more 0's until you have perhaps a few hundred.
-It only happens if you drop the text inside the array initialization block. For example, if you drop it somewhere inside the text "const int someBigIntArray[]", it moves the text properly and no crash occurs.
-It only happens If you are NOT copying the ';'. Dragging the text WITH the semicolon works properly.
Attachments
Issue Links
- resulted from
-
QTBUG-28684 QTextEngine::lineNumberForTextPosition returns invalid Line
-
- Closed
-
For Gerrit Dashboard: QTBUG-30018 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
49227,1 | Remove call that has no effect and triggers crash in Qt later on. | 2.7 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |