<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>3617</bug_id>
          
          <creation_ts>2012-12-18 09:37:43 +0000</creation_ts>
          <short_desc>meta-fsl-arm: X11 widows manager is not working properly</short_desc>
          <delta_ts>2013-02-07 11:23:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-meta-fsl-arm</component>
          <version>1.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tarek">tarek.elsherbiny</reporter>
          <assigned_to name="Otavio Salvador">otavio</assigned_to>
          <cc>disabled.leonardo.sandoval</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28343</commentid>
    <comment_count>0</comment_count>
    <who name="Tarek">tarek.elsherbiny</who>
    <bug_when>2012-12-18 09:37:43 +0000</bug_when>
    <thetext>X11 is not working correctly because .so is missing.

You can reproduce the problem by running the unit test:

# DISPLAY=:0 /unit_tests/mxc_epdc_x11_fb_test.out

Error: unable to open X display

Or if you try to use the Gstreamer plug-in mfw_isink</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28351</commentid>
    <comment_count>1</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2012-12-18 13:18:48 +0000</bug_when>
    <thetext>Can you paste the full output when running the binary?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28352</commentid>
    <comment_count>2</comment_count>
    <who name="Tarek">tarek.elsherbiny</who>
    <bug_when>2012-12-18 13:48:21 +0000</bug_when>
    <thetext>
gst-launch playbin2 uri=file:///home/root/mmfiles/clipcanvas_14348_offline.mp4 video-sink=&quot;mfw_isink axis-top=0 axis-left=0 disp-width=512 disp-height=384&quot;

MAX resolution 1280x720
set color key
MFW_GST_ISINK_PLUGIN 3.0.1 build on Dec 17 2012 11:39:04.
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Aiur: 3.0.1 
Core: MPEG4PARSER_06.04.22  build on Aug 22 2012 09:58:20
  mime: video/quicktime; audio/x-m4a; application/x-3gp
  file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so
Content Info:
	URI:
	      file:///home/root/mmfiles/clipcanvas_14348_offline.mp4
	Idx File:
	      /home/root/.aiur/.home.root.mmfiles.clipcanvas_14348_offline.mp4.aidx
	Seekable  : Yes
	Size(byte): 3144689

Movie Info:
	Seekable  : Yes
	Live      : No
	Duration  : 0:00:08.040000000
	ReadMode  : File
	Track     : 4

Track 00 [video_0000] Enabled
	Duration: 0:00:08.000000000
	Language: und
	Mime:
	      video/x-h264, parsed=(boolean)true, width=(int)1024, height=(int)576, framerate=
	      (fraction)25/1, codec_data=(buffer)00000001674d401f967200800936028100000e100002b
	      f203460016e40016e45ef7c1e1108a2400000000168de3c80
[INFO]	Product Info: i.MX6Q/D/S
vpudec versions :)
	plugin: 3.0.1
	wrapper: 1.0.24(VPUWRAPPER_ARM_LINUX Build on Dec 14 2012 19:34:41)
	vpulib: 5.4.6
	firmware: 2.1.5.32515
Track 01 [audio_0000] Enabled
	Duration: 0:00:08.006667000
	Language: und
	Mime:
	      audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrate=(int)1
	      28795, framed=(boolean)true, codec_data=(buffer)121056e500
BLN_MAD-MMCODECS_AACD_ARM_03.07.00  build on Jul 17 2012 17:47:46.
MFW_GST_AAC_PLUGIN 3.0.1 build on Dec 17 2012 11:38:42.
Track 02 [subtitle]: Disabled
	Codec: 0, SubCodec: 0
Track 03 [subtitle]: Disabled
	Codec: 0, SubCodec: 0
