OpenCL operation failed (-1001 -> unknown error code) -> clGetPlatformIDs failed

275 views
Skip to first unread message

cc s2e

unread,
Feb 21, 2022, 4:40:20 AM2/21/22
to doubango-ai
Hello,

I have an error that appeared that I had never seen. I installed ALPR on a docker, and the analysis was working fine last week. This morning, I can't run a plate analysis. I checked my license which is correct (I had not touched my configuration file anyway).
You can find my config file in attachment.

*[COMPV INFO]: [CompVGpu] GPU enabled: true
*[COMPV INFO]: /!\ Code in file '/home/ultimate/ultimateBase/lib/source/ultimate_base_engine.cxx' in function 'init' starting at line #75: Not optimized for GPU -> GPGPU computing not enabled or deactivated
*[COMPV INFO]: [UltBaseOpenCL] Trying to load [libOpenCL.so]
*[COMPV INFO]: [UltBaseOpenCL] Loaded [libOpenCL.so], looksLikeValid: yes...
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateBase/lib/source/opencl/ultimate_base_opencl_utils.cxx"
line: "48"
message: [UltBaseOpenCLUtils] OpenCL operation failed (-1001 -> unknown error code) -> clGetPlatformIDs failed
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateBase/lib/source/opencl/ultimate_base_opencl_utils.cxx"
line: "106"
message: Operation Failed (COMPV_ERROR_CODE_E_UNKNOWN) ->
*[COMPV INFO]: [UltBaseOpenCL] Failed to hook functions using [libOpenCL.so] library
*[COMPV INFO]: [UltOcrEngine] Tensorflow version: 1.14.0
*[COMPV INFO]: [CompVSharedLib] Loaded shared lib: libultimatePluginOpenVINO.so
*[PLUGIN_OPENVINO INFO]: pluginOpenVinoInferenceEngine::init called
*[COMPV INFO]: /!\ Code in file '/home/ultimate/compv/base/compv_mem.cxx' in function 'CompVMemCopy_C' starting at line #985: Not optimized -> No SIMD implementation found. On ARM consider http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html
*[COMPV INFO]: [UltBaseEngine] UltBaseEngineReadSystemFile: fopen[0] returned null
device node not found
*[COMPV INFO]: [UltBaseEngine] fgets failed, round[0]
*[COMPV INFO]: [UltBaseEngine] [Activation][S] If you try to activate a license, you'll be fine
***[COMPV ERROR]: function: "updateLicenseInfo()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
line: "797"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Field [9]
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
line: "147"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) ->
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_public_engine.cxx"
line: "131"
message: [UltAlprSdkEngine] Failed to initialize the engine
****[ULTALPR_SDK FATAL]: function: "alpr()"
file: "/root/src/includes/MicroServiceAlpr.cpp"
line: "75"
message: Assertion failed!

Thank you for your help
configDoubango.txt

Mamadou DIOP

unread,
Feb 21, 2022, 6:11:37 AM2/21/22
to cc s2e, doubango-ai
Hi, 

Please attach full logs. I even don't know what's the OS. Needs logs without cuts.

Regards,



Sent from my Galaxy


-------- Original message --------
From: cc s2e <cc.s2...@gmail.com>
Date: 2/21/22 10:40 (GMT+01:00)
To: doubango-ai <douba...@googlegroups.com>
Subject: OpenCL operation failed (-1001 -> unknown error code) -> clGetPlatformIDs failed

Hello,

I have an error that appeared that I had never seen. I installed ALPR on a docker, and the analysis was working fine last week. This morning, I can't run a plate analysis. I checked my license which is correct (I had not touched my configuration file anyway).
You can find my config file in attachment.

