dji-sdk / Mobile-SDK-Android-V5

MSDK V5 Sample
Other
247 stars 126 forks source link

MSDK 5.9.0 causes app to start multiple processes #360

Open rayw-dronesense opened 3 weeks ago

rayw-dronesense commented 3 weeks ago

Environment

MSDK: 5.9.0 Devices: Samsung S23 (SM-S911U1), DJI RC Pro Enterprise

Repro steps

  1. Pull down MSDK Sample App for 5.9.0
  2. Install SDK API keys
  3. Build and install the app on the device

Expected behavior: One process is started when app is run

Actual behavior: Multiple processes for the app are started at the same time

---------------------------- PROCESS STARTED (2976) for package com.dji.sampleV5.aircraft ----------------------------
---------------------------- PROCESS STARTED (3006) for package com.dji.sampleV5.aircraft ----------------------------

This did not occur with MSDK 5.8.0.

antonymarion commented 2 weeks ago

Got the same issue today on RC Pro too

dji-dev commented 2 weeks ago

Agent comment from yating.liao in Zendesk ticket #109109:

Could you please inform us about the impact caused by the two processes on your usage?

°°°

antonymarion commented 2 weeks ago

It's critical since we send informations regularly to remote desktops and then we have duplicates..

And I noticed (as a side effect of this bug) that once we have 2 processes at least, then our messaging system with the Remote Control and the Desktops does not work any more. Surely because we have the same client twice on the RC, and that breaks the communication.

dji-dev commented 2 weeks ago

Agent comment from yating.liao in Zendesk ticket #109109:

I will go and check the issue you mentioned. Please wait for a while.

°°°

antonymarion commented 2 weeks ago

thks, I confirm this is still on last release too image

dji-lyt commented 2 weeks ago

I found that there is only one process when testing with a empty project of version 5.9.1, but there are indeed two processes in the sample code. Does the software in the actual production environment also have this issue? image

antonymarion commented 2 weeks ago

Of course in production the issue occurs too

dji-dev commented 1 week ago

Agent comment from yating.liao in Zendesk ticket #109109:

I have conducted further testing on this issue. If you install the example code of MSDK 5.9.1 using the release version of the APK, only one process will run at this time.

°°°