Quantcast
Channel: Intel® Software - Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1489

Access violation from IPP Thread - Kindly Help(Urgent!!!!!)

$
0
0
  • We had written a dynamically linked library (DLL) for JPG encoding using Intel IPP libraries(IPP V 7.0 - ippj-7.0.dll).
  • We made use of the classes in UIC sample code (UIC JPEGEncoder) for JPG encoding.
  • In our scenario we had used the thread count for IPP and openMP as default (Which will be equals to the number of processors).
  • An access violation has occurred in the application which loaded the JPEG encode library.
  • On analyzing the crash dump generated, we came to know that the exception has occurred from the exit of a thread.
  •  The call stack for the exception caused thread is shown below.

 1ac3fa94 77af7f02 kernel32!UnhandledExceptionFilter+0x127

1ac3fa9c 77a9e324 ntdll!__RtlUserThreadStart+0x62

1ac3fab0 77a9e1b4 ntdll!_EH4_CallFilterFunc+0x12

1ac3fad8 77ac7199 ntdll!_except_handler4+0x8e

1ac3fafc 77ac716b ntdll!ExecuteHandler2+0x26

1ac3fb20 77a9f98f ntdll!ExecuteHandler+0x24

1ac3fbac 77ac6ff7 ntdll!RtlDispatchException+0x127

1ac3fbac 05ff4513 ntdll!KiUserExceptionDispatcher+0xf

WARNING: Stack unwind information not available. Following frames may be wrong.

1ac3fedc 77aaf684 ippj_7_0!ippiEncodeHuffmanRawTableInit_JPEG_8u+0x11523

1ac3ff74 77aaf632 ntdll!LdrShutdownThread+0x35

1ac3ff84 76f0ed73 ntdll!RtlExitUserThread+0x2a

1ac3ff94 77ae377b kernel32!BaseThreadInitThunk+0x15

1ac3ffd4 77ae374e ntdll!__RtlUserThreadStart+0x70

1ac3ffec 00000000 ntdll!_RtlUserThreadStart+0x1b

  • This library is dynamically loaded in our application (Using LoadLibrary API) and will be unloaded after use.
  • When LoadLibrary API of JPEG encode library is called, 4 threads (2 IPP and 2 OpenMP) are spawned and if FreeLibrary is called, these threads are exited.
  • But in issue occurred scenario, FreeLibary is not invoked (Threads are still alive). That is exception is thrown during the normal encoding operation.
  • We assume that the exception has occurred from one of IPP spawned thread, since the function ippj_7_0!ippiEncodeHuffmanRawTableInit_JPEG_8u( as shown in the above call stack ) had called from this thread.
  • We also ensured that the function ippiEncodeHuffmanRawTableInit_JPEG_8u is not get invoked during the normal execution flow for JPEG encoding from our JPEG encode library.

 So could you please let us know the scenario in which the function ippiEncodeHuffmanRawTableInit_JPEG_8u will be invoked?  And also please inform the possible causes of such a crash on IPP thread exit.


Viewing all articles
Browse latest Browse all 1489


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>