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

Qt Creator no longer registers keyboard input after any large console.log

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • Qt Creator 6.0.0
    • Qt Creator 4.14.1, Qt Creator 5.0.3
    • None
    • Ubuntu 20.04 LTS, Kubuntu 21.10 X
      Qt 5.15.2
    • Linux/X11

    Description

      After printing a large log statement to the console, qt creator responds only to the mouse and ignores any keypresses.

       

      Reproduction steps:

      1) Under Kubuntu 21.10, I start the qt creator using

       ~/qtcreator-4.14.1/bin/qtcreator.sh

      2) In my main.qml, I have the following Snippet:

      Timer {
          interval: 10000
          repeat: false
      
          Component.onCompleted: {
              start();
          }
      
          onTriggered: {
              console.log(JSON.stringify(new Array(200000).fill(0), null, 2));
          }
      }
      

      3) I start my Quick Application (5.15.2). After the Window appears, but before the long log happens, I click into the console so that my cursor is in the log output window.

      4) I wait until the console is done printing zeroes to the console

      5) I try to edit main.qml, but keyboard is no longer registered. Neither are hotkeys, though one time I think they were still registered. The Creator is unusable until it is restarted.

      Note: Right-Click copy pasting still works, so editing itself is not entirely blocked.

       

      Attachments

        Activity

          People

            davschul David Schulz
            hannes_reports Hannes Duden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: