# Application xxxService has crashed 1 time

**URL:** <https://forum.legato.io/t/application-xxxservice-has-crashed-1-time/2666>\
**Category:** Legato Application Framework\
**Created:** [September 12, 2017, 12:44am UTC](https://forum.legato.io/t/application-xxxservice-has-crashed-1-time/2666 "2017-09-12T00:44:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [September 12, 2017, 12:44am UTC](https://forum.legato.io/t/application-xxxservice-has-crashed-1-time/2666/1 "2017-09-12T00:44:11Z")

</div>

[syslog-xivelyClient-xivelyclient-316019463.txt](https://forum.legato.io/uploads/short-url/8FQttTr1l05cTzuqib9AhTQ6AS0.txt) (1.9 MB)  
[syslog-positioningService-posDaemon-316019463.txt](https://forum.legato.io/uploads/short-url/ycXVTCfZzNDTmU1fLcpdfUYH9To.txt) (1.9 MB)

I installed an APP on the legato, and had running about 1 day, then stop. See the logs attached.  
For this issue, I would like to re-test the APP again. However, If you have any ideas, it would a great help for me.

Thank you.

Regards!

---

<div class="post-metadata">

**Author:** ![CoRfr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/corfr/32/69_2.png) [@CoRfr](https://forum.legato.io/u/CoRfr)\
**Post date:** [September 13, 2017, 12:59am UTC](https://forum.legato.io/t/application-xxxservice-has-crashed-1-time/2666/2 "2017-09-13T00:59:08Z")

</div>

```auto
Jan 6 15:11:01 swi-mdm9x15 user.warn kernel: [54652.653190] posDaemon invoked oom-killer: gfp_mask=0xd0, order=0, oom_score_adj=0
Jan 6 15:11:01 swi-mdm9x15 user.info kernel: [54652.659752] posDaemon cpuset=/ mems_allowed=0
Jan 6 15:11:01 swi-mdm9x15 user.warn kernel: [54652.671533] CPU: 0 PID: 720 Comm: posDaemon Not tainted 3.14.29ltsi-a00e464379_b0ce579abb #2

```

Looks like you were out of memory, are you cleaning properly with `le_pos_sample_Release` for instance?

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [September 13, 2017, 1:48am UTC](https://forum.legato.io/t/application-xxxservice-has-crashed-1-time/2666/3 "2017-09-13T01:48:43Z")

</div>

CoRfr,  
First of all, thank you for your information.  
Second, I tested the APP again, I had the same issue: app crashed automatically after running about 1 day.

`Looks like you were out of memory, are you cleaning properly with le_pos_sample_Release for instance?`

Not, I am not. Can you tell me when I should release the memory?

Regards!

---

<div class="post-metadata">

**Author:** ![lumao](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/lumao/32/167_2.png) [@lumao](https://forum.legato.io/u/lumao)\
**Post date:** [September 15, 2017, 12:35am UTC](https://forum.legato.io/t/application-xxxservice-has-crashed-1-time/2666/4 "2017-09-15T00:35:17Z")

</div>

Hi CoRfr,  
It seems OK now. I added a function : Before start-

`systemCtl.gpsCtl.fd = le_posCtrl_Request();`  
By the end of process, added:

`le_posCtrl_Release(systemCtl.gpsCtl.fd);`
