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

CPU usage

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Incomplete
    • Affects Version/s: 5.0.0
    • Fix Version/s: None
    • Component/s: Serial Port
    • Labels:
      None
    • Environment:
      Windows 7 64 bits, Qt 4.8.1, with Arduino MEGA 2560 boards (3 tested) connected via virtual port com (Arduino driver)

      Description

      CPU usage goes to 100% when reading from serial port with signal/slot (only reading).
      Sometimes reading second packet clears the situation for a while.

      It seems to be due to the event loop.

      Attached a simple code which reproduce the issue.

      Works fine on Mac 10.7 with Qt4.8.1.

        Attachments

        1. Arduino MEGA 2560.inf
          3 kB
        2. CpuUsageTester.zip
          2 kB
        3. TestSerial.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kuzulis Denis Shienkov
            Reporter:
            bbenj Balga Benjamin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes