tensorflow / tensorflow/tflite-support

v0.4.4/java.lang.UnsatisfiedLinkError while init of ObjectDetector

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

Nobody has claimed this yet.

Dominant language
C++
Stars
441
Forks
146
PR merge metrics
No merged PRs in 30d

Description

v0.0.4 Object detector throws java.lang.UnsatisfiedLinkError in Android native init phase. While it works fine with v0.4.3 and below versions, it was detected in v0.0.4 version.

  • Problematic phone: Samsung SM-J250F
  • Problematic library version: v0.0.4
  • Reproduce phase: Object detector init phase only on Samsung SM-J250F device
No implementation found for void org.tensorflow.lite.task.vision.detector.ObjectDetector.deinitJni(long) (tried Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_deinitJni and Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_deinitJni__J)                               
Uncaught exception thrown by finalizer                                                                                                                                                                                                                                                              
java.lang.UnsatisfiedLinkError: No implementation found for void org.tensorflow.lite.task.vision.detector.ObjectDetector.deinitJni(long) (tried Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_deinitJni and Java_org_tensorflow_lite_task_vision_detector_ObjectDetector_deinitJni__J
	at org.tensorflow.lite.task.vision.detector.ObjectDetector.deinitJni(Native Method)                                                                                                                                                                                                             
	at org.tensorflow.lite.task.vision.detector.ObjectDetector.deinit(ObjectDetector.java:545)                                                                                                                                                                                                      
	at org.tensorflow.lite.task.core.BaseTaskApi.close(BaseTaskApi.java:59)                                                                                                                                                                                                                         
	at org.tensorflow.lite.task.core.BaseTaskApi.finalize(BaseTaskApi.java:78)                                                                                                                                                                                                                      
	at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222)                                                                                                                                                                                                                               
	at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209)                                                                                                                                                                                                                                      
	at java.lang.Thread.run(Thread.java:762)                                                                                                                                                                                                                                                        
After code cache collection, code=61KB, data=61KB                                                                                                                                                                                                                                                   ```

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 with ObjectDetector.java at deinit(ObjectDetector.java:545) and the BaseTaskApi close/finalize path shown in the trace. Compare the v0.4.4 and v0.4.3 native bindings and initialization behavior, then reproduce on the Samsung SM-J250F. Done means ObjectDetector initialization and finalization no longer produce the reported UnsatisfiedLinkError on v0.4.4.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, tensorflow
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.