Closed Bug 794353 Opened 14 years ago Closed 14 years ago

SystemMessages: free message manager references for killed children

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 793361
blocking-basecamp +

People

(Reporter: johnshih.bugs, Assigned: gwagner)

References

Details

It works fine on 2012-09-25 Build info gaia : 71e89d4338d59a86e8599abeda24dbfaf1c80e1a mozilla-central : 1c333645ec70bfce2176876e4bfaf24bfd4bbde5 Fail on 2012-09-26 Build info: gaia : 4a6ad03e36c585dd9130f1f079d543ef7f28fb75 mozilla-central : dbdde0fdca06e80e8c39880ba089a36a20d55073
blocking-basecamp: --- → ?
blocking-basecamp: ? → +
Summary: [dialer] Receive a call with no sound (vibration only) on locked/unlocked/sleep status → [dialer] Cannot receive a call with no sound (vibration only) on locked/unlocked/sleep status
Phillip, can you take a look?
Assignee: nobody → philipp
This is not specific to having sound turned on or off. Only the very first incoming phone call after booting the phone triggers the call screen. (I should add: only very very slowly. It takes about two rings for the screen to come on, and two more rings for the call screen to appear instead of the lock screen. This needs to (a) happen the other way around and (b) much faster.) Anyway, I see the following failure in logcat after enabling DEBUG_ALL in ril_consts: E/GeckoConsole( 106): [JavaScript Error: "NS_ERROR_NOT_INITIALIZED: Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMessageSender.sendAsyncMessage]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js" line: 82}] This typically means the iframe hosting the app that's the recipient that async message is no longer active and we have a stale message manager reference.
Component: General → DOM: Device Interfaces
OS: Linux → Gonk
Product: Boot2Gecko → Core
QA Contact: jshih
Hardware: x86_64 → ARM
Summary: [dialer] Cannot receive a call with no sound (vibration only) on locked/unlocked/sleep status → B2G: Failure to notify system message for subsequent incoming phone calls
I see, SystemMessageInternal.js line 82 is in `broadcastMessage()` which loops over message managers. I'm guessing this needs unregistering logic when children get killed (bug 777508). In the mean time we could "put the Java into JavaScript" by doing something like bug 791910.
Ok, I'm pretty sure we just need to do the same thing for SystemMessages that we also need to do for Wifi (bug 791911), Apps (bug 793361), Settings, RIL, etc. Morphing this bug again. Tentatively assigning to Gregor.
Assignee: philipp → anygregor
Blocks: 777508
Summary: B2G: Failure to notify system message for subsequent incoming phone calls → SystemMessages: free message manager references for killed children
No longer blocks: 777508
Depends on: 777508
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.