Closed Bug 859743 Opened 11 years ago Closed 11 years ago

SMS not received while browsing

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect, P1)

x86_64
Windows 7
defect

Tracking

(blocking-b2g:tef+, b2g18 fixed, b2g18-v1.0.1 fixed)

RESOLVED DUPLICATE of bug 860799
blocking-b2g tef+
Tracking Status
b2g18 --- fixed
b2g18-v1.0.1 --- fixed

People

(Reporter: juanpbf, Assigned: kk1fff)

References

Details

(Whiteboard: IOT, Spain, Ikura)

Attachments

(1 file)

Buildid "20130321070205", ikura.

SMS are not received while a web page is loading. It's necessary to wait until the web page is fully loaded to receive the SMS.

This has been reported by Telefonica Spain during the certification process as follows:

--------------------------------------------------------------

Testing procedure is:
1. Open the internet browser.
2. Load an URL (for instance  www.publico.es)
3. While the web page is loading, from another handset send a SMS to the DuT

Expected result:
The SMS should be received although the web page is loading.

Current result
The sms is not received until de web page is loaded. Sometimes even later.
--------------------------------------------------------------

My impression is that the SMS DOES arrive, but the user is not notified. It could be an issue more related to notifications. 

I have reproduced this issue, and sometimes the notification doesn't arrives until I open the SMS application directly.

Logs has been requested to Telefonica Spain. Will be added here when provided.

Marked as P1, since it's a blocker for Telefonica Spain certification process
Dependency with Telefonica Spain certification process [meta] added.
Hi, 

This is a blocking issue, nominating tef?

Thks!
David
blocking-b2g: --- → tef?
Dale, could this be somehow related to bug 845661?
blocking-b2g: tef? → tef+
Flags: needinfo?(dale)
It looks very likely, will block on it and remember to test
Depends on: 845661
Flags: needinfo?(dale)
Whiteboard: IOT, Spain, Ikura
Ken, could you help to take a look on this case? Thanks!
Flags: needinfo?(kchang)
Talked with Ken, it would be better to have logs for analysis. 
Marked it as "qawanted".
Flags: needinfo?(kchang)
Keywords: qawanted
Assignee: nobody → kchang
Patrick, it seems that process is fully running the browser function. please look into this bug.
Assignee: kchang → pwang
Hi, 

This is not happening now, not confirmed to be a device issue. I suggest to mark the bug as resolved/worksforme and reopen it if appears again. 

Thanks!
David
According to the comment 8, change the bug state.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
This doesn't always happen, but it happens when browsing complex page. My observation is that when SMS arriving, system message tries to open sms app and send system message to sms app, but the sms app is killed because of OOM before it can handle the system message.
(In reply to Patrick Wang [:kk1fff] from comment #10)
> This doesn't always happen, but it happens when browsing complex page. My
> observation is that when SMS arriving, system message tries to open sms app
> and send system message to sms app, but the sms app is killed because of OOM
> before it can handle the system message.

Based on this comment, I think it might be related with bug 847592.

Justin, do you think both issues are related?
Flags: needinfo?(justin.lebar+bug)
> My observation is that when SMS arriving, system message tries to open sms app and send system 
> message to sms app, but the sms app is killed because of OOM before it can handle the system message.

To be clear, you verified that the SMS app is actually killed by OOM by looking at dmseg?

Gaia probably doesn't give the SMS app mozapptype=critical.  Without this, apps that are expecting system messages can get OOMed by the foreground app.  This stands in contrast to the communications app, which (usually) doesn't get OOMed by the foreground app.

We walk a fine line here.  Some process has to have a higher priority than the other one.  If you give the SMS app mozapptype=critical, receiving an SMS can kill whatever app you're using.  OTOH if you give the app higher priority, you can miss an SMS.

What I think we may need a notion of "please retry delivering this system message again," but that becomes pretty complex, especially since system messages are not idempotent.
Flags: needinfo?(justin.lebar+bug)
(In reply to Justin Lebar [:jlebar] from comment #12)
> 
> To be clear, you verified that the SMS app is actually killed by OOM by
> looking at dmseg?
> 

I saw these in dmesg:
<4>[04-11 11:47:07.112] [28: kswapd0]select 2765 (Messages), adj 6, size 4970, to kill
<4>[04-11 11:47:07.112] [28: kswapd0]send sigkill to 2765 (Messages), adj 6, size 4970
I guess it's wrong that the SMS frame gets a priority equal to the other background processes.  We could give it either background_perceivable priority, or a new priority in-between background_perceivable and background.  Then receiving an SMS could kill a non-perceivable background process, which is probably what you want.

I'll file a bug.
Unagi Build: 20130411070205
Kernel: Dec 5th
Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/f671fa539473
Gaia   e7e338a765e22334b40ced41489a785941382c66

In the above build, I too see the issue with no receiving SMS messages while loading a webpage. In my test I loaded a content heavy website www.Gamespot.com. While loading I sent a sms message to the device and waited. Even after the website finished loading there was no SMS message. Only one i opened the Messaging app did I get notified. Attached is the log file from the time I started loading and sent the message till the website finished loading and was waiting for the Text to appear.
Attached file Log
Keywords: qawanted
Comment on attachment 736367 [details]
Log

We need the dmesg log, which is not the same as the logcat log.
It is happened again. See comment 16. Reopen it.
Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: WORKSFORME → ---
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: