Skip to content

specify opencv dependency version as 4.5.3.0 to fix UnsatisfiedLinkError on some devices#18220

Open
bqliang wants to merge 1 commit into
PaddlePaddle:mainfrom
bqliang:fix/android-opencv-linkerror
Open

specify opencv dependency version as 4.5.3.0 to fix UnsatisfiedLinkError on some devices#18220
bqliang wants to merge 1 commit into
PaddlePaddle:mainfrom
bqliang:fix/android-opencv-linkerror

Conversation

@bqliang

@bqliang bqliang commented Jun 26, 2026

Copy link
Copy Markdown

Description:

Why this change is needed?

When running the ppocr-android demo, calling System.loadLibrary("opencv_java4") crashes with the following error on some Android devices:
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__sfp_handle_exceptions"

image

This issue occurs because the previous dependency version 4.5.3 from com.quickbirdstudios:opencv contains a runtime issue related to the missing __sfp_handle_exceptions symbol on modern Android systems. As suggested by the maintainer of com.quickbirdstudios:opencv, specify the version as 4.5.3.0 resolves this runtime issue while keeping the same OpenCV functionalities.

image

What has been changed?

  • Specify the opencv dependency version as 4.5.3.0 in deploy/ppocr-android/gradle/libs.versions.toml.

@CLAassistant

CLAassistant commented Jun 26, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants