<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: EMGD . memory leak and streaming issue in Embedded Intel Atom® Processors</title>
    <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248276#M2361</link>
    <description>&lt;P&gt;Hi kirk,&lt;/P&gt;&lt;P&gt;I have ported 1.8 EMGD and checked the same.The issue still remains.&lt;/P&gt;&lt;P&gt;My aperture size setting is 256MB and RAM size is 1GB.Instead of streaming i tried playback and closed using ctrl+c. Sometime when closed using ctrl+c i am getting below error and if that error happens memory will get leaked(&amp;gt;40MB).&lt;/P&gt;&lt;P&gt;&lt;B&gt;[h264 @ 0xa104de0]number of reference frames exceeds max (probably corrupt input), discarding one&amp;nbsp;&lt;/B&gt;&lt;/P&gt;    Last message repeated 19 times&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]get_buffer() failed (-1 1 2 (nil))&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]decode_slice_header error&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the log where  i have done the testing. Actually i had a privilage user access but i lost the password and i am not able to recover it .&lt;/P&gt;&lt;P&gt;Below is the playback test I have done and teh memory info FYI..please note this is a playback test only ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@usbharddisk-lht:~#  cat /proc/meminfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemTotal:         764316 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemFree:          666224 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Buffers:            4712 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Cached:            28888 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapCached:            0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active:            19172 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Inactive:          24640 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active(anon):      10308 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Inactive(anon):       28 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active(file):       8864 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Inactive(file):    24612 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Unevictable:           0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Mlocked:               0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapTotal:             0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapFree:              0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Dirty:               144 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Writeback:             0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;AnonPages:         10164 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Mapped:            31032 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Shmem:               104 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Slab:               8868 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SReclaimable:       1956 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SUnreclaim:         6912 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;KernelStack:         600 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;PageTables:          568 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;NFS_Unstable:          0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Bounce:                0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;WritebackTmp:          0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;CommitLimit:      382156 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Committed_AS:     134776 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocTotal:     262144 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocUsed:       18936 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocChunk:     239660 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;DirectMap4k:       40020 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;DirectMap4M:      737280 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;root@usbharddisk-lht:/home/release/test_app#  gst-launch-0.10 filesrc location=./Jeans.mp4 ! qtdemux name=demux demux.video_00 ! queue ! vaapidecode ! vaapisink demux.audio_00 ! queue ! faad ! alsasink device=plug:hdmi&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PLAYING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;New clock: GstAudioSinkClock&lt;P&gt;&amp;nbsp;&lt;/P&gt;^CCaught interrupt -- handling interrupt.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Interrupt: Stopping pipeline ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Execution ended after 1752461761 ns.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to READY ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]number of reference frames exceeds max (probably corrupt input), discarding one&lt;P&gt;&amp;nbsp;&lt;/P&gt;    Last message repeated 19 times&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]get_buffer() failed (-1 1 2 (nil))&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]decode_slice_header error&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]mmco: unref short failure&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to NULL ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Freeing pipeline ...&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@usbharddisk-lht:/home/release/test_app#  cat /proc/meminfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocTotal:     262144 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocUsed:       71704 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocChunk:     181512 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;root@usbharddisk-lht:/home/release/test_app#  gst-launch-0.10 filesrc location=./Jeans.mp4 ! qtdemux name=demux demux.video_00 ! queue ! vaapidecode ! vaapisink demux.audio_00 ! queue ! faad ! alsasink device=plug:hdmi&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PLAYING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;New clock: GstAudioSinkClock&lt;P&gt;&amp;nbsp;&lt;/P&gt;^CCaught interrupt -- handling interrupt.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Interrupt: Stopping pipeline ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Execution ended after 751977361 ns.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to READY ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]number of reference frames exceeds max (probably corrupt input), discarding one&lt;P&gt;&amp;nbsp;&lt;/P&gt;    Last message repeated 19 times&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]get_buffer() failed (-1 1 2 (nil))&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]decode_slice_header error&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]mmco: unref short failure&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to NULL ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Freeing pipeline ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;root@usbharddisk-lht:/home/release/test_app#  cat /proc/meminfo&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemTotal:         764316 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemFree:          545680 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Buffers:            5556 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Cached:            43692 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapCached:            0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active:            27664 kB&lt;P&gt;XXXWHITESPACEXX...&lt;/P&gt;</description>
    <pubDate>Fri, 07 Oct 2011 13:57:31 GMT</pubDate>
    <dc:creator>TScar1</dc:creator>
    <dc:date>2011-10-07T13:57:31Z</dc:date>
    <item>
      <title>EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248272#M2357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on ATOM z530 +us15W chipset with Emgd enabled.I am succesfully ported EMGD 1.6 with debian and working well for dual sdvo and lvds display. when i tried to play some local video files using gstreamer its succefully plays..Then i have integrated splitted desktop vaapi library and trying to stream 720 p and 1080p. During this i have following  issues. can anyone please hellp me for solving the problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. streaming 720p hangs after 5-10 mins .&lt;/P&gt;&lt;P&gt;2. streaming 1080p hangs before 1 mins&lt;/P&gt;&lt;P&gt;3.If streaming hangs and restarted using "ctrl+c" i am seeing a memory leak of &amp;lt;40Mb virtual memory(vmalloc).&lt;/P&gt;&lt;P&gt;4. when i am trying local playback and closing using "ctl+c" inbetween i can recreate issue 3. This will happen only once in 10 times or so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one more question regarding memory allocation. is it possible to use static virtual memory instead of dynamic memory allocation every time? if possible how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:I am using vaapi from spliieted desktop and emgd1.6 with debian.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i will get a support.I am in a deliverble stage of my project and i am having really bad time with issue.Please help me ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards  and Thanks&lt;/P&gt;&lt;P&gt;Thomas Scariah&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2011 19:59:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248272#M2357</guid>
      <dc:creator>TScar1</dc:creator>
      <dc:date>2011-10-04T19:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248273#M2358</link>
      <description>&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone at your company have an Intel Premier Support Account (we call it Quad internally)?  The is the best way to get support from us.  The EDC forum is a "best effort" type system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the reason you are using such an older version of EMGD because of support for an older kernel/X version?  Is there a way to try at least 1.8 version now shipping?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Splitted Desktop sometimes provides VA API libraries beyond the recommneded ones for a particular driver.  I am thinking that for 1.6 you may need to use a version of VA API earlier (like .29) than the latest one (.31 or later) but the release notes with the EMGD driver should talk about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the VA API is crashing, it would not surprise me that memory allocations get left open- 40MB sounds like decode buffers that would not be closed properly if the driver panics.  After a crash like that, a reboot is always a good idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What specific feature are you trying to use to "stream".  There are some interfaces that are not supported and if you are trying to use those, it might explain your issues (long shot as they should fail immediately).  I';ve been very successful taking video from ethernet from an E600 encoding video to another E600 decoding it to the screen.  Here is the command line we use to do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TX to other&lt;/P&gt;&lt;P&gt;gst-launch v4l2src ! videorate ! ffmpegcolorspace ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! MixVideoEncoder encode-format=video/mpeg profile=2 rate-control=CBR bit-rate=15000000 need-display=0 ! queue ! tcpclientsink host=192.168.0.108 port=5000 protocol=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;TX to Self&lt;P&gt;gst-launch v4l2src ! videorate ! ffmpegcolorspace ! 'video/x-raw-yuv,width=640,height=480,framerate=30/1' ! MixVideoEncoder encode-format=video/mpeg profile=2 rate-control=CBR bit-rate=15000000 need-display=0 ! queue ! tcpclientsink host=192.168.0.109 port=5000 protocol=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receive from other&lt;/P&gt;&lt;P&gt;gst-launch tcpserversrc host=192.168.0.109 port=5000 protocol=1 ! MixVideoDecoder ! MixVideoSink&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously your IP Addresses and port addresses would be different- we hard code them in a stand-alone demo fashion...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2011 00:48:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248273#M2358</guid>
      <dc:creator>Kirk_B_Intel</dc:creator>
      <dc:date>2011-10-05T00:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248274#M2359</link>
      <description>&lt;P&gt;Hi Kirk/All,&lt;/P&gt;&lt;P&gt;Thanks for your immediate reply. I am attaching error log from emgd with debug enabled..&lt;/P&gt;&lt;P&gt; I am using ubuntu natty with emgd 1.6 and libva0.31 ,libav 0.6.2 &amp;amp; vaapi 0.2.5&lt;/P&gt;&lt;P&gt;The sender is encoding video to h264 format(DM6467) and streaming.The receiver is decoding the frames using US15W hardware decoder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested the stream by decoding/playing using a standard PC+windows+vlc player and standard PC+ubuntu+gstreamer+ffdec_h264, and i am able to see the video and the setup is working for more than 6 hours On the Intel ATOM+ubuntu+gstremer+vaapi i am able to play the video but the system crashes after sometime(after 20min) with the below message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[h264 @ 0x99d0c00]number of reference frames exceeds max (probably corrupt input), discarding one&lt;/P&gt;&lt;P&gt;    Last message repeated 16 times&lt;/P&gt;&lt;P&gt;[h264 @ 0x99d0c00]get_buffer() failed (-1 1 2 (nil))&lt;/P&gt;&lt;P&gt;[h264 @ 0x99d0c00]decode_slice_header error&lt;/P&gt;&lt;P&gt;[h264 @ 0x99d0c00]mmco: unref short failure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i restart gstreamer pilepline(without rebooting system) it works for some time and again crashes i also displays the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the Intel ATOM+ubuntu+gstremer+vaapi system is working for some thim it cannot be encoder-decoder incompatiability can you tell where cound be the problem and where should i check for the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;command on Intel ATOM+ubuntu+gstremer+vaapi for playing the stream gst-launch-0.10 gstrtpbin udpsrc port=5434 ! "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)428028, sprop-parameter-sets=(string)\"Z0KAKPQCgC2IAA&lt;A&gt;\\=\\=\\,aN48gAA\\=\&lt;/A&gt;", payload=(int)96" ! rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! "video/x-h264, framerate=(fraction)25/1, width=(int)1280, height=(int)720" !  vaapidecode ! vaapisink sync=false async=false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Thanks&lt;/P&gt;&lt;P&gt;Thomas Scariah&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2011 13:17:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248274#M2359</guid>
      <dc:creator>TScar1</dc:creator>
      <dc:date>2011-10-05T13:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248275#M2360</link>
      <description>&lt;P&gt;OK, that makes a bit more sense.  What is happening is that the decode is running out of memory in the middle of the decode process.  When that happens, Linux bails out on the driver.  You could likely correct this by making sure the graphics aperature setting in your bios sets it to the maximum (or at least 256MB) to allow the driver to allocate enough memory to the graphics.  You may also be running out of free runtime memory that may require you to add more ram to the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The out of memory failure is not handled very elegantly, but much of that is out of our control.  Video decode, especially of high bit rate content done with less than efficient encoder is a very high memory use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps. &lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2011 23:13:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248275#M2360</guid>
      <dc:creator>Kirk_B_Intel</dc:creator>
      <dc:date>2011-10-05T23:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248276#M2361</link>
      <description>&lt;P&gt;Hi kirk,&lt;/P&gt;&lt;P&gt;I have ported 1.8 EMGD and checked the same.The issue still remains.&lt;/P&gt;&lt;P&gt;My aperture size setting is 256MB and RAM size is 1GB.Instead of streaming i tried playback and closed using ctrl+c. Sometime when closed using ctrl+c i am getting below error and if that error happens memory will get leaked(&amp;gt;40MB).&lt;/P&gt;&lt;P&gt;&lt;B&gt;[h264 @ 0xa104de0]number of reference frames exceeds max (probably corrupt input), discarding one&amp;nbsp;&lt;/B&gt;&lt;/P&gt;    Last message repeated 19 times&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]get_buffer() failed (-1 1 2 (nil))&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]decode_slice_header error&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the log where  i have done the testing. Actually i had a privilage user access but i lost the password and i am not able to recover it .&lt;/P&gt;&lt;P&gt;Below is the playback test I have done and teh memory info FYI..please note this is a playback test only ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@usbharddisk-lht:~#  cat /proc/meminfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemTotal:         764316 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemFree:          666224 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Buffers:            4712 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Cached:            28888 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapCached:            0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active:            19172 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Inactive:          24640 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active(anon):      10308 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Inactive(anon):       28 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active(file):       8864 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Inactive(file):    24612 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Unevictable:           0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Mlocked:               0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapTotal:             0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapFree:              0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Dirty:               144 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Writeback:             0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;AnonPages:         10164 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Mapped:            31032 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Shmem:               104 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Slab:               8868 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SReclaimable:       1956 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SUnreclaim:         6912 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;KernelStack:         600 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;PageTables:          568 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;NFS_Unstable:          0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Bounce:                0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;WritebackTmp:          0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;CommitLimit:      382156 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Committed_AS:     134776 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocTotal:     262144 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocUsed:       18936 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocChunk:     239660 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;DirectMap4k:       40020 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;DirectMap4M:      737280 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;root@usbharddisk-lht:/home/release/test_app#  gst-launch-0.10 filesrc location=./Jeans.mp4 ! qtdemux name=demux demux.video_00 ! queue ! vaapidecode ! vaapisink demux.audio_00 ! queue ! faad ! alsasink device=plug:hdmi&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PLAYING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;New clock: GstAudioSinkClock&lt;P&gt;&amp;nbsp;&lt;/P&gt;^CCaught interrupt -- handling interrupt.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Interrupt: Stopping pipeline ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Execution ended after 1752461761 ns.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to READY ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]number of reference frames exceeds max (probably corrupt input), discarding one&lt;P&gt;&amp;nbsp;&lt;/P&gt;    Last message repeated 19 times&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]get_buffer() failed (-1 1 2 (nil))&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]decode_slice_header error&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0x95aee30]mmco: unref short failure&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to NULL ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Freeing pipeline ...&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@usbharddisk-lht:/home/release/test_app#  cat /proc/meminfo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocTotal:     262144 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocUsed:       71704 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;VmallocChunk:     181512 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;root@usbharddisk-lht:/home/release/test_app#  gst-launch-0.10 filesrc location=./Jeans.mp4 ! qtdemux name=demux demux.video_00 ! queue ! vaapidecode ! vaapisink demux.audio_00 ! queue ! faad ! alsasink device=plug:hdmi&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: libva version 0.32.0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_getDriverName() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: Trying to open /usr/lib/dri/emgd_drv_video.so&lt;P&gt;&amp;nbsp;&lt;/P&gt;Intel(R) Embedded Media and Graphics Driver 1.8 Build 2032&lt;P&gt;&amp;nbsp;&lt;/P&gt;Using XCB based dispatch table.&lt;P&gt;&amp;nbsp;&lt;/P&gt;libva: va_openDriver() returns 0&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Pipeline is PREROLLED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PLAYING ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;New clock: GstAudioSinkClock&lt;P&gt;&amp;nbsp;&lt;/P&gt;^CCaught interrupt -- handling interrupt.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Interrupt: Stopping pipeline ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Execution ended after 751977361 ns.&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to PAUSED ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to READY ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]number of reference frames exceeds max (probably corrupt input), discarding one&lt;P&gt;&amp;nbsp;&lt;/P&gt;    Last message repeated 19 times&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]get_buffer() failed (-1 1 2 (nil))&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]decode_slice_header error&lt;P&gt;&amp;nbsp;&lt;/P&gt;[h264 @ 0xa104de0]mmco: unref short failure&lt;P&gt;&amp;nbsp;&lt;/P&gt;Setting pipeline to NULL ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;Freeing pipeline ...&lt;P&gt;&amp;nbsp;&lt;/P&gt;root@usbharddisk-lht:/home/release/test_app#  cat /proc/meminfo&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemTotal:         764316 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;MemFree:          545680 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Buffers:            5556 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Cached:            43692 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;SwapCached:            0 kB&lt;P&gt;&amp;nbsp;&lt;/P&gt;Active:            27664 kB&lt;P&gt;XXXWHITESPACEXX...&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2011 13:57:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248276#M2361</guid>
      <dc:creator>TScar1</dc:creator>
      <dc:date>2011-10-07T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248277#M2362</link>
      <description>&lt;P&gt;Hi Krik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am happy to say that issue is been solved by increasing the "buffer-size" property of "udp-src" element in gstreamer ..So I am able to stream 1080p and 720p smoothly . But still, if process is not closed smoothly we are ending up in memory leak .. I don't know how to solve this .. If you can help this it's very helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Thomas Scariah&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2011 13:45:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248277#M2362</guid>
      <dc:creator>TScar1</dc:creator>
      <dc:date>2011-10-17T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248278#M2363</link>
      <description>&lt;P&gt;That is excellent news.  So basically, Gstreamer was overflowing one of its buffers, causing a panic, and making the kernal shut it down.  Video decode takes a LOT of memory to do HD at high framerates as it is a lot of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that the error then memory leak is because Gstreamer has had us allocate an internal buffer for the decode when it blows up and we do not know they do not need it anymore.  I wish there was a way to detect if a framework above the driver could know that it has failed, but unfortunately there is no Linux or Gstreamer mechnaism to do that.  Maybe the open source community should lokk at the Gstreamer framework and beef up its overflow detection to prevent the failure from occring?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cannot just close out a buffer unless we are explicitly told to do so, thus the "memory leak" in this case.  From the driver perspective, it really is not a leak- it is a valid allocated video buffer that is open because we were told to open it, and nver told to close it.  I believe this is actually one of those times a Linux reboot is required to recover fully from such a situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.  Kirk&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2011 18:58:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248278#M2363</guid>
      <dc:creator>Kirk_B_Intel</dc:creator>
      <dc:date>2011-10-17T18:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248279#M2364</link>
      <description>&lt;P&gt;I think I'm seeing the same memory leak.&lt;/P&gt;&lt;P&gt;On my system with EMGD 1.10 I've verified that gmm_unmap isn't being called for the following mapping when the X server is killed:&lt;/P&gt;&lt;P&gt;pvr/services4/3rdparty/emgd_displayclass/emgd_dc.c line 2210.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears that it is supposed to be unmapped on line 1978 of the same file but emgddc_free_a_devinfo doesn't get called.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 22:46:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248279#M2364</guid>
      <dc:creator>GMcCo1</dc:creator>
      <dc:date>2012-01-04T22:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248280#M2365</link>
      <description>&lt;P&gt;Yes, if you are doing video decode, and kill X in the middle of the decode, then start X again and repeat, you WILL see a memory decrease becuase of a "leak".  The issue is out of our hands (and not really a true leak) because of the way video was architected by theLinux community as an add-on- it is sort of a feature right now.  The kernel does not know it needs to clean-up video memory when shutting down X and the video stuff has no way to know about its memory once X is killed and restarted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hate to say it, but you either need to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WAIT for decode to finish BEFORE killing X, or&lt;/P&gt;&lt;P&gt;-You DO need to reboot to recover memory if you shutdown X in the middle of a decode (and likely encode also).  We have found no way to prevent this issue from happening because of the way Linux works currently, or&lt;/P&gt;&lt;P&gt;-Don't kill X, it should not be necessary EVER during normal operation of a system.  If someone is using that use case as a test, It is a silly one, because it does not reflect a normal use case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2012 23:14:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248280#M2365</guid>
      <dc:creator>Kirk_B_Intel</dc:creator>
      <dc:date>2012-01-05T23:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248281#M2366</link>
      <description>&lt;P&gt;I'm not doing video decoding and I'm still seeing a massive leak. Just changing the runlevel back and forth between 5 and 3 will leak my system to death on Timesys Fedora Remix. I've made a patch that fixes part of the problem, I'm working on the rest now. I'm really amazed at the poor quality of this driver. Some of the comments in the kernel portion of the code are ridiculous and give me no confidence in this driver or anything to do with it (it reflects VERY badly on Intel's corporate image). FFS do you even try starting and stopping your X server to see if your kernel driver leaks memory !?! There is even a free in the code that is commented out and without it the kernel module leaks!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2012 00:06:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248281#M2366</guid>
      <dc:creator>GMcCo1</dc:creator>
      <dc:date>2012-01-06T00:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248282#M2367</link>
      <description>&lt;P&gt;Many hours and liters of diet pepsi later I've made a patch that fixes the leaks I've been referring to. I haven't finished because there might still be more leaks but at least I've found several HUGE ones. Feedback is appreciated as I've created this patch hastily with nearly no prior knowledge of the workings of this driver. I still believe there is some kind of emgd shutdown race condition plauging my production systems. It should be easier to track down now that the driver isn't leaking like a sieve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patch written and tested on NANO-8045 w/ Timesys Fedora Remix 14 and EMGD 1.10.0 Build 2209.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2012 18:06:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248282#M2367</guid>
      <dc:creator>GMcCo1</dc:creator>
      <dc:date>2012-01-06T18:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: EMGD . memory leak and streaming issue</title>
      <link>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248283#M2368</link>
      <description>&lt;P&gt;it's very help full. if you like &lt;A href="https://jazzhealthy.com/diet-lite-reviews" target="_self" alt="https://jazzhealthy.com/diet-lite-reviews"&gt;Diet Lite Please check it&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Thank &lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:19:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Embedded-Intel-Atom-Processors/EMGD-memory-leak-and-streaming-issue/m-p/248283#M2368</guid>
      <dc:creator>LHale3</dc:creator>
      <dc:date>2020-04-30T19:19:06Z</dc:date>
    </item>
  </channel>
</rss>

