microsoft / microsoft/onnxruntime-inference-examples
OrtxPackage.getLibraryPath() crash
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 414
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 14
Description
The example run error on my android device
error on this line:
sessionOptions.registerCustomOpLibrary(OrtxPackage.getLibraryPath())
error function:
OrtxPackage.getLibraryPath()
error message:
E/libc++abi: terminating due to uncaught exception of type cv::Exception: OpenCV(4.5.4) /Users/runner/work/1/b/android_aar/intermediates/armeabi-v7a/Release/_deps/opencv-src/modules/core/src/system.cpp:663: error: (-215:Assertion failed) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function 'initialize'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Android example failure at sessionOptions.registerCustomOpLibrary(OrtxPackage.getLibraryPath()) and capture the device ABI and CPU details. Trace how OrtxPackage.getLibraryPath() loads the library and compare that with the OpenCV CPU baseline error; the work is done when the example registers the custom-op library without crashing on the affected Android device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, opencv
- Domain
- computer-vision, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100