Closed
Bug 1031227
Opened 11 years ago
Closed 11 years ago
System Message Manager try to access to a null variable
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1035074
blocking-b2g | 2.0+ |
People
(Reporter: borjasalguero, Assigned: amac)
Details
Attachments
(2 files, 2 obsolete files)
26.85 KB,
text/plain
|
Details | |
1.66 KB,
patch
|
Details | Diff | Splinter Review |
Checked with Flame, v2.0. STR:
- Use an App with push.
- Check that Im receiving push.
- Disconnect/Connect Wifi
EXPECTED:
- New push messages are received
CURRENTLY:
- When a new push message is received, I get the following error:
E/GeckoConsole( 1243): [JavaScript Error: "this._dispatchers is null" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageManager.js" line: 225}]
I'm retrieving the same bug when the screen is switched off due to the timeout of the screen.
Comment 2•11 years ago
|
||
(In reply to Borja Salguero (this week part-time in Gaia) [:borjasalguero] from comment #1)
> Fernando, could you take a look? Thanks!
Sure. Can you provide some logs?
Flags: needinfo?(frsela)
Updated•11 years ago
|
Assignee: nobody → frsela
Comment 3•11 years ago
|
||
Hi guys, the system message issue could also be affecting bug 1031257. But this is only the tip of the iceberg :O I am observing all kind of issues in the Dialer/Call Screen (calls not established, no need to talk of more complex scenarios such as call waiting of conference calls) where I am getting the error Borja mentions over and over again :-)
Comment 4•11 years ago
|
||
Renaming, since it's not Push bug but System Message
Severity: normal → blocker
blocking-b2g: --- → 2.0?
Summary: [Push] When the Wifi is switched off, Im not receiving push messages anymore → System Message Manager try to access to a null variable
Comment 5•11 years ago
|
||
German send me this traces. Thank you German
You can reproduce this with two phone calls, the second call have the issue.
Comment 6•11 years ago
|
||
I'll continue looking for the cause why this variable is null into these cases
Attachment #8448703 -
Flags: feedback?(amac)
Comment 7•11 years ago
|
||
Sorry, I ate an 's' in the variable name :p
Attachment #8448703 -
Attachment is obsolete: true
Attachment #8448703 -
Flags: feedback?(amac)
Attachment #8448710 -
Flags: feedback?(amac)
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 8448710 [details] [diff] [review]
Simple patch to avoid the crash
If this._dispatchers is null then the object has been destroyed already... I guess what's happening is that the parent process is answering some lingering request too late for them to be attended. And I think it would be better just to null out this._manifestURL and this._pageURL also on the uninit function (and that way this would just return not doing anything).
Assignee | ||
Updated•11 years ago
|
Attachment #8448710 -
Flags: feedback?(amac)
Comment 10•11 years ago
|
||
Ni Borja, is this related to loop ? What app are we exactly using ? Can you help understand the end user impact ?
Flags: needinfo?(borja.bugzilla)
Reporter | ||
Comment 11•11 years ago
|
||
Hi Bhavana. This is not directly related with Loop. This is related with System Messages, and as Loop is using Push Notifications (and for notifying them Gecko is using System Messages) we are affected about this issue.
This bug is affecting every protocol & API based on System Message, for example related with incoming call/messages (check https://bugzilla.mozilla.org/show_bug.cgi?id=1031227#c3), Push Notifications, IAC...
I hope it helps!
Flags: needinfo?(borja.bugzilla)
Updated•11 years ago
|
blocking-b2g: 2.0? → 2.0+
Assignee | ||
Comment 12•11 years ago
|
||
The problem happens when:
* A child process loads a page that sets a message handler.
* That sends a IPC message to the parent process asking for the pending messages
* Before the parent answer, the child process navigates away from the page that set the handler. MessageManager is destructed
* And when the parent answers with the SystemMessageManager:GetPendingMessages:Return message, the child process try to process it on a object that has been uninitialized.
I think the easiest solution is to nullify correctly the object on the destructor. This will cause the message to be ignored.
By the way, this will fix the crash but unless the crash is stopping some other process, it will not fix the original problem, still trying to reproduce that.
Attachment #8448710 -
Attachment is obsolete: true
Attachment #8452280 -
Flags: review?(gene.lian)
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to Antonio Manuel Amaya Calvo (:amac) from comment #12)
> Created attachment 8452280 [details] [diff] [review]
>
> By the way, this will fix the crash but unless the crash is stopping some
> other process, it will not fix the original problem, still trying to
> reproduce that.
Well, according to Borja, this actually fixed his problems with Push also... TBH I would like to know why this failing was making push fail too, but not going to look a gift horse in the mouth.
Comment 14•11 years ago
|
||
This issue has been reported and a better solution has been proposed over there.
Hi Antonio, I'd like to close this one as a dup. Please reopen it if you disagree. Thanks!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Comment 15•11 years ago
|
||
Comment on attachment 8452280 [details] [diff] [review]
V1. Nullify the manifestURL and the pageURL on the destructor
Review of attachment 8452280 [details] [diff] [review]:
-----------------------------------------------------------------
Bug 1035074 has already has a relatively better patch.
Attachment #8452280 -
Flags: review?(gene.lian)
Assignee | ||
Comment 16•11 years ago
|
||
(In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #15)
> Comment on attachment 8452280 [details] [diff] [review]
> V1. Nullify the manifestURL and the pageURL on the destructor
>
> Review of attachment 8452280 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Bug 1035074 has already has a relatively better patch.
That was Fernando proposed patch also :). I liked it better clearing the object on the destructor so no special code for the strange case is needed on the message handler, but I'm ok with either, thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•