*[COMPV INFO]: [CompVGpu] GPU enabled: true
*[COMPV INFO]: /!\ Code in file '/home/ultimate/ultimateBase/lib/source/ultimate_base_engine.cxx' in function 'init' starting at line #75: Not optimized for GPU -> GPGPU computing not enabled or deactivated
*[COMPV INFO]: [UltBaseOpenCL] Trying to load [libOpenCL.so]
*[COMPV INFO]: [UltBaseOpenCL] Loaded [libOpenCL.so], looksLikeValid: yes...
***[COMPV ERROR]: function: "init()"
"/home/ultimate/ultimateBase/lib/source/opencl/ultimate_base_opencl_utils.cxx"
line: "48"
message: [UltBaseOpenCLUtils] OpenCL operation failed (-1001 -> unknown error code) -> clGetPlatformIDs failed
***[COMPV ERROR]: function: "init()"
"/home/ultimate/ultimateBase/lib/source/opencl/ultimate_base_opencl_utils.cxx"
line: "106"
message: Operation Failed (COMPV_ERROR_CODE_E_UNKNOWN) ->
*[COMPV INFO]: [UltBaseOpenCL] Failed to hook functions using [libOpenCL.so] library
*[COMPV INFO]: [UltOcrEngine] Tensorflow version: 1.14.0
*[COMPV INFO]: [CompVSharedLib] Loaded shared lib: libultimatePluginOpenVINO.so
*[PLUGIN_OPENVINO INFO]: pluginOpenVinoInferenceEngine::init called
*[COMPV INFO]: /!\ Code in file '/home/ultimate/compv/base/compv_mem.cxx' in function 'CompVMemCopy_C' starting at line #985: Not optimized -> No SIMD implementation found. On ARM consider http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html
*[COMPV INFO]: [UltBaseEngine] UltBaseEngineReadSystem"updateLicenseInfo()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
line: "797"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Field [9]
***[COMPV ERROR]: function: "init()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
line: "147"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) ->
***[COMPV ERROR]: function: "init()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_public_engine.cxx"
line: "131"
message: [UltAlprSdkEngine] Failed to initialize the engine
****[ULTALPR_SDK FATAL]: function: "alpr()"
"/root/src/includes/MicroServiceAlpr.cpp"
line: "75"
message: Assertion failed!

Thank you for your help

--
You received this message because you are subscribed to the Google Groups "doubango-ai" group.
To unsubscribe from this group and stop receiving emails from it, send an email to doubango-ai...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/doubango-ai/17058b1a-1e00-4767-ad47-9d2d004ecbd3n%40googlegroups.com.

cc s2e

unread,
Feb 21, 2022, 7:01:56 AM2/21/22
to doubango-ai
Sorry for that, here's the full logs

*[COMPV INFO]: [UltAlprSdkEngine] Call: init
*[COMPV INFO]: [UltAlprSdkEngine] jsonConfig: {"assets_folder":"/opt/ultimateALPR-SDK/assets","car_noplate_detect_enabled":false,"debug_internal_data_path":".","debug_level":"info","debug_write_input_image_enabled":false,"detect_minscore":0.1,"detect_roi":[0,0,0,0],"gpgpu_enabled":true,"klass_lpci_enabled":false,"klass_vcr_enabled":false,"klass_vmmr_enabled":true,"license_token_data":"ANI6+wXVBUVDUFFVdzBBR1VQRkMuBApERW4nS1FTRkgJIBQ1CA4jdX1ZREJTdkdJVXB3FHx8K0lJQFsqICppSFFEfmsyRDc0JCYiDgJoTl5rejNJVjhvZkVwOWVcRktNLRATC35GaUdYYGVXdQwDMiBrGX1jYURGTWFEQkRXQyQXNH5IX1AlCzkjKRZRNERQSlt+MSseDz4Geml7QFkwWzI0VFdeBx4sChRlQ1A5JDgEcS5SWUNGWglbTTAWBQB2QWEAYHhoQFR9QUcLLkQ5M0B6HQg9AFMlBXQ7Dg==","num_threads":-1,"openvino_device":"CPU","openvino_enabled":true,"pyramidal_search_enabled":true,"pyramidal_search_min_image_size_inpixels":800,"pyramidal_search_minscore":0.3,"pyramidal_search_sensitivity":0.28,"recogn_minscore":0.3,"recogn_rectify_enabled":"true","recogn_rectify_polarity":"both","recogn_score_type":"min"}
**[COMPV WARN]: function: "__UltAlprSdkJsonConfigParseBool()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_json_config.cxx"
line: "228"
message: [UltAlprSdkJsonConfig] recogn_rectify_enabled not a boolean
***[COMPV ERROR]: function: "parse()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_json_config.cxx"
line: "185"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_PARAMETER) ->
*[COMPV INFO]: /!\ Code in file '/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_public_engine.cxx' in function 'init' starting at line #77: Not optimized -> Code not built for mobile devices but for clouds. Are you sure this is what you want?
*[COMPV INFO]: [UltAlprSdkEngine] **** Copyright (C) 2011-2021 Doubango Telecom <https://www.doubango.org> ****
ultimateALPR-SDK <https://github.com/DoubangoTelecom/ultimateALPR-SDK> version 3.7.0

