Pose landmark detection: fault addr issue
Hi, I am trying to develop a PoseLandmarker Service:
- new Executor to execute PoseLandmarker
- loadModel in executor when Service onCreate
- releaseModel in executor when Service onDestory
Rapid and repeated binding and unbinding of the service may cause a fault address. Is there currently a way to check if the PoseLandmarker is being used by another thread? or is there a solution for this?
Btw, does the model need to be reloaded every time a new image is detected? (I noticed the sample code does this.) Is there a way to avoid constantly reloading the model?
Thanks !
Error log for fault addr:
Fatal signal 7 (SIGBUS), code 2 (BUS_ADRERR), fault addr 0x77adf8796c in tid 3166 (mediapipe/3166), pid 2790 (om.example.test) Cmdline: com.example.test pid: 2790, tid: 3166, name: mediapipe/3166 >>> com.example.test <<< #00 pc 00000000007bbc28 /data/app/~~St2sQD9mdB8BdNTEURoCSQ==/com.example.test-Hnlf-