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

std::cout content showing in Application output pane with delay

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.14.1
    • Qt Creator 4.11.2, Qt Creator 4.12.0-rc1, Qt Creator 4.12.0
    • Debugger
    • None
    • MacOS Mojave
    • macOS

    Description

      OS: MacOS Mojave
      Steps:
      1- Register a log message handler (qInstallMessageHandler) that uses std::cout to print log messages:

               std::cout << msg << std::endl;
           

      2- Run the application with debugger attached in QtCreator and observe the Application output pane

      Outcome: Messages start printing but as time passes they become delayed

      Expected: Messages are shown in output pane with minimal delay

      Notes:

      • Running without debugger attached shows no delays in Application output pane
      • Printing the message in a file shows no delays for one observing the file with tail
      • Delays are not observed with MacOS High Sierra

      Attachments

        1. pause_and_debugger_log_view.mp4
          6.58 MB
          Younoussa Balde
        2. run_vs_debug_stdout_delay.mp4
          7.74 MB
          Younoussa Balde
        3. testp.tar.gz
          3 kB
          Younoussa Balde
        4. truncated_stdout.mp4
          8.85 MB
          Younoussa Balde
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            bty Younoussa Balde
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes