music app tests TestMainWindow.test_play and TestMainWindow.test_pause failures in mako and maguro

Bug #1217953 reported by Para Siva
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Music App
Fix Released
Medium
Victor Thompson
touch-preview-images
Fix Released
Undecided
Unassigned

Bug Description

The following failure message is seen in mako and maguro music player smoke tests

Warning: "No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2,
parsed=(boolean)true'."
mainView.isPlaying=false
Error: "Your GStreamer installation is missing a plug-in."
}}}

test-log: {{{
15:33:29.253 INFO globals:49 - ************************************************************
15:33:29.255 INFO globals:50 - Starting test music_app.tests.test_music.TestMainWindow.test_pause (with touch)
15:33:29.257 WARNING testcase:115 - No tracing available - install the python-autopilot-trace package!
15:33:29.422 WARNING testcase:152 - Process manager backend unavailable, application snapshot support disabled.
15:33:29.452 INFO __init__:156 - Launching process: ['/usr/bin/qmlscene', '-testability', '/usr/share/music-app/music-app.qml',
'--desktop_file_hint=/usr/share/applications/music-app.desktop']
15:33:33.424 INFO __init__:400 - dbus.DBusException while attempting to get PID for org.freedesktop.DBus: DBusException("Could not get PID of name
'org.freedesktop.DBus': no such name",)
15:33:35.834 DEBUG dbus:391 - Selecting objects of type QQuickView with attributes: {}
15:33:35.888 DEBUG dbus:391 - Selecting objects of type UbuntuShape with attributes: {'objectName': 'playshape'}
15:33:36.284 DEBUG dbus:391 - Selecting objects of type MainView with attributes: {'objectName': 'music'}
15:33:36.660 DEBUG _common:35 - Moving to object's globalRect coordinates.
15:33:36.662 DEBUG _uinput:331 - Tapping at: 579,1208
15:33:47.375 INFO testcase:443 - waiting for process to exit.
}}}

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/music_app/tests/test_music.py", line 96, in test_pause
    self.assertThat(main.isPlaying, Eventually(Equals(True)))
MismatchError: After 10.0 seconds test on MainView.isPlaying failed: True != dbus.Boolean(False, variant_level=1)

The impacted jobs are:
http://reports.qa.ubuntu.com/smokeng/saucy/image/3805/music-app-autopilot/
and
http://reports.qa.ubuntu.com/smokeng/saucy/image/3804/music-app-autopilot/

Related branches

Revision history for this message
Paul Larson (pwlars) wrote :

We should have it play one of the wav files instead of an mp3

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

It's fair enough to play an mp3 file as a test, but that is testing format support a bit more. I would suggest creating a test specifically for testing whatever formats we want to support. Remember to include the needed dependencies when this happens (which I believe is the issue here)

For fixing this specifically, add another ogg file instead (re-encode the same file if needed :-) )

Revision history for this message
Andrew Hayzen (ahayzen) wrote :

Do you know which package we have to depend/recommend on to support MP3 and other 'restricted' formats?

I guess something like gstreamer1.0-plugins-ugly? or is there a specific qt package?

Thanks,

Andrew

Revision history for this message
Paul Larson (pwlars) wrote :

I don't suggest depending on having that installed. We're looking at converting over to pulling the click package and the tests would then have to come from bzr - which means no dependencies can be detected. Especially in the case of system images, even if we knew about the dependency, installing extra packages would not be possible due to space limitations. Using ogg or wav ought to work instead of mp3 though.

Changed in music-app:
assignee: nobody → Victor Thompson (vthompson)
importance: Undecided → Medium
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:music-app at revision 93, scheduled for release in music-app, milestone Unknown

Changed in music-app:
status: New → Fix Committed
Revision history for this message
David Planella (dpm) wrote :

Just a quick heads up that as of today we've re-gained the ability to play MP3 files out of the box (see bug 1222024).

David Planella (dpm)
Changed in music-app:
status: Fix Committed → Fix Released
Changed in touch-preview-images:
status: New → Fix Released
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.