*[COMPV INFO]: [CompVBase] Initializing [base] modules (v 1.0.0, nt -1)...
*[COMPV INFO]: [CompVBase] sizeof(compv_scalar_t)= #8
*[COMPV INFO]: [CompVBase] sizeof(float)= #4
*[COMPV INFO]: Initializing window registery
*[COMPV INFO]: [ImageDecoder] Initializing image decoder...
*[COMPV INFO]: [CompVCpu] H: 'GenuineIntel', S: '', M: '158', MN: 'Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz'
*[COMPV INFO]: [CompVBase] CPU features: (intel);[x86];[x64];mmx;sse;sse2;sse3;ssse3;sse41;sse42;avx;avx2;fma3;erms;bmi1;bmi2;popcnt;cmov;aes;rdrand;
*[COMPV INFO]: [CompVBase] CPU cores: online=#7, conf=#8
*[COMPV INFO]: [CompVBase] CPU cache1: line size: #64B, size :#32KB
*[COMPV INFO]: [CompVBase] CPU Phys RAM size: #64243GB
*[COMPV INFO]: [CompVBase] CPU endianness: LITTLE
*[COMPV INFO]: [CompVBase] Binary type: X86_64
*[COMPV INFO]: [CompVBase] Intrinsic enabled
*[COMPV INFO]: [CompVBase] Assembler enabled
*[COMPV INFO]: [CompVBase] Code built with option /arch:SSE
*[COMPV INFO]: [CompVBase] Code built with option /arch:SSE2
*[COMPV INFO]: [CompVBase] OS name: Generic Linux
*[COMPV INFO]: [CompVBase] Math Fast Trig.: true
*[COMPV INFO]: [CompVBase] Math Fixed Point: true
*[COMPV INFO]: [CompVMathExp] Init
*[COMPV INFO]: [CompVBase] Default alignment: #64
*[COMPV INFO]: [CompVBase] Best alignment: #64
*[COMPV INFO]: [CompVBase] Heap limit: #3289273KB (#3212MB)
*[COMPV INFO]: [CompVParallel] Initializing [parallel] module...
*[COMPV INFO]: /!\ Code in file '/home/ultimate/compv/base/compv_mem.cxx' in function 'CompVMemZero_C' starting at line #508: Not optimized -> No SIMD implementation found
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=1,set=useless, threadId:0x7fb84f7fe700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=0,set=useless, threadId:0x7fb8676a5700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=2,set=useless, threadId:0x7fb84ffff700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=3,set=useless, threadId:0x7fb864ea0700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=4,set=useless, threadId:0x7fb866ca4700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=5,set=useless, threadId:0x7fb8664a3700, kThreadSetAffinity:false) - ENTER
*[COMPV INFO]: [CompVThreadDispatcher] Thread dispatcher created with #7 threads/#7 cores
*[COMPV INFO]: [CompVParallel] [Parallel] module initialized
*[COMPV INFO]: [CompVBase] [Base] modules initialized
*[COMPV INFO]: [CompVCore] Initializing [core] module (v 1.0.0)...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 1 and name = 'FAST (Features from Accelerated Segment Test)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 8 and name = 'ORB (Oriented FAST and Rotated BRIEF)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 27 and name = 'Sobel edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 28 and name = 'Scharr edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 29 and name = 'Prewitt edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 20 and name = 'Canny edge detector'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 30 and name = 'Hough standard (STD)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 31 and name = 'Kernel-based Hough transform (KHT)'...
*[COMPV INFO]: [CompVFeature] Registering feature factory with id = 41 and name = 'Standard Histogram of oriented gradients (S-HOG)'...
*[COMPV INFO]: [CompVMatcher] Registering matcher factory with id = 0 and name = 'Brute force matcher'...
*[COMPV INFO]: [CompVConnectedComponentLabeling] Registering connected component labeling factory with id = 1 and name = 'PLSL (Parallel Light Speed Labeling)'...
*[COMPV INFO]: [CompVConnectedComponentLabeling] Registering connected component labeling factory with id = 19 and name = 'LMSER (Linear Time Maximally Stable Extremal Regions)'...
*[COMPV INFO]: [CompVGL] Initializing [gl] module (v 1.0.0)...
*[COMPV INFO]: [CompVGL] GL module initialized
*[COMPV INFO]: [CompVGpu] Initializing [gpu] module (v 1.0.0)...
*[COMPV INFO]: [CompVCamera] Initializing [camera] module (v 1.0.0)...
*[COMPV INFO]: [CompVDrawing] Initializing [drawing] module (v 1.0.0)...
*[COMPV INFO]: [CompVDrawing] /!\ No jpeg decoder found
*[COMPV INFO]: [CompVDrawing] Drawing module initialized

*[COMPV INFO]: [CompVGpu] GPU enabled: true
*[COMPV INFO]: /!\ Code in file '/home/ultimate/ultimateBase/lib/source/ultimate_base_engine.cxx' in function 'init' starting at line #75: Not optimized for GPU -> GPGPU computing not enabled or deactivated
*[COMPV INFO]: [UltBaseOpenCL] Trying to load [libOpenCL.so]
*[COMPV INFO]: [CompVAsyncTask11] run(coreId:requested=6,set=useless, threadId:0x7fb865ca2700, kThreadSetAffinity:false) - ENTER

