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

QNmeaPositionInfoSource try to read from closed IOdevice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.8.0
    • Positioning
    • None

    Description

      I set IODevice (bluetooth socket) for QNmeaPositionInfoSource and start updates. Then I need to close socket. Before that I emit signal for another thread that contains QNmeaPositionInfoSource object, it calls stopUpdates and deleteLater QNmeaPositionInfoSource object.

      Sometimes (if I understand correctly) socket can get closed before QNmeaPositionInfoSource updates stops, and it hangs up writing numerous "QIODevice::read (QBluetoothSocket): device not open" to console.

      Direct deleting QNmeaPositionInfoSource object instead of deleteLater solve the issue, but as I know it is not safe.

      Also I wonder why sourceDataClosed() function in qnmeapositioninfosource.cpp did not stop updates?

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            lukegluke Oleg
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes