bytedeco / javacpp-presets

The missing Java distribution of native C++ libraries
Other
2.68k stars 744 forks source link

Loader hangs loading OpenBlas #1295

Open waicool20 opened 1 year ago

waicool20 commented 1 year ago

I'm having trouble loading opencv on windows, I have tested the same code on linux and it doesn't hang there. I am loading with the two lines below:

        System.setProperty("org.bytedeco.javacpp.logger.debug", "true")
        Loader.load(opencv_java::class.java)

This is the log and it gets stuck at openblas dll

Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Loader
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-locale-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-locale-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-string-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-string-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-stdio-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-stdio-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-math-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-math-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-heap-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-heap-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-runtime-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-runtime-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-convert-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-convert-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-environment-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-environment-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-time-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-time-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-filesystem-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-filesystem-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-utility-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-utility-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-multibyte-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-multibyte-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-conio-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-conio-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-private-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-private-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-crt-process-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-crt-process-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-console-l1-2-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-2-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-string-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-string-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-errorhandling-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-errorhandling-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-timezone-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-timezone-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-file-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-namedpipe-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-namedpipe-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-handle-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-handle-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-file-l2-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l2-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-heap-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-heap-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-libraryloader-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-libraryloader-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-synch-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-processthreads-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-processenvironment-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processenvironment-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-datetime-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-datetime-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-localization-l1-2-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-localization-l1-2-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-sysinfo-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-sysinfo-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-synch-l1-2-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-synch-l1-2-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-console-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-console-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-debug-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-debug-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-rtlsupport-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-rtlsupport-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-processthreads-l1-1-1.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-processthreads-l1-1-1.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-file-l1-2-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-file-l1-2-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-profile-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-profile-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-memory-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-memory-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-util-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-util-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/api-ms-win-core-interlocked-l1-1-0.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\api-ms-win-core-interlocked-l1-1-0.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/ucrtbase.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\ucrtbase.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/vcruntime140.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/vcruntime140_1.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcruntime140_1.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/msvcp140.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/msvcp140_1.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\msvcp140_1.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/concrt140.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\concrt140.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/vcomp140.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\vcomp140.dll
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/javacpp/1.5.8/ccba225d355d51c653b89585eb028cc16377c9ea/javacpp-1.5.8-windows-x86_64.jar!/org/bytedeco/javacpp/windows-x86_64/jnijavacpp.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\javacpp-1.5.8-windows-x86_64.jar\org\bytedeco\javacpp\windows-x86_64\jnijavacpp.dll
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.javacpp.Pointer
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Loading class org.bytedeco.javacpp.presets.javacpp
Debug: Loading class org.bytedeco.openblas.global.openblas_nolapack
Debug: Locking C:\Users\waicool20\.javacpp\cache before extracting
Debug: Extracting jar:file:/C:/Users/waicool20/.gradle/caches/modules-2/files-2.1/org.bytedeco/openblas/0.3.21-1.5.8/5a9207d0ded5c0df5ae6dcd394c240a5f40512a1/openblas-0.3.21-1.5.8-windows-x86_64.jar!/org/bytedeco/openblas/windows-x86_64/libopenblas.dll
Debug: Loading C:\Users\waicool20\.javacpp\cache\openblas-0.3.21-1.5.8-windows-x86_64.jar\org\bytedeco\openblas\windows-x86_64\libopenblas_nolapack.dll
waicool20 commented 1 year ago

Ok in this application I am loading other native libraries(DJL with Pytorch engine) first, and seems like if i load opencv first it will not hang. This seems fine but it means I won't be able to lazy load opencv presets.

Do you have any idea why it would hang if I loaded other native libs first?

saudet commented 1 year ago

As far as I know DJL still relies on the builds from LibTorch (@frankfliu?) and if that's still the case, then those binaries are linked statically with MKL, which might prevent other libraries such as OpenCV from using BLAS. Please use another build of PyTorch such as the ones from the presets: https://github.com/bytedeco/javacpp-presets/tree/master/pytorch Those ones will work fine with OpenCV.

waicool20 commented 1 year ago

Ok, well it seems the application works fine as long as I load OpenCV first before loading DJL, so I will use this workaround for Windows systems for now.