UltimateALPR SDK Android - error on Samsung S24 Ultra

16 views
Skip to first unread message

George Denchev

unread,
May 27, 2024, 11:36:17 AMMay 27
to doubango-ai
Hi there,

We have been using the UltimateALPR SDK in production for some time - on various Android phones.

Recently we tried to install our Android App (that uses the SDK) on Samsung S24 Ultra (Snapdragon 8 Gen 3 CPU) and the ALPR engine does not seem to be working.

Here is a small extract from the error in Logcat:
---
2024-05-23 12:13:21.418 23642-23642 ****************************************************         E  ALPR config prepared = {"debug_level":"info","debug_write_input_image_enabled":false,"num_threads":-1,"gpgpu_enabled":true,"charset":"latin","max_latency":-1,"ienv_enabled":false,"openvino_enabled":true,"openvino_device":"CPU","detect_minscore":0.3,"detect_roi":[0,0,0,0],"car_noplate_detect_enabled":false,"car_noplate_detect_min_score":0.8,"pyramidal_search_enabled":true,"pyramidal_search_sensitivity":0.28,"pyramidal_search_minscore":0.5,"pyramidal_search_min_image_size_inpixels":800,"klass_lpci_enabled":false,"klass_vcr_enabled":false,"klass_vmmr_enabled":false,"klass_vbsr_enabled":false,"klass_vcr_gamma":1.5,"recogn_minscore":0.5,"recogn_score_type":"min","recogn_rectify_enabled":false,"license_token_data":"******"}
2024-05-23 12:13:21.422 23642-23642 ****************************************************         E  ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
                                                                                                    file: "../../../../ultimateBase/lib/include/ultimate_base_debug.h"
                                                                                                    line: "51"
                                                                                                    message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Invalid cookie
2024-05-23 12:13:21.422 23642-23642 ****************************************************         E  ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
                                                                                                    file: "../../../../ultimateBase/lib/include/ultimate_base_debug.h"
                                                                                                    line: "51"
                                                                                                    message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> updateLicenseInfo: Deser failed
2024-05-23 12:13:21.422 23642-23642 ****************************************************         E  ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
                                                                                                    file: "../../../../ultimateBase/lib/include/ultimate_base_debug.h"
                                                                                                    line: "51"
                                                                                                    message: [[Check Code]]Operation Failed (COMPV_ERROR_CODE_E_INVALID_CALL) -> Failed to update the license info
2024-05-23 12:13:21.422 23642-23642 ****************************************************         E  ***[COMPV ERROR]: function: "UltimateBaseDebugPrint()"
                                                                                                    file: "../../../../ultimateBase/lib/include\ultimate_base_debug.h"
                                                                                                    line: "51"
                                                                                                    message: [UltAlprSdkEngine]Failed to initialize the engine
2024-05-23 12:13:21.422 23642-23642 ****************************************************         E  Error initializing ALPR engine for video stream
                                                                                                    java.lang.AssertionError: Operation failed: Failed to initialize the engine
                                                                                                    at org.doubango.ultimateAlpr.common.AlprUtils.assertIsOk(AlprUtils.java:293)
                                                                                                    at org.doubango.ultimateAlpr.common.AlprActivity.onCreate(AlprActivity.java:237)
                                                                                                    at org.doubango.ultimateAlpr.AlprVideoParallelActivity.onCreate(AlprVideoParallelActivity.java:363)
                                                                                                    at android.app.Activity.performCreate(Activity.java:8975)
                                                                                                    at android.app.Activity.performCreate(Activity.java:8944)
                                                                                                    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
                                                                                                    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4146)
                                                                                                    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322)
                                                                                                    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
                                                                                                    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
                                                                                                    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
                                                                                                    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685)
                                                                                                    at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    at android.os.Looper.loopOnce(Looper.java:230)
                                                                                                    at android.os.Looper.loop(Looper.java:319)
                                                                                                    at android.app.ActivityThread.main(ActivityThread.java:8918)
                                                                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
                                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
---

The same Android App runs fine on other devices, including Samsung S23 (Snapdragon 8 Gen 2 CPU).

We are using version v3.10.x of UltimateALPR.

We are building with armv8 and armv7 support/native libraries.

Can the reason be the Snapdragon 8 Gen 3 processor (drops 32 bit support on Android)?
Can you advice what to do to make the UltimateALPR SDK run on Samsung S24 Ultra?

Thanks in advance,
Georgi

Mamadou DIOP

unread,
May 27, 2024, 11:43:30 AMMay 27
to George Denchev, doubango-ai
Hi,

The error has nothing to do with the device/hardware.

The error (“Invalid cookie”) means the provided license/token is garbage. That’s what you later have another error (“Deser failed”) which confirm we failed to deserialize the info
I hope you didn’t run the SDK with "******” as token as shown in the logs

--
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/ea2af6b8-083c-4737-a052-a00ec66b91b7n%40googlegroups.com.

George Denchev

unread,
May 27, 2024, 12:23:58 PMMay 27
to doubango-ai
Hi,

After your reply:
"The error has nothing to do with the device/hardware."

I have double checked and I think we made a copy/paste error and used the Key instead of the Token, just for this device.
We have updated and retried and it works now.

Thank you for your quick reaction and sorry for taking your time for such a trivial issue :)

You can disable/delete this conversation if you think appropriate.

Best regards,
Georgi

Reply all
Reply to author
Forward
0 new messages