Bug 3572 - QT/Phonon integration on imx.6
Summary: QT/Phonon integration on imx.6
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-meta-fsl-arm (show other bugs)
Version: 1.3
Hardware: x86 x86_64
: Medium+ critical
Target Milestone: 1.4 M2
Assignee: disabled.leonardo.sandoval
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-12-12 16:34 UTC by Daiane
Modified: 2013-02-08 17:43 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daiane 2012-12-12 16:34:36 UTC
I did find an issue with qmediaplayer on i.MX6 though. It appears that a
reference to /dev/video17 leaks during each video playback.

Before playing any videos, no handles are open:

~# ls -l /proc/`pidof qmediaplayer`/fd | grep /dev/video
~#

During the first video, two handles are open:

~# ls -l /proc/`pidof qmediaplayer`/fd | grep /dev/video
lrwx------    1 root     root            64 Dec  9 23:49 16 -> /dev/video17
lrwx------    1 root     root            64 Dec  9 23:49 17 -> /dev/video17


If I let the first complete, then open another video, I see
three handles:

~# ls -l /proc/`pidof qmediaplayer`/fd | grep /dev/video
lrwx------    1 root     root            64 Dec  9 23:49 16 -> /dev/video17
lrwx------    1 root     root            64 Dec  9 23:49 17 -> /dev/video17
lrwx------    1 root     root            64 Dec  9 23:52 18 -> /dev/video17

and so on.

I caught this after repeatedly playing the very short akiyo.mp4
from /unit_tests. After a few successful runs, video playback
stopped.
Comment 1 disabled.leonardo.sandoval 2013-01-21 20:52:51 UTC
I was able to reproduced it under a imx6qmachine. I wonder if this problem has to be solved under the meta-fsl-arm or we simple have to report it to the right community. Checking on google for possible solutions...
Comment 2 disabled.leonardo.sandoval 2013-02-08 17:41:36 UTC
commit e280c54d1ba2c7ec46e5d699fbd880f70e6c387d
Author: Leonardo Sandoval <leonardo.sandoval@freescale.com>
Date:   Thu Feb 7 15:14:34 2013 -0600

    imx-test: Condition the mxc_epdc_x11_fb_test installation
    
    Condition the compilation/installation of the unit test
    '/unit_tests/mxc_epdc_x11_fb_test'.
    
    This binary is only valid on specific platforms (not yet supported by
    current layer) like IMX508.
    
    Tested on a Sabre SD i.MX6Q board. Fixes:
    https://bugzilla.yoctoproject.org/show_bug.cgi?id=3615
    
    [YOCTO #3615]
    
    Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com>
    Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Comment 3 disabled.leonardo.sandoval 2013-02-08 17:43:31 UTC
Sorry, this is the correct commit which solved the issue.


commit c2cbd977ee7ffa53f715222a13feec599b9836d1
Author: Leonardo Sandoval <leonardo.sandoval@freescale.com>
Date:   Thu Feb 7 11:41:14 2013 -0600

    qt4: Add a unreference instruction on qt4 phonon patch
    
    Correct the qt4 phonon patch adding a statement which unreferences
    an object representing the freescale video sink. Tested on a iMX6Q
    machine using the fsl-image-gui image.
    
    Fixes: https://bugzilla.yoctoproject.org/show_bug.cgi?id=3572
    
    [YOCTO #3572]
    
    Signed-off-by: Leonardo Sandoval <leonardo.sandoval@freescale.com>