Closed
Bug 991482
Opened 12 years ago
Closed 12 years ago
[tarako] unable to open SMS through SMS Notification during call and then SMS cannot be recieved any more
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect, P1)
Tracking
(blocking-b2g:1.3T+)
RESOLVED
WORKSFORME
| blocking-b2g | 1.3T+ |
People
(Reporter: angelc04, Assigned: gsvelto)
Details
Attachments
(1 file)
|
385.86 KB,
text/x-log
|
Details |
Steps to reproduce
-------------------------------------------
1. Restart device/Kill SMS app
2. Make a MO call and wait until call connection is established
3. Send a sms to test device
4. There is a sms notification appears
5. Pull down the notification panel (Neccessary)
6. Tap on the sms notification
--> SMS cannot launch
7. Send another sms to test device
--> No notification appears.
Note:
1. This is only reproducible when SMS app does not launch
2. Directly tap on the sms notification when it just arrive, can launch SMS successfully.
Please see attached adb log. Test starts: 04-03 03:58:43.040
Test build
--------------------------------------------------------
Gaia c418ec10d1e1d53c6757ad12b2320c204808d251
Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/36b1279ef6df
BuildID 20140402164000
Version 28.1
ro.build.version.incremental=eng.cltbld.20140402.202437
ro.build.date=Wed Apr 2 20:24:44 EDT 2014
| Assignee | ||
Comment 1•12 years ago
|
||
This looks nasty and is probably caused by the SMS app being OOM-killed while launching. It might be due to us not taking the CPU wake-lock in time or maybe releasing it too soon. The issue is that when you're on a call the dialer will be holding the CPU wake-lock so another foreground application not holding it is very likely to be killed if there's not enough memory. I'll try and look into this ASAP.
| Reporter | ||
Updated•12 years ago
|
status-b2g-v1.3T:
--- → affected
Updated•12 years ago
|
blocking-b2g: --- → 1.3T?
Updated•12 years ago
|
Severity: normal → blocker
Priority: -- → P1
Comment 3•12 years ago
|
||
Hi! Thinker,
Per our discussion yesterday, your team got some idea and are working on this already.
Assign this case to you first. Thanks.
--
Keven
Assignee: nobody → tlee
| Assignee | ||
Comment 4•12 years ago
|
||
Looking at the code it seems that we take hold of the CPU wake-lock correctly when receiving the message and posting the notification but we're not doing so when launching the application. Since in 1.3 removing the notification is out of the apps' control we should do that to ensure that it's not completely lost before the user can see the message. I'll try to cook up a patch later today.
blocking-b2g: 1.3T+ → ---
status-b2g-v1.3T:
affected → ---
Comment 5•12 years ago
|
||
Since this is 1.3T blocker required by partner. Set 1.3T again.
--
Keven
blocking-b2g: --- → 1.3T?
Comment 6•12 years ago
|
||
Just a note that the title "SMS cannot be received anymore" is not really true. I'm sure SMS are received and that they will show up in the Messages app (please verify it though). The issue we have here is likely only about displaying and clicking notifications.
Comment 7•12 years ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #4)
> Looking at the code it seems that we take hold of the CPU wake-lock
> correctly when receiving the message and posting the notification but we're
> not doing so when launching the application.
We don't hold a wake lock before the app is launched and the system event is sent. I remember we had some subtle issues in other devices around this, maybe it's made more apparent on Tarako.
| Assignee | ||
Comment 8•12 years ago
|
||
OK, I've just tried this on my Tarako and I cannot reproduce it. Both tapping on the notification as it shows up or the one in the tray panel open the SMS app correctly. In the latter case it takes a little bit more time but still gets you to the message just fine.
I'm getting the feeling that there might be something wrong with the device this was tested on. Please do the following:
- Try the STR while having the device connected to your PC in order to be able to invoke commands via adb
- Run the STR up until point 2 included, then run 'adb shell b2g-info' and collect the output
- Run the STR up until point 5 included, then run 'adb shell b2g-info' and collect the output
- Tap on the notification and even if the SMS app doesn't launch quickly run 'adb shell b2g-info' and collect the output
In my case the third scenario actually works and I can gather that information after the SMS app has opened correctly, this is the results I've took during my testing:
- Incoming call connected
NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 80 1 42.3 0 25.2 28.2 36.2 146.2 0 root
(Nuwa) 343 80 1.7 0 0.3 1.9 6.9 50.5 0 root
Homescreen 355 343 5.2 18 6.1 8.9 17.2 63.6 8 app_355
Communications 630 343 10.4 0 13.9 17.4 26.6 78.9 1 app_630
(Preallocated a 782 343 0.8 18 4.7 7.0 13.9 57.4 1 root
System memory info:
Total 94.1 MB
Used - cache 69.0 MB
B2G procs (PSS) 63.4 MB
Non-B2G procs 5.6 MB
Free + cache 25.1 MB
Free 2.4 MB
Cache 22.7 MB
- Message received and tray panel opened
NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 80 1 44.5 0 20.6 23.4 31.4 148.5 0 root
(Nuwa) 343 80 1.8 0 0.2 1.7 6.8 50.5 0 root
Homescreen 355 343 5.2 18 3.6 6.1 14.6 63.6 8 app_355
Communications 630 343 10.8 0 6.8 9.9 19.0 77.9 1 app_630
Usage 872 343 2.2 18 9.0 11.6 19.7 63.9 2 app_872
(Preallocated a 890 343 0.0 18 0.4 0.7 2.4 53.4 1 root
System memory info:
Total 94.1 MB
Used - cache 69.5 MB
B2G procs (PSS) 53.4 MB
Non-B2G procs 16.1 MB
Free + cache 24.6 MB
Free 2.0 MB
Cache 22.6 MB
- SMS app opened and message displayed
NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 80 1 46.4 0 21.0 23.5 31.9 147.2 0 root
(Nuwa) 343 80 1.9 0 0.2 1.6 6.8 50.5 0 root
Homescreen 355 343 5.2 18 0.8 2.9 11.7 63.6 8 app_355
Communications 630 343 11.6 0 8.5 11.3 21.0 78.3 1 app_630
Messages 890 343 2.6 18 10.6 13.7 23.8 65.8 2 app_890
(Preallocated a 920 343 0.8 18 4.6 6.6 13.8 58.4 1 root
System memory info:
Total 94.1 MB
Used - cache 70.9 MB
B2G procs (PSS) 59.7 MB
Non-B2G procs 11.2 MB
Free + cache 23.2 MB
Free 1.9 MB
Cache 21.3 MB
Note that between the first and the second step there's a significant drop in memory consumption in both the b2g and communications apps. This is due to memory pressure events being delivered to both enabling them to free memory and make room for the SMS app. Low-memory notifications are only available if your kernel is configured correctly, without them OOM conditions are far more likely. To ensure that your device has low-memory notifications enabled do the following:
adb shell cat /sys/module/lowmemorykiller/parameters/notify_trigger
The output of this command should be '3584'. If you get anything else then your device might not be setup correctly.
Comment 9•12 years ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #8)
> Low-memory notifications are only
> available if your kernel is configured correctly, without them OOM
> conditions are far more likely. To ensure that your device has low-memory
> notifications enabled do the following:
>
> adb shell cat /sys/module/lowmemorykiller/parameters/notify_trigger
>
> The output of this command should be '3584'. If you get anything else then
> your device might not be setup correctly.
I think the kernel itself needs to be compiled with this support too.
| Assignee | ||
Comment 10•12 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #9)
> I think the kernel itself needs to be compiled with this support too.
Yes, I've overloaded the term "configured" in my post both to mean that the right module needs to be there (build-time kernel configuration) and that the parameter needs to be set properly (run-time kernel configuration) ;-)
Updated•12 years ago
|
Flags: needinfo?(pcheng)
| Reporter | ||
Comment 12•12 years ago
|
||
(In reply to Gabriele Svelto [:gsvelto] from comment #8)
> OK, I've just tried this on my Tarako and I cannot reproduce it. Both
> tapping on the notification as it shows up or the one in the tray panel open
> the SMS app correctly. In the latter case it takes a little bit more time
> but still gets you to the message just fine.
>
> I'm getting the feeling that there might be something wrong with the device
> this was tested on. Please do the following:
>
> - Try the STR while having the device connected to your PC in order to be
> able to invoke commands via adb
> - Run the STR up until point 2 included, then run 'adb shell b2g-info' and
> collect the output
> - Run the STR up until point 5 included, then run 'adb shell b2g-info' and
> collect the output
> - Tap on the notification and even if the SMS app doesn't launch quickly run
> 'adb shell b2g-info' and collect the output
>
> In my case the third scenario actually works and I can gather that
> information after the SMS app has opened correctly, this is the results I've
> took during my testing:
>
> - Incoming call connected
>
> NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
> b2g 80 1 42.3 0 25.2 28.2 36.2 146.2 0 root
> (Nuwa) 343 80 1.7 0 0.3 1.9 6.9 50.5 0 root
> Homescreen 355 343 5.2 18 6.1 8.9 17.2 63.6 8 app_355
> Communications 630 343 10.4 0 13.9 17.4 26.6 78.9 1 app_630
> (Preallocated a 782 343 0.8 18 4.7 7.0 13.9 57.4 1 root
>
> System memory info:
>
> Total 94.1 MB
> Used - cache 69.0 MB
> B2G procs (PSS) 63.4 MB
> Non-B2G procs 5.6 MB
> Free + cache 25.1 MB
> Free 2.4 MB
> Cache 22.7 MB
>
> - Message received and tray panel opened
>
> NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
> b2g 80 1 44.5 0 20.6 23.4 31.4 148.5 0 root
> (Nuwa) 343 80 1.8 0 0.2 1.7 6.8 50.5 0 root
> Homescreen 355 343 5.2 18 3.6 6.1 14.6 63.6 8 app_355
> Communications 630 343 10.8 0 6.8 9.9 19.0 77.9 1 app_630
> Usage 872 343 2.2 18 9.0 11.6 19.7 63.9 2 app_872
> (Preallocated a 890 343 0.0 18 0.4 0.7 2.4 53.4 1 root
>
> System memory info:
>
> Total 94.1 MB
> Used - cache 69.5 MB
> B2G procs (PSS) 53.4 MB
> Non-B2G procs 16.1 MB
> Free + cache 24.6 MB
> Free 2.0 MB
> Cache 22.6 MB
>
> - SMS app opened and message displayed
>
> NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
> b2g 80 1 46.4 0 21.0 23.5 31.9 147.2 0 root
> (Nuwa) 343 80 1.9 0 0.2 1.6 6.8 50.5 0 root
> Homescreen 355 343 5.2 18 0.8 2.9 11.7 63.6 8 app_355
> Communications 630 343 11.6 0 8.5 11.3 21.0 78.3 1 app_630
> Messages 890 343 2.6 18 10.6 13.7 23.8 65.8 2 app_890
> (Preallocated a 920 343 0.8 18 4.6 6.6 13.8 58.4 1 root
>
> System memory info:
>
> Total 94.1 MB
> Used - cache 70.9 MB
> B2G procs (PSS) 59.7 MB
> Non-B2G procs 11.2 MB
> Free + cache 23.2 MB
> Free 1.9 MB
> Cache 21.3 MB
>
> Note that between the first and the second step there's a significant drop
> in memory consumption in both the b2g and communications apps. This is due
> to memory pressure events being delivered to both enabling them to free
> memory and make room for the SMS app. Low-memory notifications are only
> available if your kernel is configured correctly, without them OOM
> conditions are far more likely. To ensure that your device has low-memory
> notifications enabled do the following:
>
> adb shell cat /sys/module/lowmemorykiller/parameters/notify_trigger
>
> The output of this command should be '3584'. If you get anything else then
> your device might not be setup correctly.
Thank you for the detailed analysis. Just checked on my device, the notify_trigger value is 3584 which means it has low-memory notifications enabled.
Here is what I get. It seems notification_trigger was killed by LMK.
my test build is the latest pvt build.
Gaia fbf194db193f12b0db070c87bc99f6bb42e28dc0
Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/5ff1d2a9fbc1
BuildID 20140404164001
Version 28.1
ro.build.version.incremental=eng.cltbld.20140404.200513
ro.build.date=Fri Apr 4 20:05:20 EDT 2014
1. Establish call connection
| megabytes |
NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 83 1 51.8 0 16.7 19.6 25.8 148.7 0 root
(Nuwa) 340 83 1.7 0 0.1 1.5 4.9 50.5 0 root
Communications 908 340 5.3 0 6.4 9.8 17.1 74.4 1 app_908
Homescreen 933 340 3.7 18 7.7 11.1 18.3 67.6 2 app_933
System memory info:
Total 97.5 MB
Used - cache 64.7 MB
B2G procs (PSS) 42.0 MB
Non-B2G procs 22.6 MB
Free + cache 32.8 MB
Free 13.6 MB
Cache 19.3 MB
Low-memory killer parameters:
notify_trigger 14336 KB
oom_adj min_free
0 1024 KB
1 2048 KB
2 4096 KB
6 6144 KB
8 18432 KB
10 18432 KB
2. Send a SMS, but there is NO notification on tray bar
| megabytes |
NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 83 1 52.5 0 16.5 18.8 25.6 149.2 0 root
(Nuwa) 340 83 1.8 0 0.2 1.2 5.0 50.5 0 root
Communications 908 340 5.5 0 4.8 7.2 15.1 74.4 1 app_908
Homescreen 933 340 3.7 18 1.0 3.4 11.3 67.6 2 app_933
Messages 998 340 3.9 18 12.2 14.7 22.7 68.7 6 app_998
(Preallocated a 1016 340 0.2 18 1.3 1.8 4.6 53.5 1 root
System memory info:
Total 97.5 MB
Used - cache 74.3 MB
B2G procs (PSS) 47.1 MB
Non-B2G procs 27.1 MB
Free + cache 23.2 MB
Free 6.1 MB
Cache 17.2 MB
Low-memory killer parameters:
notify_trigger 14336 KB
oom_adj min_free
0 1024 KB
1 2048 KB
2 4096 KB
6 6144 KB
8 18432 KB
10 18432 KB
3. Wait for notification, but notification didn't appear
| megabytes |
NAME PID PPID CPU(s) NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 83 1 53.6 0 17.7 19.9 25.7 147.7 0 root
(Nuwa) 340 83 1.8 0 0.2 1.3 4.8 50.5 0 root
Communications 908 340 6.1 0 5.7 8.1 14.8 73.4 1 app_908
Homescreen 933 340 3.7 18 1.2 3.4 9.8 66.6 2 app_933
(Preallocated a 1016 340 2.1 18 6.7 8.6 14.1 59.5 1 root
System memory info:
Total 97.5 MB
Used - cache 71.0 MB
B2G procs (PSS) 41.3 MB
Non-B2G procs 29.7 MB
Free + cache 26.5 MB
Free 5.3 MB
Cache 21.1 MB
Low-memory killer parameters:
notify_trigger 14336 KB
oom_adj min_free
0 1024 KB
1 2048 KB
2 4096 KB
6 6144 KB
8 18432 KB
10 18432 KB
Flags: needinfo?(pcheng)
Updated•12 years ago
|
Flags: needinfo?(gsvelto)
| Assignee | ||
Comment 13•12 years ago
|
||
I think I'm starting to see what's wrong:
(In reply to pcheng from comment #12)
> 1. Establish call connection
> [...]
> Non-B2G procs 22.6 MB
>
> 2. Send a SMS, but there is NO notification on tray bar
> [...]
> Non-B2G procs 27.1 MB
>
> 3. Wait for notification, but notification didn't appear
> [...]
> Non-B2G procs 29.7 MB
It seems that on your device the size of the non-B2G processes is *much* larger than on mine. Can you check what's taking so much memory? There's a ~15MiB difference between yours and mine.
Flags: needinfo?(gsvelto)
Comment 14•12 years ago
|
||
thinker isn't looking at this bug
Gabriele, seem like you are actively looking at this, do you mind taking? thanks
Assignee: tlee → nobody
Flags: needinfo?(gsvelto)
| Assignee | ||
Comment 15•12 years ago
|
||
Yup, taking it.
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Flags: needinfo?(gsvelto)
| Assignee | ||
Comment 16•12 years ago
|
||
Ignore my previous comment, the way b2g-info computes the non-B2G process size appears to be broken so that's not a good measure of what's going on.
| Assignee | ||
Comment 17•12 years ago
|
||
I've tried reproducing this again using today's build (flashed with the flash_tarako.sh script) and also using my local build. The revisions I used are the following:
gecko git 84c542b3df87dc05f7c22b5846cb95c22865ea3b / hg b850e0f09e61
gaia 643f3e6676cbb89c62708a9f7cbef2edc795a552
In both cases I couldn't reproduce the issue. To stress the phone even more I've loaded the medium reference workload and I can still receive and read messages without problems during a call. Looking at your data it seems that all the applications are taking significantly more memory on your device than mine and I don't know how to explain it. Could you re-test again using today's nightly build? From my side I'd be tempted to close this bug as WORKSFORME.
Flags: needinfo?(pcheng)
| Reporter | ||
Comment 18•12 years ago
|
||
I'm also unable to reproduce on latest build. SMS notification appears and SMS can be launched from tray bar, although it's a bit slow to open SMS.
Test build:
Gaia 643f3e6676cbb89c62708a9f7cbef2edc795a552
Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/a5e49b9b5c9f
BuildID 20140408164004
Version 28.1
ro.build.version.incremental=eng.cltbld.20140408.202416
ro.build.date=Tue Apr 8 20:24:23 EDT 2014
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: needinfo?(pcheng)
Resolution: --- → WORKSFORME
| Assignee | ||
Comment 19•12 years ago
|
||
(In reply to pcheng from comment #18)
> I'm also unable to reproduce on latest build. SMS notification appears and
> SMS can be launched from tray bar, although it's a bit slow to open SMS.
Cool, thanks for testing!
You need to log in
before you can comment on or make changes to this bug.
Description
•