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

异常无法捕获 #235

Open
LYS86 opened this issue Dec 6, 2024 · 2 comments
Open

异常无法捕获 #235

LYS86 opened this issue Dec 6, 2024 · 2 comments

Comments

@LYS86
Copy link

LYS86 commented Dec 6, 2024

你好,我在使用yolo模型时遇到了一些问题,使用gpu时部署yolo10,yolo11模型,会崩溃,无法捕获异常

      try {
                interpreter = InterpreterApi.create(modelBuffer, options)
            } catch (e: Exception) {
                log.e("InterpreterApi.create failed: ${e.message}")
                throw RuntimeException("InterpreterApi.create failed: ${e.message}", e)
            }
                                                                                      加载模型成功:/storage/emulated/0/脚本/model/yolov10n_float16.tflite
09:24:13.813 TensorFlowLite                                                         I  Loaded native library: tensorflowlite_jni
09:24:13.816                                                                        I  Didn't load native library: tensorflowlite_jni_gms_client
09:24:13.818                                                                        I  Found application TF Lite runtime client in org.tensorflow.lite
09:24:13.818                                                                        I  TfLiteRuntime.FROM_APPLICATION_ONLY: Using application TF Lite runtime client from org.tensorflow.lite
09:24:13.824 tflite                                                                 I  Initialized TensorFlow Lite runtime.
09:24:13.830 libc                                                                   W  Access denied finding property "ro.hardware.chipname"
09:24:13.848 tflite                                                                 I  Loaded OpenCL library with dlopen.
09:24:13.860                                                                        I  Replacing 153 out of 798 node(s) with delegate (TfLiteGpuDelegateV2) node, yielding 3 partitions for the whole graph.
09:24:13.867                                                                        I  Loaded OpenCL library with dlopen.
09:24:13.873 libc                                                                   W  Access denied finding property "ro.vendor.gfx.32bit.target"
09:24:16.698 CrashReport-Native                                                     E  Failed to get java thread with thread name: 33448250835.js]
09:24:16.763 CrashHandler                                                           D  onCrashHandleStart: crashType = 2, errorType = SIGSEGV(SEGV_MAPERR), msg = , stack = #00    pc 0000000000dcca18    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #01    pc 0000000000e172c8    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #02    pc 0000000000e1a1c8    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #03    pc 0000000000e25210    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #04    pc 0000000000e244c4    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #05    pc 0000000000929444    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #06    pc 0000000000928be0    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #07    pc 0000000000928a10    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #08    pc 0000000000f1a20c    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #09    pc 0000000000f1b09c    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #10    pc 0000000001ac9114    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #11    pc 0000000001aeb60c    /vendor/lib64/libllvm-qcom.so [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #12    pc 0000000001ae5eb4    /vendor/lib64/libllvm-qcom.so (cl_compiler_link_program+492) [arm64-v8a::fd29b3cc397be9542a1b2c8f898d90eb]
                                                                                       #13    pc 000000000027ccb4    /vendor/lib64/libCB.so [arm64-v8a::24374e5b79d9b43dfc53c3f5638d17d1]
                                                                                       #14    pc 000000000027bd58    /vendor/lib64/libCB.so (cl_program_build_immediate+272) [arm64-v8a::24374e5b79d9b43dfc53c3f5638d17d1]
                                                                                       #15    pc 0000000000282668    /vendor/lib64/libCB.so (cb_build_program+1072) [arm64-v8a::24374e5b79d9b43dfc53c3f5638d17d1]
                                                                                       #16    pc 0000000000013360    /vendor/lib64/libOpenCL.so (qCLDrvAPI_clBuildProgram+112) [arm64-v8a::10ea9514a364b8fc498f8ed64e6fb2e8]
                                                                                       #17    pc 00000000001650ac    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #18    pc 0000000000164fe0    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #19    pc 00000000001607e8    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #20    pc 000000000010f80c    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #21    pc 0000000000105fe4    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #22    pc 0000000000105a4c    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #23    pc 00000000001057d8    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #24    pc 00000000000ffdf4    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #25    pc 00000000000b6cd4    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #26    pc 00000000000b6748    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
09:24:16.763                                                                        D  #27    pc 00000000000b7748    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #28    pc 0000000000320f64    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_jni.so [arm64-v8a::850a925e891f910bae3c83095332764b]
                                                                                       #29    pc 0000000000320908    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_jni.so [arm64-v8a::850a925e891f910bae3c83095332764b]
                                                                                       #30    pc 0000000000320524    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_jni.so [arm64-v8a::850a925e891f910bae3c83095332764b]
                                                                                       #31    pc 00000000000b3174    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_gpu_jni.so [arm64-v8a::85ee85b3b999e40f77f5ec31b04e320c]
                                                                                       #32    pc 0000000000325400    /data/app/~~H64e42iACxGl1QlKqpNqOg==/org.autojs.autojs6.debug-Znz0TxY2HJroXMaKCNc3Yw==/lib/arm64/libtensorflowlite_jni.so [arm64-v8a::850a925e891f910bae3c83095332764b]
                                                                                       java:
                                                                                       [Failed to get Java stack]


@pkgoogle
Copy link

pkgoogle commented Jan 8, 2025

Hi @LYS86, can you provide an exported android studio project? Also can you let me know where you got your Yolo10/11 model from?

@LYS86
Copy link
Author

LYS86 commented Jan 9, 2025

项目代码 Autojs yolo8

关于该问题的讨论 yolov11 export to tflite does not work on Android GPU

模型导出,yolov8n,yolov9t不会触发崩溃。

from ultralytics import YOLO

# yolov8n,yolov9t,yolov10n,yolo11n
model = YOLO("yolo11n.pt")

model.export(format="tflite")

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