Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java_api]"Unable to read ONNX model on Android platform" #939

Closed
CARLPC opened this issue Nov 24, 2024 · 2 comments
Closed

[java_api]"Unable to read ONNX model on Android platform" #939

CARLPC opened this issue Nov 24, 2024 · 2 comments
Assignees

Comments

@CARLPC
Copy link

CARLPC commented Nov 24, 2024

`FATAL EXCEPTION: main
Process: com.xmut.openvinotest1, PID: 20544
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xmut.openvinotest1/com.xmut.openvinotest1.MainActivity}: java.lang.Exception:
InferenceEngineException:
ReadModel: Exception from src/inference/src/cpp/core.cpp:90:
Exception from src/inference/src/model_reader.cpp:160:
Unable to read the model: /storage/emulated/0/data/rec.onnx Please check that model format: onnx is supported and the model is correct. Available frontends:

                                                                                                	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3177)
                                                                                                	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3314)
                                                                                                	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
                                                                                                	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
                                                                                                	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
                                                                                                	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2043)
                                                                                                	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                	at android.os.Looper.loop(Looper.java:224)
                                                                                                	at android.app.ActivityThread.main(ActivityThread.java:7096)
                                                                                                	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
                                                                                                	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:928)
                                                                                                Caused by: java.lang.Exception: 
                                                                                                InferenceEngineException: 
                                                                                                	ReadModel: Exception from src/inference/src/cpp/core.cpp:90:
                                                                                                Exception from src/inference/src/model_reader.cpp:160:
                                                                                                Unable to read the model: /storage/emulated/0/data/rec.onnx Please check that model format: onnx is supported and the model is correct. Available frontends: 
                                                                                                
                                                                                                
                                                                                                	at org.intel.openvino.Core.ReadModel(Native Method)
                                                                                                	at org.intel.openvino.Core.read_model(Core.java:31)
                                                                                                	at com.xmut.openvinotest1.MainActivity.onCreate(MainActivity.java:34)
                                                                                                	at android.app.Activity.performCreate(Activity.java:7264)
                                                                                                	at android.app.Activity.performCreate(Activity.java:7255)
                                                                                                	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
                                                                                                	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3157)
                                                                                                	... 11 more`
@CARLPC CARLPC changed the title [java_api]"Unable to read ONNX model on Android platform" or "ONNX model loading issue on Android platform" [java_api]"Unable to read ONNX model on Android platform" Nov 25, 2024
@Iffa-Intel
Copy link

Hi @CARLPC ,
Could you clarify:

  1. Which OpenVINO version are you using?
  2. Which sample OpenVINO app are you using (If any)
  3. Steps that you did till encountered that error
  4. Your hardwares information
  5. Your ONNX model details (related files, url, etc)

I believe this is the same issue as the other thread that you opened #938

@Iffa-Intel
Copy link

Closing issue, feel free to re-open or start a new issue if additional assistance is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants