QAudioRecorder fails to start recording

Bug #1467219 reported by Ben Brown
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
media-hub (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The attached minimal code example demonstrates, how the QAudioRecorder fails to record (the status never changes from QMediaRecorder::StartingStatus=4 to QMediaRecorder::RecordingStatus=5). The QML label shows "This is not good!" and never recovers from this state.

To run the code, replace the mytype.h code from the SDK QML example with C++ back end (cmake). Executing the app starts a record/stop loop and eventually ends up in the "This is not good!" part.

Code: http://pastebin.ubuntu.com/11748282/

Revision history for this message
Ben Brown (ds150610ubuntu) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in media-hub (Ubuntu):
status: New → Confirmed
Revision history for this message
Sturm Flut (sturmflut) wrote :

Setting up the environment for the sample code needs a bit more work, you also have to add the "microphone" AppArmor policy and add QtMultimedia to the dependencies. I built a working QtCreator project around it and pushed it to to my Launchpad github repository:

lp:~sturmflut/+git/bug-1467219

I can confirm this bug, on my 15.04 development desktop the code fails after a couple of repetitions. Looking at the AppArmor policy it looks like QAudioRecorder accesses PulseAudio and gstreamer directly, so this might not be related to the media-hub?

Revision history for this message
Ben Brown (ds150610ubuntu) wrote :

Sorry, I forgot about these two additional requirements. Thanks for pointing it out!

Revision history for this message
Ben Brown (ds150610ubuntu) wrote :

I can no longer reproduce the bug. Thanks to whomever fixed this.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.