microsoft / microsoft/onnxruntime-inference-examples

OrtxPackage.getLibraryPath() crash

Open
#463 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.