<?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 H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771249#M723</link>
    <description>This problem usually occures due to data losses in stream, propably some additional checks will help you:&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Gotoumc_h264_frame.cpp and add ippSet_8u function after memory allocation on line 349 to fill memory with invalid values&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]        // allocate buffer
        size_t nMemSize = GetFrameDataSize(m_lumaSize);

        m_pParsedFrameDataNew = m_pObjHeap-&amp;gt;Allocate((Ipp8u*)0, (Ipp32s)nMemSize);
        ippsSet_8u(0xFF, (Ipp8u*)m_pParsedFrameDataNew, (Ipp32u)nMemSize);[/cpp]&lt;/PRE&gt; Then gotoumc_h264_segment_decoder_deblocking.cpp and add slice id checks on lines 79 and 144&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]    // set initial macroblock coordinates
    m_CurMB_X = ((m_CurMBAddr &amp;gt;&amp;gt; (Ipp32s) m_isMBAFF) % mb_width);
    m_CurMB_Y = ((m_CurMBAddr &amp;gt;&amp;gt; (Ipp32s) m_isMBAFF) / mb_width) - MBYAdjust;
    m_CurMB_Y &amp;lt;&amp;lt;= (Ipp32s) m_isMBAFF;

    // check mbs info for possible data losses
    if(m_gmbinfo-&amp;gt;mbs[m_CurMBAddr].slice_id &amp;lt; 0)
        return;[/cpp]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]void H264SegmentDecoder::DeblockMacroblockMSlice()
{
    // check mbs info for possible data losses
    if(m_gmbinfo-&amp;gt;mbs[m_CurMBAddr].slice_id &amp;lt; 0)
        return;[/cpp]&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 14 Sep 2011 09:09:27 GMT</pubDate>
    <dc:creator>Pavel_V_Intel</dc:creator>
    <dc:date>2011-09-14T09:09:27Z</dc:date>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771242#M716</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;H.264 decoder is crashing with the following crash log from Java.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It seems that something is wrong with H264SegmentDecoder InitDeblockingOnceEX. But, all I can find in the native code is InitDeblockingOnce.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The crash comes and goes. I would like to give more detail but I could not predict the crash. Any suggestion is welcome.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x204306] _ZN3UMC18H264SegmentDecoder18InitDeblockingOnceEv+0x196&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x204d26] _ZN3UMC18H264SegmentDecoder14DeblockSegmentEii+0x66&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x2977d1] _ZN3UMC31H264SegmentDecoderMultiThreaded18DeblockSegmentTaskEiRi+0x5d&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x29741f] _ZN3UMC31H264SegmentDecoderMultiThreaded14ProcessSegmentEv+0x107&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x2a6dc5] _ZN3UMC12TaskSupplier11RunDecodingEbPPNS_16H264DecoderFrameE+0x59&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x17a961] _ZN3UMC16H264VideoDecoder16GetFrameInternalEPNS_9MediaDataES2_+0x95&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x17aa80] _ZN3UMC16H264VideoDecoder8GetFrameEPNS_9MediaDataES2_+0xe8&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x14abf2] _ZN11H264Decoder16decodeVideoFrameEPhi+0x72&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x14b060] _ZN14H264Transcoder9TranscodeEPhiPN7IJGJPEG10_tJpegDataE+0x20&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;C [libtsimaging.so+0x1498d4] Java_com_srt_tsmedia_imaging_TranscoderUtils_h264Frame2Jpeg+0x118&lt;/DIV&gt;C [libtsimaging.so+0x204306] _ZN3UMC18H264SegmentDecoder18InitDeblockingOnceEv+0x196C [libtsimaging.so+0x204d26] _ZN3UMC18H264SegmentDecoder14DeblockSegmentEii+0x66C [libtsimaging.so+0x2977d1] _ZN3UMC31H264SegmentDecoderMultiThreaded18DeblockSegmentTaskEiRi+0x5dC [libtsimaging.so+0x29741f] _ZN3UMC31H264SegmentDecoderMultiThreaded14ProcessSegmentEv+0x107C [libtsimaging.so+0x2a6dc5] _ZN3UMC12TaskSupplier11RunDecodingEbPPNS_16H264DecoderFrameE+0x59C [libtsimaging.so+0x17a961] _ZN3UMC16H264VideoDecoder16GetFrameInternalEPNS_9MediaDataES2_+0x95C [libtsimaging.so+0x17aa80] _ZN3UMC16H264VideoDecoder8GetFrameEPNS_9MediaDataES2_+0xe8C [libtsimaging.so+0x14abf2] _ZN11H264Decoder16decodeVideoFrameEPhi+0x72C [libtsimaging.so+0x14b060] _ZN14H264Transcoder9TranscodeEPhiPN7IJGJPEG10_tJpegDataE+0x20C [libtsimaging.so+0x1498d4] Java_com_srt_tsmedia_imaging_TranscoderUtils_h264Frame2Jpeg+0x118&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I had provided the full log but not sure of it usefulness.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;I found a similar post but no solution&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=84628"&gt;http://software.intel.com/en-us/forums/showthread.php?t=84628&lt;/A&gt;</description>
      <pubDate>Wed, 17 Aug 2011 01:46:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771242#M716</guid>
      <dc:creator>thompson_ng</dc:creator>
      <dc:date>2011-08-17T01:46:32Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771243#M717</link>
      <description>Hi Thompson.ng, &lt;BR /&gt;&lt;BR /&gt;As you see, we need test stream to reproduce the problem.&lt;BR /&gt;If possible, could you writeyour rawstream (the input of H264decoder-&amp;gt;Geframe())to a file so we can analyse the issue?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ying</description>
      <pubDate>Wed, 17 Aug 2011 08:55:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771243#M717</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2011-08-17T08:55:49Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771244#M718</link>
      <description>Hi Ying,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;It really take me some time to reproduce to crash and get the frames as it is a production live camera.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Attached are the raw frames + SDP from the camera that crashes the IPP H.264 decoder.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;But, please note that they does not always crashes the IPP H.264 decoder and that really make me hard to give you additional information.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Hope they crashes on your side.&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Sep 2011 13:17:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771244#M718</guid>
      <dc:creator>thompson_ng</dc:creator>
      <dc:date>2011-09-05T13:17:30Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771245#M719</link>
      <description>Hi Thompson, &lt;BR /&gt;&lt;BR /&gt;Thank you a lot. I will try the stream and let you know if result. &lt;BR /&gt;&lt;BR /&gt;For your information, there are some progress about H.264 decoder crahsed within the forum &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=84603&amp;amp;o=a&amp;amp;s=lr"&gt;http://software.intel.com/en-us/forums/showthread.php?t=84603&amp;amp;o=a&amp;amp;s=lr&lt;/A&gt;. &lt;BR /&gt;&lt;BR /&gt;where selea share their experiences. Theyget h.264 decoder crashedwith stream input also. The problem is &lt;BR /&gt;that asucessful call ofH264-&amp;gt;GetFrame() may produceoneframe, but there is still remain data in decode pipeline,discard remain datacause problem. So you may need take care of the buffer and the loop. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ying</description>
      <pubDate>Tue, 06 Sep 2011 04:00:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771245#M719</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2011-09-06T04:00:47Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771246#M720</link>
      <description>Hi Thompson, &lt;BR /&gt;&lt;BR /&gt;I have tried the frames you send to me. Here is some interesting pieces of news. &lt;BR /&gt;&lt;BR /&gt;1) IPP release a new version. and IPP sample can be get from &amp;lt;&amp;lt;&lt;A href="http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-code-samples/"&gt;http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-code-samples/&lt;/A&gt;&amp;gt;&amp;gt;.&lt;BR /&gt;&lt;BR /&gt;A h.264 decoder issuewas fixed there.Please upgrade it if possible. &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=82978"&gt;http://software.intel.com/en-us/forums/showthread.php?t=82978&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2)I getnews from another user who were working on h.264 decode with stream input beside ofSelea,almost similiar, the problem is not in h.264 decoder itself, but wrongly set the buffer pointerin their FIFO decoder pipeline when dealing with streaming input.&lt;BR /&gt;&lt;BR /&gt;3)The testframes you uploaded makemy testdoable. Thanks. But as the current UMC sample only accept file read/write, I combine all frames to&lt;A href="http://software.intel.com/file/38434"&gt; a file &lt;/A&gt;and try with simple_player.exe and umc_h264_decode with several model, debug/release, static/dynamic link/threading/no threading.Unlucky,i can't reproducethe crash.The streamsworkwithout any exception.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/file/38434"&gt;your original input&lt;/A&gt;works without problem in file format,so I guessthe problem should still bethe decoder pipeline logicor streaming buffer.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Ying H.</description>
      <pubDate>Thu, 08 Sep 2011 06:59:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771246#M720</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2011-09-08T06:59:52Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771247#M721</link>
      <description>Hi Ying,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks for the response.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Actually, I have more crash frames for you. This time round the frames are much smaller. 352x288 frames.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I am currently using IPP 7 update 3 and I have checked my version that theTableInitializer still exist in my umc file. Moreover, I am only using single thread for decoding.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;So, I got a feeling that my issue is slightly different?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Regarding upgrade to new version, do I need to purchase 7.0.5 in order for the new sample to work?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Or, can I use the new sample with 7.0.3?&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:49:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771247#M721</guid>
      <dc:creator>thompson_ng</dc:creator>
      <dc:date>2011-09-08T12:49:26Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771248#M722</link>
      <description>Hi thompson, 

 Thanks much. with the test file, It seems the problem can be reproduced under debug mode. We will look into detials and let you know if any update.  

