<?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 Hello, thank you for your in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176365#M27072</link>
    <description>&lt;PRE class="brush:cpp; class-name:dark;"&gt;Hello, thank you for your issue. Could you please send more comprehensive&amp;nbsp;code or explain in which cases you get this error? In this case I don't get same issue as you:

int main() {
	IppStatus status = ippStsNoErr;

	const int WIDTH   = 8;
	const int HEIGHT  = 8;
	const int nLevels = 5;

	int step;
	int specSize;
	int sizeBuffer;

	Ipp32f levels[nLevels] = { 0, 2, 4, 6, 13 };
	Ipp32f* pLevels        = &amp;amp;levels[0];

	IppiHistogramSpec* pSpec;

	Ipp8u*             pBuffer;

	Ipp32f*pSrc = ippiMalloc_32f_C1(WIDTH, HEIGHT, &amp;amp;step);
	Ipp32u pHist[nLevels - 1];

	IppiSize roiSize = { WIDTH, HEIGHT };

	status = ippiHistogramGetBufferSize(IppDataType::ipp32f, roiSize, &amp;amp;nLevels, 1, 0, &amp;amp;specSize, &amp;amp;sizeBuffer);
	print_status("ippiHistogramGetBufferSize", status);

	pSpec   = (IppiHistogramSpec*)ippsMalloc_8u(specSize);
	pBuffer = (byte*)ippsMalloc_8u(sizeBuffer);

	status = ippiHistogramInit(IppDataType::ipp32f, (const Ipp32f**)&amp;amp;pLevels, (int*)&amp;amp;nLevels, 1, pSpec);
	print_status("ippiHistogramInit", status);

	status = ippiHistogramGetLevels(pSpec, &amp;amp;pLevels);
	print_status("ippiHistogramGetLevels", status);

	status = ippiHistogram_32f_C1R(pSrc, step, roiSize, pHist, pSpec, pBuffer);
	print_status("ippiHistogram_32f_C1R", status);

	return 0;
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 11:54:14 GMT</pubDate>
    <dc:creator>Ilya_O_Intel</dc:creator>
    <dc:date>2019-08-26T11:54:14Z</dc:date>
    <item>
      <title>AccessViolation exception in using ippiHistogram_32f_C1R</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176362#M27069</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are getting AccessViolationException in a call to&amp;nbsp;ippiHistogram_32f_C1R every now and then, and it leads to a crash in our application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're using Ipp 2019 Update 1, and here is the code (the line in bold leads to AccessViolationException).&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In HandleReturnValue, we check if the return value is different than 0, and if so we throw the proper exception.&lt;/LI&gt;&lt;LI&gt;img.Step is generated by a call to&amp;nbsp;ippiMalloc_32f_C1.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Could you point us to where the error might be?&lt;/P&gt;&lt;P&gt;public static uint[] Histogram(VMImage img, int band, float[] levels)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;short ippStatus = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int[] nLevels = { levels.Length };&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;int sizeHistObj, sizeBuffer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;IppiHistogramSpec* histSpec = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;byte* histBuffer = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;uint[] hist = new uint[levels.Length - 1];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;fixed (uint* pHist = &amp;amp;hist[0])&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fixed (float* pLevels0 = &amp;amp;levels[0])&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;float*[] pLevels = { pLevels0 };&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;fixed (float** ppLevels = &amp;amp;pLevels[0])&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Get sizes for spec and buffer&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ippStatus = ippiHistogramGetBufferSize(IppDataType.ipp32f, img.GetRoiSize(), nLevels, 1/*nChan*/, 0/*user step*/, &amp;amp;sizeHistObj, &amp;amp;sizeBuffer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;HandleReturnValue(ippStatus);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Allocation of buffers&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;histSpec = (IppiHistogramSpec*)ippsMalloc_8u(sizeHistObj);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;histBuffer = (byte*)ippsMalloc_8u(sizeBuffer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Initialize spec&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ippStatus = ippiHistogramInit(IppDataType.ipp32f, ppLevels, nLevels, 1/*nChan*/, histSpec);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;HandleReturnValue(ippStatus);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// Calculate histogram&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;nbsp;ippStatus = ippiHistogram_32f_C1R((float*)img.GetRoiPointer(band), img.Step, img.GetRoiSize(), pHist, histSpec, histBuffer);&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;HandleReturnValue(ippStatus);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;// CleanUp&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (histSpec != null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ippsFree(histSpec);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (histBuffer != null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ippsFree(histBuffer);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;return hist;&lt;BR /&gt;}&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 13:39:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176362#M27069</guid>
      <dc:creator>Emami__Sayed_Masih</dc:creator>
      <dc:date>2019-07-03T13:39:52Z</dc:date>
    </item>
    <item>
      <title>here is an unknown issue with</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176363#M27070</link>
      <description>&lt;P&gt;here is an unknown issue with IPP v.2019.&amp;nbsp; Do you see if the problem happens with some specific input images or it happens anytime?&amp;nbsp;&lt;/P&gt;&lt;P&gt;at the very first glance, everything looks as expected. We need to have a comprehensive example to build and run on our side.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 04:29:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176363#M27070</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-07-04T04:29:11Z</dc:date>
    </item>
    <item>
      <title>At the time of focusing on</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176364#M27071</link>
      <description>&lt;P&gt;At the time of focusing on intel integrated performance primitives, I was facing some errors in my browser. The issue was regarding confirming form resubmission and again the issue was coming at the turning off of the confirmation. I tried to overcome the error. And I found that there was a very unique way to overcome this. If anybody faces the same issue of &lt;A href="https://browsertechnicalsupportnumbers.com/blog/disable-confirm-form-resubmission-popup-chrome/"&gt;confirm&amp;nbsp;form resubmission&lt;/A&gt; error in their browser, then he/she can browse to get a proper and easy&amp;nbsp;solution.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 07:40:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176364#M27071</guid>
      <dc:creator>Stokes__John</dc:creator>
      <dc:date>2019-08-21T07:40:18Z</dc:date>
    </item>
    <item>
      <title>Hello, thank you for your</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176365#M27072</link>
      <description>&lt;PRE class="brush:cpp; class-name:dark;"&gt;Hello, thank you for your issue. Could you please send more comprehensive&amp;nbsp;code or explain in which cases you get this error? In this case I don't get same issue as you:

int main() {
	IppStatus status = ippStsNoErr;

	const int WIDTH   = 8;
	const int HEIGHT  = 8;
	const int nLevels = 5;

	int step;
	int specSize;
	int sizeBuffer;

	Ipp32f levels[nLevels] = { 0, 2, 4, 6, 13 };
	Ipp32f* pLevels        = &amp;amp;levels[0];

	IppiHistogramSpec* pSpec;

	Ipp8u*             pBuffer;

	Ipp32f*pSrc = ippiMalloc_32f_C1(WIDTH, HEIGHT, &amp;amp;step);
	Ipp32u pHist[nLevels - 1];

	IppiSize roiSize = { WIDTH, HEIGHT };

	status = ippiHistogramGetBufferSize(IppDataType::ipp32f, roiSize, &amp;amp;nLevels, 1, 0, &amp;amp;specSize, &amp;amp;sizeBuffer);
	print_status("ippiHistogramGetBufferSize", status);

	pSpec   = (IppiHistogramSpec*)ippsMalloc_8u(specSize);
	pBuffer = (byte*)ippsMalloc_8u(sizeBuffer);

	status = ippiHistogramInit(IppDataType::ipp32f, (const Ipp32f**)&amp;amp;pLevels, (int*)&amp;amp;nLevels, 1, pSpec);
	print_status("ippiHistogramInit", status);

	status = ippiHistogramGetLevels(pSpec, &amp;amp;pLevels);
	print_status("ippiHistogramGetLevels", status);

	status = ippiHistogram_32f_C1R(pSrc, step, roiSize, pHist, pSpec, pBuffer);
	print_status("ippiHistogram_32f_C1R", status);

	return 0;
}&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 11:54:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/AccessViolation-exception-in-using-ippiHistogram-32f-C1R/m-p/1176365#M27072</guid>
      <dc:creator>Ilya_O_Intel</dc:creator>
      <dc:date>2019-08-26T11:54:14Z</dc:date>
    </item>
  </channel>
</rss>

