Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30018

Qt Creator crashes when click-dragging lots of selected text block into another text block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 4.8.4, 5.0.0
    • None
    • Windows 7 64-bit
    • 01db67fd97621ed86641be63d2ea7f3655b2dc92 (Qt Creator)

      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 "

      {5, 6, 7, 8}

      " 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.

        1. bug.cpp
          0.8 kB
          Anthony Prechtl
        2. untitled1.tgz
          1 kB
          Eike Ziller
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            aprechtl Anthony Prechtl
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes