MSDK 5.8.0 - An error occurs when calling addReceiveStreamListener of cameraStreamManager.
已完成Hello.
When I call addReceiveStreamListener in M3T, the app crashes.
The parameter of addReceiveStreamListener is ComponentIndexType.FPV.
FATAL EXCEPTION: StreamEncoder_FPV
java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.Integer.intValue()' on a null object reference
at android.media.MediaFormat.getInteger(MediaFormat.java:1182)
at dji.v5.manager.datacenter.camera.StreamEncoder$EncodeAndDispatchRunnable.run(StreamEncoder.java:9)
at java.lang.Thread.run(Thread.java:919)
Aircraft Model : M3T
Aircraft version : 09.02.0706
Remote Controller version : 02.01.0322
Thank you.
-
This is a known crash that will be fixed in version 5.9. Here is an article that provides a simple method to likely bypass it:https://sdk-forum.dji.net/hc/en-us/articles/30404722342169-When-encountering-the-crash-java-lang-NullPointerException-Attempt-to-invoke-virtual-method-int-java-lang-Integer-intValue-on-a-null-object-reference-how-should-it-be-handled?source=search&auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjo5Nzg4MTcsInVzZXJfaWQiOjI4MzA3Mjk0Nzg3LCJ0aWNrZXRfaWQiOjEwNTkxNiwiY2hhbm5lbF9pZCI6NjMsInR5cGUiOiJTRUFSQ0giLCJleHAiOjE3MTY2NDE5OTJ9.-mJ74e8q4AKyy0LkV467LhRdkuxPFdF2u-akum9QAF4 Thank you.
请先登录再写评论。
评论
1 条评论