Advise to avoid crashing when removing app

Hi,

We encoutered a crash when using le_appRemove service to uninstall app, we observed that the uninstall produces a WDG reset after calling le_appRemove API function due to no response was received.

Is there any service or mechanism within Legato framework that can help us to handle this situation, and prevent Legato from crashing?

Could you please help to advice?

Thanks a lot!

BR,
Louis

will you get any improvement if you first stop the application by “app stop xxx” ?

Can you reproduce this with simple helloworld application?

Hi,

It may help, but this is supposed to be a hands-off process.
Is there an internal Legato timer which can get us a quicker response in this case?

BR,
Louis

if there is no problem with “app stop” and “app remove”, that means your application calling API has problem.

Hi,

It could be, but can you please help to answer this question?
Is there any service or mechanism within Legato framework that can help us to handle this situation, and prevent Legato from crashing?

Because if so, we would like to introduce it/them to our application and enhance its robustness.

We are maybe stuck for current case in waiting for a response from le_appRemove_ConnectService();
Then, the actual removal with le_appRemove_Remove() will ocurr in a normal time frame.

Is there an internal Legato timer which can get us a quicker response in this case?

Thanks a lot!

BR,
Louis

No, i don’t know

You need to try different workaround

E.g.
If there is no problem with “app stop xxx”, you can create a unsandboxed app to call this command by system() call

Hi,

We are considering to add a timer to monitor whether Legato API is not responding for too long, could you please advice a proper value for this timer?

Thanks a lot!

BR,
Louis

what will you do if this timer expires?
Keep waiting the legato API to respond?

Hi,

There is no preventive design in the application, so when this API is not responding, we observed the crash as described.

BR,
Louis

then what is the purpose to add the timer to check if the API is not responding?

Hi,

The purpose is to prevent Legato from crashing.

BR,
Louis

how to prevent legato from crashing if the timer expires?
have you tried the faultAction flag in .adef to prevent legato crash

Hi,

Thanks for the advice, we will look into that.

BR,
Louis