简体   繁体   English

DJI SDK iOS 崩溃

[英]DJI SDK iOS crash

DJI SDK iOS community I have been connecting the M300 and this crash has happening me randomly, any idea how to mitigate this issue? DJI SDK iOS 社区 我一直在连接 M300,这个崩溃是随机发生的,知道如何缓解这个问题吗?

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000bbf6e3070

Crashed: Thread
0  libobjc.A.dylib                0x1cf4 objc_msgSend + 20
1  DJISDK                         0xa3e920 GetIsFCConnectedHandle(unsigned long long) + 51100
2  DJISDK                         0x204288 mop_link_layer_recv + 128
3  DJISDK                         0x204f1c mop_link_layer_node_init + 2908
4  libsystem_pthread.dylib        0x3348 _pthread_start + 116
5  libsystem_pthread.dylib        0x1948 thread_start + 8

Your problem is most likely caused by incorrect initialisation in conjunction with a network related event, say an inbound data packet.您的问题很可能是由于初始化不正确以及网络相关事件引起的,例如入站数据包。 Inbound data handling often use the words "recv" in their name.入站数据处理通常在其名称中使用“recv”一词。

Your third party code is trying to message an object at a too low an address (but not around zero).您的第三方代码正在尝试向地址太低(但不是零附近)的对象发送消息。 This usually means that some base pointer is nil, but some other value has been added to it, and that is the address being used.这通常意味着某些基指针为 nil,但已向其添加了一些其他值,这就是正在使用的地址。

Notice that your code is called from GetISFCConnectedHandle, and it takes a likely pointer-like argument.请注意,您的代码是从 GetISFCConnectedHandle 调用的,它可能采用类似指针的参数。 This is often a tell tale of code which has pointers to handler objects stored in data structures.这通常是代码的故事,它具有指向存储在数据结构中的处理程序对象的指针。

The first thing is to check configuration and initialisation data structures for your SDK and its associated hardware.首先是检查您的 SDK 及其相关硬件的配置和初始化数据结构。 The next thing to do is to enable the different sanitisers (address sanitiser for example) or use the memory allocations instrument to see the history of the system up until the crash.接下来要做的是启用不同的清理程序(例如地址清理程序)或使用内存分配工具查看系统在崩溃之前的历史记录。 Then you'll have context as to what is going on.然后,您将了解正在发生的事情。

The official resource for sanitisers is https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early消毒剂的官方资源是https://developer.apple.com/documentation/xcode/diagnosing-memory-thread-and-crash-issues-early

I also have a book which goes over similar ground and gives some tips.我还有一本书,它涵盖了类似的领域并给出了一些提示。 Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM