Sound plays randomly or not at all

Bug #1441325 reported by Michal Predotka on 2015-04-07
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Media Hub
Invalid
Undecided
Unassigned
PulseAudio
New
Undecided
Unassigned
qtmultimedia-opensource-src (Ubuntu)
Undecided
Unassigned

Bug Description

I'm making an simple app. In the app on a click of a button a sound should play. Unfortunately it plays sometimes but mostly not at all. Here's the place in the app code where the sound I want to play is: http://bazaar.launchpad.net/~mpredotka/+junk/pop-that-wrap/view/head:/Bubble.qml#L16
When I run my app from SDK to my bq phone I get errors like this:
Debug-helper> Environment: confined
Debug-helper> Environment initialized, starting the application
Debug-helper> Executing /usr/bin/qmlscene['/usr/bin/qmlscene', '$@', 'Main.qml']
shm_open() failed: Permission denied
process 26220: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file ../../dbus/dbus-message.c line 1266.
This is normally a bug in some application using the D-Bus library.
process 26220: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file ../../dbus/dbus-message.c line 2951.
This is normally a bug in some application using the D-Bus library.
process 26220: arguments to dbus_message_iter_init_append() were incorrect, assertion "message != NULL" failed in file ../../dbus/dbus-message.c line 2348.
This is normally a bug in some application using the D-Bus library.
QDBusConnection: error: could not send message to service "org.freedesktop.NetworkManager" path "" interface "org.freedesktop.DBus.Introspectable" member "Introspect":
using blocking call!
Using blocking call!
process 26220: arguments to dbus_message_new_method_call() were incorrect, assertion "_dbus_check_is_valid_path (path)" failed in file ../../dbus/dbus-message.c line 1266.
This is normally a bug in some application using the D-Bus library.
process 26220: arguments to dbus_message_set_auto_start() were incorrect, assertion "message != NULL" failed in file ../../dbus/dbus-message.c line 2951.
This is normally a bug in some application using the D-Bus library.
process 26220: arguments to dbus_message_iter_init_append() were incorrect, assertion "message != NULL" failed in file ../../dbus/dbus-message.c line 2348.
This is normally a bug in some application using the D-Bus library.
QDBusConnection: error: could not send message to service "org.freedesktop.NetworkManager" path "" interface "org.freedesktop.DBus.Introspectable" member "Introspect":
using blocking call!
Using blocking call!
UbuntuWindow::handleSurfaceFocusChange(focused=true)
UbuntuWindow::handleSurfaceResize(width=540, height=919)
UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
QSoundEffect(pulseaudio): Error in pulse audio stream
QSoundEffect(pulseaudio): Error in pulse audio stream
QSoundEffect(pulseaudio): Error in pulse audio stream
QSoundEffect(pulseaudio): Error in pulse audio stream

Jim Hodapp (jhodapp) wrote :

I believe the issue is that we don't directly implement the QSoundEffect backend to work with media-hub (I might be mistaken, would need to check on this some more). As a workaround, try using the MediaPlayer QML control for now.

Changed in media-hub:
status: New → Invalid
Michal Predotka (mpredotka) wrote :

Thanks for the tip with MediaPlayer element. Unfortunately in my case it's too laggy.

Jim Hodapp (jhodapp) wrote :

Actually we should support the SoundEffect component after all. This seems like a new regression. You might want to contact mzanetti on IRC at #ubuntu-touch to see if he experiences the same issues. He's developed a game that uses this component and he mentioned several months ago that it was working well for him and was low latency.

Jim Hodapp (jhodapp) on 2015-04-08
no longer affects: qtubuntu-media
Michal Predotka (mpredotka) wrote :

Actually Michael was the one who asked me to submit this bug after he tried the code and reproduced the issue :)
Anyway for now I made some changes to the code so it's more efficient.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtmultimedia-opensource-src (Ubuntu):
status: New → Confirmed
Jim Hodapp (jhodapp) wrote :

I'm curious what you ended up doing as a workaround for the issue? Have you tried using the SoundEffect class at all?

Michal Predotka (mpredotka) wrote :

I do use SoundEffect and nowadays it seems to work fine. Not sure which OTA fixed the issue. Only problem I noticed and others who use the app, is the change in the sound volume after several clicks. But I believe there's another bug for that.
So this bug seems to be fixed for me. Sorry I forgot to mention that earlier 😊

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers