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

QSharedMemory lock/unlock fails after 16252 attempts on Symbian

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.2
    • 4.6.3
    • None
    • None
    • Symbian 5th edition device.
    • 570e7b38487455d394b5b74a59edc639f3dc416f

    Description

      Trying to implement inter process communication to application with QSharedMemory. It seemed that QSharedMemory::lock() starts failing after certain period of time. Finally figured out that lock starts to fail after certain amount of calls to lock().

      Provided test app calls lock/unlock in a loop. App fails after 16252th attempt to lock()/unlock() QSharedMemory segment.
      QSharedMemory::error = 6
      QSharedMemory::errorString() ="unable to lock"

      After application is exited, following is printed to QT creators application output:
      "QMutex: mutex init failure: Resource temporarily unavailable"

      Attachments

        Activity

          People

            e0348803 Miikka Heikkinen
            tola Toni Lahnalampi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: