DJI MSDK (version 5.7.1) compatibility with OpenCV. ERROR No implementation found for int djimrtc.natives.MRTCController.initNativeMRTCCore(java.lang.String)

已完成

评论

6 条评论

  • DJI Developer Support
    Could you please let me know the version of OpenCV you are using? I have been able to run OpenCV 4.8.0+msdk 5.5.0 smoothly.
    0
    评论操作 固定链接
  • Droneteam

    I'm using OpenCV 4.8.0 . I tried with msdk 5.5.0 as you said, still same error.

    2023-12-05 12:17:55.776 17770-17770 MRTCController          com.dbox.dcm_v5                      E  Couldn't load lib
    2023-12-05 12:17:55.777 17770-17770 com.dbox.dcm_v          com.dbox.dcm_v5                      E  No implementation found for int djimrtc.natives.MRTCController.initNativeMRTCCore(java.lang.String) (tried Java_djimrtc_natives_MRTCController_initNativeMRTCCore and Java_djimrtc_natives_MRTCController_initNativeMRTCCore__Ljava_lang_String_2)
    --------- beginning of crash
    2023-12-05 12:17:55.777 17770-17770 AndroidRuntime          com.dbox.dcm_v5                      D  Shutting down VM
    2023-12-05 12:17:55.777 17770-17770 AndroidRuntime          com.dbox.dcm_v5                      E  FATAL EXCEPTION: main
                                                                                                        Process: com.dbox.dcm_v5, PID: 17770
                                                                                                        java.lang.UnsatisfiedLinkError: No implementation found for int djimrtc.natives.MRTCController.initNativeMRTCCore(java.lang.String) (tried Java_djimrtc_natives_MRTCController_initNativeMRTCCore and Java_djimrtc_natives_MRTCController_initNativeMRTCCore__Ljava_lang_String_2)
                                                                                                            at djimrtc.natives.MRTCController.initNativeMRTCCore(Native Method)
                                                                                                            at djimrtc.natives.MRTCController.initNativeCoreMRTC(MRTCController.java:1)
                                                                                                            at co_a.co_i.<init>(MRTCEngine.java:15)
                                                                                                            at co_a.co_i.co_a(MRTCEngine.java:3)
                                                                                                            at dji.v5.inner.video.stream.co_a.co_a(MRTCManager.java:1)
                                                                                                         at dji.v5.inner.video.stream.co_a.<init>(MRTCManager.java:24)
                                                                                                            at dji.v5.inner.video.stream.co_a.<init>(MRTCManager.java:1)
                                                                                                            at dji.v5.inner.video.stream.co_a$co_c.<clinit>(MRTCManager.java:1)
                                                                                                            at dji.v5.inner.video.stream.co_a$co_c.co_a(MRTCManager.java:1)
                                                                                                            at dji.v5.inner.video.stream.co_a.co_c(MRTCManager.java:1)
                                                                                                            at dji.v5.manager.datacenter.livestream.LiveStreamManager.startStream(LiveStreamManager.java:15)
                                                                                                            at com.dbox.dcm_v5.VideoManager$surfaceViewHolderCallback1$1.surfaceCreated$lambda$0(VideoManager.kt:71)
                                                                                                            at com.dbox.dcm_v5.VideoManager$surfaceViewHolderCallback1$1.$r8$lambda$lpkFD5zdGpBfIOrg5gRSvCeO_eo(Unknown Source:0)
                                                                                                            at com.dbox.dcm_v5.VideoManager$surfaceViewHolderCallback1$1$$ExternalSyntheticLambda0.run(Unknown Source:2)
                                                                                                            at android.os.Handler.handleCallback(Handler.java:883)
                                                                                                            at android.os.Handler.dispatchMessage(Handler.java:100)
                                                                                                            at android.os.Looper.loop(Looper.java:214)
                                                                                                            at android.app.ActivityThread.main(ActivityThread.java:7400)
                                                                                                            at java.lang.reflect.Method.invoke(Native Method)
                                                                                                            at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
                                                                                                            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
    2023-12-05 12:17:55.779 17770-17770 DJIV5/Class@b89d640     com.dbox.dcm_v5                      E  (co_b:42) Stream closed 
    2023-12-05 12:17:55.785 17770-17770 DJIV5/Class@b89d640     com.dbox.dcm_v5                      E  (co_c:40) build 
    2023-12-05 12:17:55.786 17770-17770 DJIV5/SDKConfig         com.dbox.dcm_v5                      E  (getPackageProductCategory:10) dji.v5.handheld.BuildConfig 


    Can you show your app build.gradle file?

    0
    评论操作 固定链接
  • Droneteam

    Did you do something with RTMP functionality provided by dji sdk, because that's when the crash happens!

    for example

    liveStreamManager.startStream(object : CommonCallbacks.CompletionCallback {
             override fun onSuccess() {
                    Log.d(TAG, "startStream(): RTMP stream started.")
                    Log.d(TAG, liveStreamManager.isStreaming.toString())
             }

             override fun onFailure(error: IDJIError) {
                   Log.e(TAG, "startStream(): ${error.errorCode()} ${error.description()}")
             }

    })
    0
    评论操作 固定链接
  • DJI Developer Support
    I haven't used the live streaming feature. It seems to conflict with the live streaming library. Could you provide information about the NDK version used by openCV? I will try to reproduce this issue first.
    0
    评论操作 固定链接
  • DJI Developer Support
    I have reproduced this issue and will submit it to the team for analysis.
    0
    评论操作 固定链接
  • DJI Developer Support
    The issue has been fixed in version 5.9. Version 5.9 is expected to be released in April or May.
    0
    评论操作 固定链接

请先登录再写评论。