Thank you both for answer. I did "adb shell dmesg" and here's the output:
<4>[ 1441.738066] send sigkill to 1641 (Settings), adj 6, size 5946
...
<4>[ 1442.450464] send sigkill to 1694 (Gecko_IOThread), adj 6, size 11549
...
<4>[ 1442.903488] send sigkill to 1660 (my game), adj 2, size 23024

Indeed it was the memory issue. So, according to Debugging_OOMs page, My game 
was using 23024*4=92mb of memory and at that time only cca 80mb was free. I 
guess it's too much:) I have Alcatel one fire with 256mb of ram. I have to do 
some optimalizations...
Thanks.


On Tuesday, December 3, 2013 8:06:53 PM UTC+1, Sotaro Ikeda wrote:
> low memory killer or out of memory killer could kill an app. If you want to 
> check it, it might be better to get dmesg log by "adb shell dmesg". The 
> following is a link to debugging oom.
> 
> 
> 
> https://wiki.mozilla.org/B2G/Debugging_OOMs
> 
> 
> 
> sotaro
> 
> ----- Original Message -----
> 
> From: "Kumar McMillan" <[email protected]>
> 
> To: "Bosko Milakovic" <[email protected]>
> 
> Cc: [email protected]
> 
> Sent: Monday, December 2, 2013 2:33:06 PM
> 
> Subject: Re: Out of memory issue?
> 
> 
> 
> 
> 
> On Dec 1, 2013, at 6:56 AM, Bosko Milakovic <[email protected]> wrote:
> 
> 
> 
> > Hi all,
> 
> > 
> 
> > Is there a memory limit for a firefox os app? I have a problem with my game 
> > which will crash at the start while loading the assets. Here is the log 
> > errors:
> 
> > 
> 
> > I/GonkMemoryPressure(  139): Dispatching low-memory memory-pressure event
> 
> > ...
> 
> > I/Gecko   (  139): ###!!! [Parent][AsyncChannel] Error: Channel error: 
> > cannot send/recv
> 
> > I/Gecko   (  139):
> 
> > I/Gecko   (  139): _fireFatalError()
> 
> > …
> 
> > 
> 
> 
> 
> I don't know what the memory limit is but it's typical for an app to be 
> killed to free up memory. However, it seems odd that your app crashes on 
> startup. You could run the b2g-ps command on your phone to see how much 
> actual memory it is using. Example:
> 
> 
> 
> watch -n.5 adb shell b2g-ps --oom
> 
> 
> 
> If it seems unreasonable to crash you should file a bug.
> 
> 
> 
> 
> 
> > Did anyone has this kind of problem?
> 
> > Thanks.
> 
> > 
> 
> > Bosko
> 
> > _______________________________________________
> 
> > dev-webapps mailing list
> 
> > [email protected]
> 
> > https://lists.mozilla.org/listinfo/dev-webapps
> 
> 
> 
> _______________________________________________
> 
> dev-webapps mailing list
> 
> [email protected]
> 
> https://lists.mozilla.org/listinfo/dev-webapps
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to