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

QModbusRtuSerialMaster Q_ASSERT_X "processQueue", "response timer active"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.12.0
    • Fix Version/s: 5.13.0 RC 1
    • Component/s: SerialBus: MOD Bus
    • Labels:
      None
    • Environment:
      visual studio 2015 x64
    • Platform/s:
      Windows
    • Commits:
      a40fcae40fdc4d7cd658c4b8ab38aad7572f2ecf

      Description

      I use QModbusRtuSerialMaster to open a serial port without modbus client

      (baudrate:115200 , databits: 8 , parity:noparity , stopbits:1 ,timesOfRetry:3 , response time out: 1000ms).

      I  send message continuously .Of course all are time out .But after a while, the program crashes. It seems due to

      "  Q_ASSERT_X  m_responseTimer , "processQueue", "response timer active" , processQueue() in QModbusRtuSerialMasterPrivate_p.h

       Maybe  when m_responseTimer starts,  writeAdu in processQueue() executes (due to  last time out )  so m_sendTimer start again and  result in  Q_ASSERT_X  in processQueue().

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                heimrich Karsten Heimrich
                Reporter:
                magicturtle jiming huang
              • Votes:
                3 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes