[mediahub3] media-hub never releases the display on state when closing mediaplayer-app (with an active playback)

Bug #1423715 reported by Ricardo Salveti
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
media-hub (Ubuntu RTM)
Fix Released
High
Thomas Voß

Bug Description

current build number: 240
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2015-02-19 14:56:04
version version: 240
version ubuntu: 20150218.1
version device: 20150216-fe747ac
version custom: 20150216-561-29-186

Media-hub 3 from https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu-rtm/landing-002:
ii libmedia-hub-client3:armhf 3.0.0+15.04.20150213~rtm-0ubuntu1
ii libmedia-hub-common3:armhf 3.0.0+15.04.20150213~rtm-0ubuntu1
ii media-hub 3.0.0+15.04.20150213~rtm-0ubuntu1

Play video http://people.canonical.com/~rsalveti/big_buck_bunny_480p_H264_AAC_25fps_1800K.MP4 and close the mediaplayer-app by swiping from right->left and bottom->up, you'll see that the screen lock state in powerd will never be released.

Looking at the code (src/core/media/power/state_controller.cpp), the issue happens in request_release, because timeout.async_wait will return an error when you close the app before getting the 4 seconds limit, and that makes media-hub to never really release the displayonrequest.

Tags: mediahub3
Changed in media-hub (Ubuntu RTM):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Thomas Voß (thomas-voss)
tags: added: mediahub3
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Same happens with camera-app when recording a new video.

1 - Open camera-app;
2 - Start video recording;
3 - Swipe right->left (dash) and close the app

The display on state will never be released.

Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
status: Confirmed → In Progress
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Working fine with latest revision.

Changed in media-hub (Ubuntu RTM):
status: In Progress → Fix Committed
Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
status: Fix Committed → 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.