*[COMPV INFO]: [UltBaseOpenCL] Loaded [libOpenCL.so], looksLikeValid: yes...
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateBase/lib/source/opencl/ultimate_base_opencl_utils.cxx"
line: "48"
message: [UltBaseOpenCLUtils] OpenCL operation failed (-1001 -> unknown error code) -> clGetPlatformIDs failed
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateBase/lib/source/opencl/ultimate_base_opencl_utils.cxx"
line: "106"
message: Operation Failed (COMPV_ERROR_CODE_E_UNKNOWN) ->
*[COMPV INFO]: [UltBaseOpenCL] Failed to hook functions using [libOpenCL.so] library
*[COMPV INFO]: [UltOcrEngine] Tensorflow version: 1.14.0
*[COMPV INFO]: [CompVSharedLib] Loaded shared lib: libultimatePluginOpenVINO.so
*[PLUGIN_OPENVINO INFO]: pluginOpenVinoInferenceEngine::init called
*[COMPV INFO]: /!\ Code in file '/home/ultimate/compv/base/compv_mem.cxx' in function 'CompVMemCopy_C' starting at line #985: Not optimized -> No SIMD implementation found. On ARM consider http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html
*[COMPV INFO]: [UltBaseEngine] UltBaseEngineReadSystemFile: fopen[0] returned null
device node not found
*[COMPV INFO]: [UltBaseEngine] fgets failed, round[0]
*[COMPV INFO]: [UltBaseEngine] [Activation][S] If you try to activate a license, you'll be fine
***[COMPV ERROR]: function: "updateLicenseInfo()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
line: "797"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Field [9]
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_private_engine.cxx"
line: "147"
message: Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) ->
***[COMPV ERROR]: function: "init()"
file: "/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_public_engine.cxx"
line: "131"
message: [UltAlprSdkEngine] Failed to initialize the engine
****[ULTALPR_SDK FATAL]: function: "alpr()"
file: "/root/src/includes/MicroServiceAlpr.cpp"
line: "75"
message: Assertion failed!

Mamadou DIOP

unread,
Feb 21, 2022, 7:16:35 AM2/21/22
to cc s2e, doubango-ai
- First, correct your JSON: "recogn_rectify_enabled" value must be true without quotes ("true")

- Second, the error about OpenCL isn't the issue. You can ignore it.

Third, contact the support team (the email used to send you your license) and in the mail a) attach full logs (with JSON corrected), b) run runtimeKey app and attach full logs c) add your customers/organization id



Sent from my Galaxy


-------- Original message --------
From: cc s2e <cc.s2...@gmail.com>
Date: 2/21/22 13:01 (GMT+01:00)
To: doubango-ai <douba...@googlegroups.com>
Subject: Re: OpenCL operation failed (-1001 -> unknown error code) -> clGetPlatformIDs failed

Sorry for that, here's the full logs

*[COMPV INFO]: [UltAlprSdkEngine] Call: init
*[COMPV INFO]: [UltAlprSdkEngine] jsonConfig: {"assets_folder":"/opt/ultimateALPR-SDK/assets","car_noplate_detect_enabled":false,"debug_internal_data_path":".","debug_level":"info","debug_write_input_image_enabled":false,"detect_minscore":0.1,"detect_roi":[0,0,0,0],"gpgpu_enabled":true,"klass_lpci_enabled":false,"klass_vcr_enabled":false,"klass_vmmr_enabled":true,"license_token_data":"ANI6+wXVBUVDUFFVdzBBR1VQRkMuBApERW4nS1FTRkgJIBQ1CA4jdX1ZREJTdkdJVXB3FHx8K0lJQFsqICppSFFEfmsyRDc0JCYiDgJoTl5rejNJVjhvZkVwOWVcRktNLRATC35GaUdYYGVXdQwDMiBrGX1jYURGTWFEQkRXQyQXNH5IX1AlCzkjKRZRNERQSlt+MSseDz4Geml7QFkwWzI0VFdeBx4sChRlQ1A5JDgEcS5SWUNGWglbTTAWBQB2QWEAYHhoQFR9QUcLLkQ5M0B6HQg9AFMlBXQ7Dg==","num_threads":-1,"openvino_device":"CPU","openvino_enabled":true,"pyramidal_search_enabled":true,"pyramidal_search_min_image_size_inpixels":800,"pyramidal_search_minscore":0.3,"pyramidal_search_sensitivity":0.28,"recogn_minscore":0.3,"recogn_rectify_enabled":"true","recogn_rectify_polarity":"both","recogn_score_type":"min"}
**[COMPV WARN]: function: "__UltAlprSdkJsonConfigParseBool()"
"/home/ultimate/ultimateALPR/SDK_dev/lib/source/ultimate_alpr_sdk_json_config.cxx"
line: "228"
message: [UltAlprSdkJsonConfig] recogn_rectify_enabled not a boolean
***[COMPV ERROR]: function: "parse()"
Reply all
Reply to author
Forward
0 new messages