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

Audio fails silently on iOS 16 following app suspended

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2, 6.5.4, 6.5.5, 6.6.3, 6.7.0
    • Multimedia
    • App built with MacOS (M1) 12.6 + Xcode 14.2 + CMake 3.24; and also MacOS (M1) 13.4 + Xcode 14.3.1 + CMake 3.24
    • iOS/tvOS/watchOS
    • Multimedia wk 17-18, Multimedia wk 19-20, Multimedia wk 21-22

    Description

      How to reproduce:

      1. Build the [audio output example](https://doc.qt.io/qt-6/qtmultimedia-audiooutput-example.html) for iOS
      2. Deploy to an iOS 16 iPad (I've not tried it on iPhone)
      3. Disconnect from Xcode
      4. Run the app. You should hear the tone.
      5. Let the iPad sleep fully so that the audio stops or manually click the power button and wait a few seconds.
      6. Unlock the iPad. Around 50-70% of the time, the audio will fail to resume.

       

      Notes:

      1. This bug does not happen for iOS 15 or below.
      2. I have tested this more fully in my own app. At step 6, QAudioSink::state remains 0 (QAudio::ActiveState) and QAudioSink::error remains 0 (QAudio::NoError) so the app seems unaware that the audio stream has failed.
      3. Step 5 must involve the device fully going to sleep. It is not sufficient to cause the app to be suspended, say, by pressing the Home button or switching to a different app.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-114674
          # Subject Branch Project Status CR V

          Activity

            People

              tpochep Timur Pocheptsov
              paulmasri Paul
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change