In general, we recommend to use same library version + same sample version. As the problem is only related to sample code, so it should be ok using new sample with 7.0.3.

Regards,
Ying H.</description>
      <pubDate>Fri, 09 Sep 2011 08:20:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771248#M722</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2011-09-09T08:20:22Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771249#M723</link>
      <description>This problem usually occures due to data losses in stream, propably some additional checks will help you:&lt;DIV&gt;&lt;SPAN style="font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Gotoumc_h264_frame.cpp and add ippSet_8u function after memory allocation on line 349 to fill memory with invalid values&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]        // allocate buffer
        size_t nMemSize = GetFrameDataSize(m_lumaSize);

        m_pParsedFrameDataNew = m_pObjHeap-&amp;gt;Allocate((Ipp8u*)0, (Ipp32s)nMemSize);
        ippsSet_8u(0xFF, (Ipp8u*)m_pParsedFrameDataNew, (Ipp32u)nMemSize);[/cpp]&lt;/PRE&gt; Then gotoumc_h264_segment_decoder_deblocking.cpp and add slice id checks on lines 79 and 144&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]    // set initial macroblock coordinates
    m_CurMB_X = ((m_CurMBAddr &amp;gt;&amp;gt; (Ipp32s) m_isMBAFF) % mb_width);
    m_CurMB_Y = ((m_CurMBAddr &amp;gt;&amp;gt; (Ipp32s) m_isMBAFF) / mb_width) - MBYAdjust;
    m_CurMB_Y &amp;lt;&amp;lt;= (Ipp32s) m_isMBAFF;

    // check mbs info for possible data losses
    if(m_gmbinfo-&amp;gt;mbs[m_CurMBAddr].slice_id &amp;lt; 0)
        return;[/cpp]&lt;/PRE&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;[cpp]void H264SegmentDecoder::DeblockMacroblockMSlice()
{
    // check mbs info for possible data losses
    if(m_gmbinfo-&amp;gt;mbs[m_CurMBAddr].slice_id &amp;lt; 0)
        return;[/cpp]&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Sep 2011 09:09:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771249#M723</guid>
      <dc:creator>Pavel_V_Intel</dc:creator>
      <dc:date>2011-09-14T09:09:27Z</dc:date>
    </item>
    <item>
      <title>H.264 Decoder H264SegmentDecoder InitDeblockingOnceEv Crash</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771250#M724</link>
      <description>Thanks Pavel,the additional checks for proper data initialization before deblocking in order to allow codec to skip deblocking of missing macroblocks have been added to the latest IPP sample version 7update 6 and update 7. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ying &lt;BR /&gt;</description>
      <pubDate>Mon, 14 May 2012 03:06:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/H-264-Decoder-H264SegmentDecoder-InitDeblockingOnceEv-Crash/m-p/771250#M724</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2012-05-14T03:06:27Z</dc:date>
    </item>
  </channel>
</rss>

