dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
577 stars 256 forks source link

WaypointV2MissionOperator - App crashes when on listener to started configured #444

Open federiconicoli opened 3 years ago

federiconicoli commented 3 years ago

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: Screen Shot 2021-03-08 at 16 45 54

DJI-SDK-iOS: 4.14 iOS 14.4

Any ideas on what could be happening?

Thank you!

dji-dev commented 3 years ago

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

furick1 commented 3 years ago

@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.

federiconicoli commented 3 years ago

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!

hummelslei commented 3 years ago

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

furick1 commented 3 years ago

Thank you.

schlingding commented 3 years ago

Any update on this issue?

brien-crean commented 2 years ago

It works for me on the latest SDK 4.15.2