[INFO]	bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
hwbuf allocator zone(884736) created
can not create threadmfw_gst_isink_setcaps:1489
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
VS0 created. in fmt[NV12] win(0,0-1024,576:1024x576) out win(0,0-512,384:512x384)
New clock: GstAudioSinkClock
vss/mfw_gst_vss_common.c:701 ioctl error, return -1
vss/mfw_gst_vss_common.c:726 ioctl error, return -1
set deinterlace mode 0
Got EOS from element &quot;playbin20&quot;.
Execution ended after 8003785334 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
VS0 destroyed, force=0!
hwbuf allocator zone(884736) destroied.
Setting pipeline to NULL ...
[---&gt;FINALIZE aiurdemux
Freeing pipeline ...
[---&gt;FINALIZE isink</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28353</commentid>
    <comment_count>3</comment_count>
    <who name="Tarek">tarek.elsherbiny</who>
    <bug_when>2012-12-18 13:49:05 +0000</bug_when>
    <thetext>root@nitrogen6x:~# /unit_tests/mxc_epdc_x11_fb_test.out

Error: unable to open X display</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28354</commentid>
    <comment_count>4</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2012-12-18 13:55:00 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; root@nitrogen6x:~# /unit_tests/mxc_epdc_x11_fb_test.out
&gt; 
&gt; Error: unable to open X display

For this you need to pass:

#: DISPLAY=:0 &lt;command&gt;

So it will have the display set.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28355</commentid>
    <comment_count>5</comment_count>
    <who name="Tarek">tarek.elsherbiny</who>
    <bug_when>2012-12-18 14:00:00 +0000</bug_when>
    <thetext>Same problem error for me

root@nitrogen6x:~# DISPLAY=:0 /unit_tests/mxc_epdc_x11_fb_test.out

Error: unable to open X display


I&apos;m using HDMI TV.

Does it work for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29611</commentid>
    <comment_count>6</comment_count>
    <who name="">disabled.leonardo.sandoval</who>
    <bug_when>2013-02-06 22:19:19 +0000</bug_when>
    <thetext>Hi Tarek,
I could not reproduce this issue with latest repo heads. However, these are my comments:


1. Running a simple playback works fine (as you can see, I did not set the DISPLAY variable)

# /unit_tests/mxc_vpu_test.out -D &quot;-i /unit_tests/a 
[INFO]	VPU test program built on Jan 14 2013 17:25:44
[INFO]	Product Info: i.MX6Q/D/S
[INFO]	VPU firmware version: 2.1.5_r32515
[INFO]	VPU library version: 5.4.6
[INFO]	Format: STD_MPEG4
[INFO]	MPEG4 class: MPEG4
[INFO]	Input file &quot;/unit_tests/akiyo.mp4&quot; opened.
[INFO]	bitstreamMode 0, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[INFO]	Mpeg4 Profile: 0 Level: 3 Interlaced: 0
[INFO]	Aspect Ratio Table index: 1
[INFO]	Decoder: width = 176, height = 144, frameRateRes = -1, frameRateDiv = -1, count = 4
[INFO]	CROP left/top/right/bottom 0 0 0 0
[INFO]	Display fps will be 0
[INFO]	v4l output to /dev/video17
[INFO]	Display to 1024 768, top offset 0, left offset 0
[INFO]	Display: NV12
[INFO]	150 frames took 4905994 microseconds
[INFO]	dec fps = 2070.19
[INFO]	total fps= 30.57 


2) Running the same test as you did, it indicates that the /dev/fb5 does not exist, but I do not see the log you posted.

root@imx6qsabresd:/unit_tests# DISPLAY=:0 /unit_tests/mxc_epdc_x11_fb_test.out
using XRandR: screen size = 1024x768, rotation = UR
Error in opening fb device
/dev/fb5: No such file or directory
root@imx6qsabresd:/unit_tests# 

3) When using gst-launch, the pipeline you posted does not work, at least nothing is shown on the screen but if you use mfw_v4lsink, it works as expected, video is playback correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29612</commentid>
    <comment_count>7</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-02-06 22:25:02 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; I could not reproduce this issue with latest repo heads. However, these are
&gt; my comments:

It might have been fixed with last BSP release; we are using the 3.0.5 Gstreamer plugins in master.

&gt; 1. Running a simple playback works fine (as you can see, I did not set the
&gt; DISPLAY variable)
&gt; 
&gt; # /unit_tests/mxc_vpu_test.out -D &quot;-i /unit_tests/a 
&gt; [INFO]	VPU test program built on Jan 14 2013 17:25:44
&gt; [INFO]	Product Info: i.MX6Q/D/S
&gt; [INFO]	VPU firmware version: 2.1.5_r32515
&gt; [INFO]	VPU library version: 5.4.6
&gt; [INFO]	Format: STD_MPEG4
&gt; [INFO]	MPEG4 class: MPEG4
&gt; [INFO]	Input file &quot;/unit_tests/akiyo.mp4&quot; opened.
&gt; [INFO]	bitstreamMode 0, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
&gt; [INFO]	Mpeg4 Profile: 0 Level: 3 Interlaced: 0
&gt; [INFO]	Aspect Ratio Table index: 1
&gt; [INFO]	Decoder: width = 176, height = 144, frameRateRes = -1, frameRateDiv =
&gt; -1, count = 4
&gt; [INFO]	CROP left/top/right/bottom 0 0 0 0
&gt; [INFO]	Display fps will be 0
&gt; [INFO]	v4l output to /dev/video17
&gt; [INFO]	Display to 1024 768, top offset 0, left offset 0
&gt; [INFO]	Display: NV12
&gt; [INFO]	150 frames took 4905994 microseconds
&gt; [INFO]	dec fps = 2070.19
&gt; [INFO]	total fps= 30.57 
&gt; 
&gt; 
&gt; 2) Running the same test as you did, it indicates that the /dev/fb5 does not
&gt; exist, but I do not see the log you posted.
&gt; 
&gt; root@imx6qsabresd:/unit_tests# DISPLAY=:0
&gt; /unit_tests/mxc_epdc_x11_fb_test.out
&gt; using XRandR: screen size = 1024x768, rotation = UR
&gt; Error in opening fb device
&gt; /dev/fb5: No such file or directory
&gt; root@imx6qsabresd:/unit_tests# 
&gt; 
&gt; 3) When using gst-launch, the pipeline you posted does not work, at least
&gt; nothing is shown on the screen but if you use mfw_v4lsink, it works as
&gt; expected, video is playback correctly.

Tarek, can you try to reproduce your issue? We&apos;d like to close this issue but we need your confirmation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29632</commentid>
    <comment_count>8</comment_count>
    <who name="Tarek">tarek.elsherbiny</who>
    <bug_when>2013-02-07 10:10:25 +0000</bug_when>
    <thetext>Hi Otavio,

My main concern is to get the Gstreamer mfw_isink element working.

Last time I checked was in January and it wasn&apos;t working.  

I raised this bug  because I thought it is X problem that affects mfw_isink but I might not be correct.

You can close this bug because I raised another one for isink:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3781


Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29639</commentid>
    <comment_count>9</comment_count>
    <who name="Otavio Salvador">otavio</who>
    <bug_when>2013-02-07 11:23:58 +0000</bug_when>
    <thetext>This issue cannot be reproducable as explained by Leonardo; I am closing it but in case someone reproduces it please reopen.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>