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

QSoundEffect crashes when changing volume multiple times on Qt 5.15.3 (GCC 11.2.0, 64 bit)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.3
    • Multimedia
    • Ubuntu 22.04, qt creator 6.02, GCC 11.2.0, 64 bit (everything is installed from the standard ubuntu 22.04 repository with the command sudo apt install ..)
    • Linux/X11

    Description

      I have a desktop project using Qml and Multimedia. This project has a slider with which the user can adjust the volume of the sound effects of my application (I use several QSoundEffects to play them)

      The problem is this: if my application is built and running in Qt 5.12.8 (GCC 9.3.0 64bit) on Ubuntu 20.04 (everything is installed from the standard repository), then everything is fine. But if I build and run my app in Qt 5.15.3 (GCC 11.2.0, 64 bit) on Ubuntu 22.04, when I change the volume multiple times, I get a crash with one of the following pulseaudio assert's:

      Assertion 'e->mainloop->n_enabled_defer_events > 0' failed at ../src/pulse/mainloop.c:261, function mainloop_defer_enable(). Aborting 
      Assertion 'q->front' failed at ../src/pulsecore/queue.c:81, function pa_queue_push(). Aborting. 
      Assertion '*_head == _item' failed at ../src/pulse/operation.c:85, function operation_unlink(). Aborting 

      I created a simple minimal project that reproduces this problem without having to move the slider many times (attached below) Sometimes the problem manifests itself after 100 attempts, sometimes you have to wait more than 20,000.

      Attachments

        1. SoundBug.pro
          0.2 kB
        2. audio.qrc
          0.3 kB
        3. main.cpp
          0.2 kB
        4. sound.cpp
          1 kB
        5. sound.h
          0.5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            roman_abramov roman_abramov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes