Mobile-SDK-iOS
Mobile-SDK-iOS copied to clipboard
WaypointV2MissionOperator - App crashes when on listener to started configured
Hey everyone!
I'm integrating DJIWaypointV2MissionOperator to an existing app to support the M300 RTK and I'm having trouble.
After the mission is started successfully the toStarted listeners are not being notified and the app crashes. If a remove the toStarted listeners it works fine.
Before uploading the mission I'm doing:
DJISDKManager.missionControl()?.waypointV2MissionOperator().removeListener(ofStarted: self)
DJISDKManager.missionControl()?.waypointV2MissionOperator().addListener(toStarted: self, with: nil) {
logger.info("Mission Started")
}
Exception Type: EXC_BAD_ACCESS (SIGKILL) Exception Subtype: KERN_INVALID_ADDRESS at 0x00...10
Stack trace:
DJI-SDK-iOS: 4.14 iOS 14.4
Any ideas on what could be happening?
Thank you!
Agent comment from Luce Luo in Zendesk ticket #44684:
Dear Customer,
Thank you for contacting DJI. Sorry I did reproduce this issue and has escalated this issue to the engineer to investigate.
Thanks,
Luce Luo DJI Developer Support
@dji-dev it looks like there are multiple issues reported for this same bug. What is the status on a fix? This is a major blocking bug for m300 v2 missions as there is no way to know when the mission started. Is there any alternate way than using this listener to handle mission start, stop, pause/resume functions? The SDK should not have been released with this bug but if there is a workaround that would be best in the near term. We have several customers who spent lots of money for m300s and without a fix will be expensive paperweights.
Hi Luce,
Do you think there's a workaround to overcome this issue in the meantime? I need solve this as soon as possible.
Thank you!
Hi this is hummels.lei from SDK technical support of DJI. We have arranged a priority to solve your problem. If there is any progress, I will let you know as soon as possible
Thank you.
Any update on this issue?
It works for me on the latest SDK 4.15.2