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

QtMultimedia SoundEffect stops playback after some iterations on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0
    • 5.3.1
    • Multimedia
    • None
    • Android armv7a
    • Android
    • 3bd9da9aba63b51114a3602313e51085954be194

    Description

      When triggering a SoundEffect::play() multiple times in sequence (so no looping) the sound effect stops playback after 5 seconds to 5 minutes without any error messages in the logs. A subsequent call to play() has no effect afterwards. This only happens on Android devices.

      The larger the QML project the sooner the SoundEffect stops playing, so this might be related to a memory issue (I also noticed that a subsequent call to play() allocates another 3MB of memory for every call until the garbage collector jumps in, so probably the memory could be managed in a better way?).

      Also, playing two or more sound effects randomly in parallel usually triggers the issue more often.

      Used wav file type (included in qrc resource file):
      sfx_prop.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz

      Used Qt version:
      Qt 5.3.1
      QtQuick 2.2 (also tested with other imports)
      QtMultimedia 5.0

      Tested Android devices:

      • HTC One X
      • Google Nexus 7
      • Huawei Ascent

      Architectures:

      • armv7a

      Please also see the attached demo project to reproduce the issue (it usually takes a little bit longer until the problem occurs due to the small project size).

      Attachments

        1. QTBUG_40864.ZIP
          16 kB
        2. SoundEffectTest.zip
          66 kB
        3. SoundEffectTest-v2.zip
          2.11 MB
        For Gerrit Dashboard: QTBUG-40864
        # Subject Branch Project Status CR V

        Activity

          People

            stromme Christian
            alexleutgoeb Alex Leutgöb
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes