Closed
Bug 991023
Opened 11 years ago
Closed 11 years ago
[Tarako] JS error in SystemMessageInternal.js after grouping apps in activities chain.
Categories
(Firefox OS Graveyard :: Gaia::Camera, defect)
Tracking
(blocking-b2g:1.3T+, b2g-v1.3T fixed)
Tracking | Status | |
---|---|---|
b2g-v1.3T | --- | fixed |
People
(Reporter: dwi2, Assigned: fabrice)
References
Details
(Keywords: regression, Whiteboard: OOM [priority][sprd295234])
Attachments
(2 files)
(deleted),
video/quicktime
|
Details | |
(deleted),
patch
|
airpingu
:
review+
|
Details | Diff | Splinter Review |
This happens on Tarako.
STR:
1. Open Camera app
2. tap 'view gallery' button on bottom left
Expect result:
Switch to Gallery app by activity
Actual result:
1/2 chance unable to switch to Gallery app
I saw these error log when I press 'view gallery' button
E/GeckoConsole( 81): [JavaScript Error: "[Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMessageSender.sendAsyncMessage]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js :: _sendMessageCommon :: line 620" data: no]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js" line: 620}]
E/GeckoConsole( 81): [JavaScript Error: "[Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMessageSender.sendAsyncMessage]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js :: _sendMessageCommon :: line 620" data: no]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js" line: 620}]
Comment 1•11 years ago
|
||
After discussing with :dwi2, this issue occurred after 'activity failed'.
updated STR:
1. launch gallery or video app
2. click share button
3. click sms app
4. activity failed
5. launch camera app
6. tap 'view gallery' button on bottom left.
Expect result:
Switch to Gallery app by activity
Actual result:
1/2 chance unable to switch to Gallery app.
After restarting FxOS, The gallery button which in camera app works fine.
---------------------------
Gaia 578fdccea89a88b417d296f8cf20b39099d44be4
Gecko 321494b801617a6bdf8260a483a80c0c09d49c4d
BuildID 20140401060054
Version 28.1
ro.build.version.incremental=76
ro.build.date=Tue Apr 1 06:43:27 CST 2014
Comment 2•11 years ago
|
||
Hi Gene,
I'm not sure who can investigate this JS error in SystemMessageInternal.js. Can you take a look and point to the right person? Thanks.
Flags: needinfo?(gene.lian)
The gaia checkout is different from mine. I don't experience this issue:
Gaia 769c3b00a43f03ca901414ec533f7b313a7684c5
Gecko 321494b801617a6bdf8260a483a80c0c09d49c4d
BuildID 20140401060054
Version 28.1
ro.build.version.incremental=76
ro.build.date=Tue Apr 1 06:43:27 CST 2014
Found out after trying a couple more times I could reproduce this issue.
Comment 6•11 years ago
|
||
This issue is not really related to system message. It's about nsIMessageSender.sendAsyncMessage() at [1]. I wonder the manager is no longer alive. Btw, is this a regression?
[1] https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/file/8c708a235380/dom/messages/SystemMessageInternal.js#l615
(In reply to GaryChen [:GaryChen][:PYChen][:陳柏宇] from comment #1)
> After discussing with :dwi2, this issue occurred after 'activity failed'.
>
> updated STR:
> 1. launch gallery or video app
> 2. click share button
> 3. click sms app
> 4. activity failed
How do you make this step failed? Would you please come by to discuss f2f? Thank you!
> 5. launch camera app
> 6. tap 'view gallery' button on bottom left.
>
> Expect result:
> Switch to Gallery app by activity
>
> Actual result:
> 1/2 chance unable to switch to Gallery app.
>
> After restarting FxOS, The gallery button which in camera app works fine.
>
> ---------------------------
> Gaia 578fdccea89a88b417d296f8cf20b39099d44be4
> Gecko 321494b801617a6bdf8260a483a80c0c09d49c4d
> BuildID 20140401060054
> Version 28.1
> ro.build.version.incremental=76
> ro.build.date=Tue Apr 1 06:43:27 CST 2014
Flags: needinfo?(gene.lian)
Updated•11 years ago
|
Flags: needinfo?(gene.lian)
Comment 7•11 years ago
|
||
(In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #6)
> This issue is not really related to system message. It's about
> nsIMessageSender.sendAsyncMessage() at [1]. I wonder the manager is no
> longer alive. Btw, is this a regression?
>
> [1]
> https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/file/8c708a235380/dom/
> messages/SystemMessageInternal.js#l615
>
> (In reply to GaryChen [:GaryChen][:PYChen][:陳柏宇] from comment #1)
> > After discussing with :dwi2, this issue occurred after 'activity failed'.
> >
> > updated STR:
> > 1. launch gallery or video app
> > 2. click share button
> > 3. click sms app
> > 4. activity failed
>
> How do you make this step failed? Would you please come by to discuss f2f?
> Thank you!
>
activity(SMS) OOM.
> > 5. launch camera app
> > 6. tap 'view gallery' button on bottom left.
> >
> > Expect result:
> > Switch to Gallery app by activity
> >
> > Actual result:
> > 1/2 chance unable to switch to Gallery app.
> >
> > After restarting FxOS, The gallery button which in camera app works fine.
> >
> > ---------------------------
> > Gaia 578fdccea89a88b417d296f8cf20b39099d44be4
> > Gecko 321494b801617a6bdf8260a483a80c0c09d49c4d
> > BuildID 20140401060054
> > Version 28.1
> > ro.build.version.incremental=76
> > ro.build.date=Tue Apr 1 06:43:27 CST 2014
Comment 8•11 years ago
|
||
We can consistently reproduce the same error message as comment 0.
1. Launch Gallery
2. Select a picture and "Share" to SMS
SMS could launch for the first time.
3. Tap on Home button
4. Repeat 1~2
--> You will see SMS could not launch for the second time. The error message is exactly the smae with comment 0.
Comment 9•11 years ago
|
||
This symptom is pretty much the same as the Bug 989727.
Flags: needinfo?(gene.lian)
Comment 10•11 years ago
|
||
Hi Fabrice, I wonder this is caused by Bug 982491. System Message doesn't have any changes on 1.3T recently.
Flags: needinfo?(fabrice)
Updated•11 years ago
|
Whiteboard: OOM
Comment 12•11 years ago
|
||
Could TAs please support to verify if this regression is caused by Bug 982491 (or not)? Thanks a lot!
Keywords: regressionwindow-wanted
Comment 14•11 years ago
|
||
(In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #12)
> Could TAs please support to verify if this regression is caused by Bug
> 982491 (or not)? Thanks a lot!
We don't have enough builds right now on Tarako to do windows.
Keywords: regressionwindow-wanted → regression
Updated•11 years ago
|
Whiteboard: OOM → OOM [MP_Blocker]
Updated•11 years ago
|
Whiteboard: OOM [MP_Blocker] → OOM [priority]
Updated•11 years ago
|
Summary: [Tarako]Unable to view Gallery from Camera app → [Tarako] JS error in SystemMessageInternal.js after grouping apps in activities chain.
Assignee | ||
Comment 17•11 years ago
|
||
(In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #10)
> Hi Fabrice, I wonder this is caused by Bug 982491. System Message doesn't
> have any changes on 1.3T recently.
Maybe, but I haven't been able to reproduce locally. To check if it's a regression from bug 982491, just set https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/file/c2a0ee7b4d58/b2g/app/b2g.js#l701 to false.
Flags: needinfo?(fabrice)
Comment 18•11 years ago
|
||
(In reply to Fabrice Desré [:fabrice] NOT READING BUGMAIL from comment #17)
> (In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #10)
> > Hi Fabrice, I wonder this is caused by Bug 982491. System Message doesn't
> > have any changes on 1.3T recently.
>
> Maybe, but I haven't been able to reproduce locally. To check if it's a
> regression from bug 982491, just set
> https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/file/c2a0ee7b4d58/b2g/
> app/b2g.js#l701 to false.
Yes, we tried setting "dom.ipc.reuse_parent_app" to false, and I remember that problem was gone. I can verify it again.
One more thing, when the problem happens, there is no way to recover it except rebooting.
Reporter | ||
Comment 19•11 years ago
|
||
I cannot reproduce it after I set "dom.ipc.reuse_parent_app" to false
Assignee | ||
Comment 21•11 years ago
|
||
(In reply to Joe Cheng [:jcheng] from comment #20)
> Fabrice, do you mind taking this? Thanks
As soon as I can reproduce, sure. That's still not the case.
Flags: needinfo?(fabrice)
Comment 22•11 years ago
|
||
:tzhuang will you be able to provide a video reproducing this bug? will this help Fabrice? thanks
Flags: needinfo?(tzhuang)
Reporter | ||
Comment 23•11 years ago
|
||
This video was recorded with latest PVT.
Gaia 98ce1340a6c27694f3b32a36b772e8da57caf19a
Gecko https://hg.mozilla.org/releases/mozilla-b2g28_v1_3t/rev/bdf9a55b4553
BuildID 20140409164001
Version 28.1
What I did are
1. Open Camera app
2. Switch to Gallery app using web activity by tapping bottom left corner of Camera app
3. Scroll a while to consume some memory.
4. Press home key, back to homescreen
5. Open Camera app again
6. tap bottom left corner again
You can see in the video that we're unable to switch to Gallery app anymore
Flags: needinfo?(tzhuang)
Reporter | ||
Comment 24•11 years ago
|
||
Hi Fabrice,
Do you mind to take a look? Thanks
Flags: needinfo?(fabrice)
Reporter | ||
Comment 26•11 years ago
|
||
(In reply to Tzu-Lin Huang [:dwi2][:tzhuang] from comment #24)
> Hi Fabrice,
>
> Would you mind to take a look? Thanks
> 1. Open Camera app
> 2. Switch to Gallery app using web activity by tapping bottom left corner of Camera app
> 3. Scroll a while to consume some memory.
> 4. Press home key, back to homescreen
The key to reproduce is step 4, if Camera app is killed due to memory shortage, then it could be reproduce 100%
> 5. Open Camera app again
> 6. tap bottom left corner again
We also found out that this symptom could be recovered.
For the case here, after step 6, if we
7. open Gallery app
8. back to homescreen
9. and open Camera app
Then it will be fine again to switch to Gallery app from Camera app.
Updated•11 years ago
|
Assignee | ||
Comment 27•11 years ago
|
||
ok, I can reproduce it now... will look at it tomorrow.
Assignee: nobody → fabrice
Flags: needinfo?(fabrice)
Assignee | ||
Comment 28•11 years ago
|
||
Hi Gene, when we share the same process with different apps, we were bailing out after unregistering a single message manager on child-process-shutdown. In the case of camera + gallery, we where registering handlers for both the camera app and the gallery, but only unregistering for the camera. Here's the log:
I/Gecko (30413): ###################################### forms.js loaded
I/Gecko (30413): ############################### browserElementPanning.js loaded
I/Gecko (30413): ######################## BrowserElementChildPreload.js loaded
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:30413 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (30413): -- SystemMessageManager 1397162256732 : init
I/Gecko (30226): -- SystemMessageInternal 1397162256749 : Got Register from app://camera.gaiamobile.org/index.html @ app://camera.gaiamobile.org/manifest.webapp
I/Gecko (30226): -- SystemMessageInternal 1397162256749 : listeners for app://camera.gaiamobile.org/manifest.webapp innerWinID 4
I/Gecko (30413): -- SystemMessageManager 1397162256758 : done
I/Gecko (30413): -- SystemMessageManager 1397162256758 : asking pending message for [activity]
I/Gecko (30226): -- SystemMessageInternal 1397162256761 : received SystemMessageManager:HasPendingMessages activity for app://camera.gaiamobile.org/index.html @ app://camera.gaiamobile.org/manifest.webapp
I/Gecko (30413): -- SystemMessageManager 1397162256764 : set message handler for [activity] [xpconnect wrapped nsIDOMSystemMessageCallback]
I/Gecko (30226): -- SystemMessageInternal 1397162256768 : received SystemMessageManager:GetPendingMessages activity for app://camera.gaiamobile.org/index.html @ app://camera.gaiamobile.org/manifest.webapp
I/Gecko (30413): -- SystemMessageManager 1397162256963 : receiveMessage SystemMessageManager:GetPendingMessages:Return for [activity] with manifest = app://camera.gaiamobile.org/manifest.webapp and uri = app://camera.gaiamobile.org/index.html
I/GeckoDump(30226): XXX FIXME : Got a mozContentEvent: activity-choice
I/Gecko (30226): -- SystemMessageInternal 1397162261249 : Sending activity {"id":"{ff0341f1-be88-4dfb-b8a7-184f8450a0ef}","payload":{"name":"browse","data":{"type":"photos"}},"target":{"filters":{"type":"photos"},"disposition":"window","href":"app://gallery.gaiamobile.org/index.html"}} for app://gallery.gaiamobile.org/index.html @ app://gallery.gaiamobile.org/manifest.webapp; extra: {"manifestURL":"app://camera.gaiamobile.org/manifest.webapp","pageURL":"app://camera.gaiamobile.org/index.html"}
I/Gecko (30226): -- SystemMessageInternal 1397162261265 : _sendMessageCommon to app://gallery.gaiamobile.org/index.html - app://gallery.gaiamobile.org/manifest.webapp
I/Gecko (30226): -- SystemMessageInternal 1397162261268 : Acquiring a CPU wake lock for page key = MDfPzBz1DDDOKr8JGuNzDcARsPA=
I/Gecko (30226): -- SystemMessageInternal 1397162261277 : Returned status of sending message: 2
I/Gecko (30226): -- SystemMessageInternal 1397162261285 : _getMessageConfigurator for type: activity
I/Gecko (30226): -- SystemMessageInternal 1397162261285 : @mozilla.org/dom/system-messages/configurator/activity;1 is registered, creating an instance
I/Gecko (30226): -- SystemMessageInternal 1397162261291 : Asking to open {"uri":"app://gallery.gaiamobile.org/index.html","manifest":"app://gallery.gaiamobile.org/manifest.webapp","type":"activity","extra":{"manifestURL":"app://camera.gaiamobile.org/manifest.webapp","pageURL":"app://camera.gaiamobile.org/index.html"},"target":{"filters":{"type":"photos"},"disposition":"window","href":"app://gallery.gaiamobile.org/index.html"},"onlyShowApp":false,"showApp":true}
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:30413 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (30413): ###################################### forms.js loaded
I/Gecko (30413): ############################### browserElementPanning.js loaded
I/Gecko (30413): ######################## BrowserElementChildPreload.js loaded
I/Gecko (30413): -- SystemMessageManager 1397162262635 : init
I/Gecko (30226): -- SystemMessageInternal 1397162262639 : Got Register from app://gallery.gaiamobile.org/index.html @ app://gallery.gaiamobile.org/manifest.webapp
I/Gecko (30226): -- SystemMessageInternal 1397162262639 : listeners for app://gallery.gaiamobile.org/manifest.webapp innerWinID 7
I/Gecko (30413): -- SystemMessageManager 1397162262641 : done
I/Gecko (30413): -- SystemMessageManager 1397162262642 : asking pending message for [activity]
I/Gecko (30226): -- SystemMessageInternal 1397162262643 : received SystemMessageManager:HasPendingMessages activity for app://gallery.gaiamobile.org/index.html @ app://gallery.gaiamobile.org/manifest.webapp
I/Gecko (30413): -- SystemMessageManager 1397162262646 : set message handler for [activity] [xpconnect wrapped nsIDOMSystemMessageCallback]
I/Gecko (30226): -- SystemMessageInternal 1397162262656 : received SystemMessageManager:GetPendingMessages activity for app://gallery.gaiamobile.org/index.html @ app://gallery.gaiamobile.org/manifest.webapp
I/Gecko (30413): -- SystemMessageManager 1397162262728 : receiveMessage SystemMessageManager:GetPendingMessages:Return for [activity] with manifest = app://gallery.gaiamobile.org/manifest.webapp and uri = app://gallery.gaiamobile.org/index.html
I/Gecko (30413): -- SystemMessageManager 1397162262729 : This page shouldn't handle the messages because its manifest = app://camera.gaiamobile.org/manifest.webapp and uri = app://camera.gaiamobile.org/index.html
I/Gecko (30413): -- SystemMessageManager 1397162262730 : receiveMessage SystemMessageManager:GetPendingMessages:Return for [activity] with manifest = app://gallery.gaiamobile.org/manifest.webapp and uri = app://gallery.gaiamobile.org/index.html
I/Gecko (30413): -- SystemMessageManager 1397162262734 : Dispatching {"id":"{ff0341f1-be88-4dfb-b8a7-184f8450a0ef}","payload":{"name":"browse","data":{"type":"photos"}},"target":{"filters":{"type":"photos"},"disposition":"window","href":"app://gallery.gaiamobile.org/index.html"}}
I/Gecko (30413):
I/Gecko (30413): -- SystemMessageManager 1397162262735 : @mozilla.org/dom/system-messages/wrapper/activity;1 is registered, creating an instance
I/Gecko (30413): -- SystemMessageManager 1397162262793 : wrapped = [xpconnect wrapped nsIDOMMozActivityRequestHandler]
I/Gecko (30226): -- SystemMessageInternal 1397162262888 : received SystemMessageManager:HandleMessagesDone activity with 1 for app://gallery.gaiamobile.org/index.html @ app://gallery.gaiamobile.org/manifest.webapp
I/Gecko (30226): -- SystemMessageInternal 1397162262890 : Unlocking the CPU wake lock now that the system messages have been successfully handled by its registered page.
I/Gecko (30226): -- SystemMessageInternal 1397162262890 : Releasing the CPU wake lock for page key = MDfPzBz1DDDOKr8JGuNzDcARsPA=
I/Gecko (30226):
I/Gecko (30226): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv
I/Gecko (30226):
I/Gecko (30226): ############ ErrorPage.js
I/Gecko (30226): -- SystemMessageInternal 1397162272033 : Got child-process-shutdown from [object ChromeMessageSender]
I/Gecko (30226):
I/Gecko (30226): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv
I/Gecko (30226):
I/Gecko (30226):
I/Gecko (30226): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv
I/Gecko (30226):
I/Gecko (30226):
I/Gecko (30226): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv
I/Gecko (30226):
I/Gecko (30226):
I/Gecko (30226): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv
I/Gecko (30226):
I/Gecko (30226):
I/Gecko (30226): ###!!! [Parent][MessageChannel] Error: Channel error: cannot send/recv
I/Gecko (30226):
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:31193 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (30226): -- SystemMessageInternal 1397162273350 : Got child-process-shutdown from [object ChromeMessageSender]
I/Gecko (30226): -- SystemMessageInternal 1397162273351 : remove the listener for app://camera.gaiamobile.org/manifest.webapp
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:30331 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:30413 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (31193): ###################################### forms.js loaded
I/Gecko (31193): ############################### browserElementPanning.js loaded
I/Gecko (31193): ######################## BrowserElementChildPreload.js loaded
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:30331 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (30226): [Parent 30226] WARNING: Failed to deliver SIGKILL to 30331!(3).: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc, line 118
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:30413 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (30226): [Parent 30226] WARNING: Failed to deliver SIGKILL to 30413!(3).: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/chrome/common/process_watcher_posix_sigchld.cc, line 118
I/Gecko (31294): ###################################### forms.js loaded
I/Gecko (31294): ############################### browserElementPanning.js loaded
I/Gecko (31294): ######################## BrowserElementChildPreload.js loaded
I/Gecko (30226): [Parent 30226] WARNING: waitpid failed pid:31294 errno:10: file /home/fabrice/dev/mozilla-b2g28_v1_3t/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gecko (31294): -- SystemMessageManager 1397162287778 : init
I/Gecko (30226): -- SystemMessageInternal 1397162287795 : Got Register from app://camera.gaiamobile.org/index.html @ app://camera.gaiamobile.org/manifest.webapp
I/Gecko (30226): -- SystemMessageInternal 1397162287795 : listeners for app://camera.gaiamobile.org/manifest.webapp innerWinID 4
I/Gecko (31294): -- SystemMessageManager 1397162287804 : done
I/Gecko (31294): -- SystemMessageManager 1397162287804 : asking pending message for [activity]
I/Gecko (30226): -- SystemMessageInternal 1397162287808 : received SystemMessageManager:HasPendingMessages activity for app://camera.gaiamobile.org/index.html @ app://camera.gaiamobile.org/manifest.webapp
I/Gecko (31294): -- SystemMessageManager 1397162287810 : set message handler for [activity] [xpconnect wrapped nsIDOMSystemMessageCallback]
I/Gecko (30226): -- SystemMessageInternal 1397162287826 : received SystemMessageManager:GetPendingMessages activity for app://camera.gaiamobile.org/index.html @ app://camera.gaiamobile.org/manifest.webapp
I/Gecko (31294): -- SystemMessageManager 1397162288057 : receiveMessage SystemMessageManager:GetPendingMessages:Return for [activity] with manifest = app://camera.gaiamobile.org/manifest.webapp and uri = app://camera.gaiamobile.org/index.html
I/Gecko (31351): ###################################### forms.js loaded
I/Gecko (31351): ############################### browserElementPanning.js loaded
I/Gecko (31351): ######################## BrowserElementChildPreload.js loaded
I/GeckoDump(30226): XXX FIXME : Got a mozContentEvent: activity-choice
I/Gecko (30226): -- SystemMessageInternal 1397162296629 : Sending activity {"id":"{ca860a27-8d25-461c-bef8-f887b77026fe}","payload":{"name":"browse","data":{"type":"photos"}},"target":{"filters":{"type":"photos"},"disposition":"window","href":"app://gallery.gaiamobile.org/index.html"}} for app://gallery.gaiamobile.org/index.html @ app://gallery.gaiamobile.org/manifest.webapp; extra: {"manifestURL":"app://camera.gaiamobile.org/manifest.webapp","pageURL":"app://camera.gaiamobile.org/index.html"}
I/Gecko (30226): -- SystemMessageInternal 1397162296630 : _sendMessageCommon to app://gallery.gaiamobile.org/index.html - app://gallery.gaiamobile.org/manifest.webapp
I/Gecko (30226): -- SystemMessageInternal 1397162296798 : Found 1 targets.
I/Gecko (30226): -- SystemMessageInternal 1397162296798 : target #0 winCounts=1
I/Gecko (30226): -- SystemMessageInternal 1397162296799 : Acquiring a CPU wake lock for page key = MDfPzBz1DDDOKr8JGuNzDcARsPA=
I/Gecko (30226): -- SystemMessageInternal 1397162296804 : Message manager is: [object ChromeMessageSender] (alive? yes)
E/GeckoConsole(30226): [JavaScript Error: "[Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMessageSender.sendAsyncMessage]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js :: _sendMessageCommon :: line 63" data: no]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js" line: 63}]
E/GeckoConsole(30226): [JavaScript Error: "[Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIMessageSender.sendAsyncMessage]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js :: _sendMessageCommon :: line 63" data: no]" {file: "jar:file:///system/b2g/omni.ja!/components/SystemMessageInternal.js" line: 63}]
^C
Comment 29•11 years ago
|
||
I'm looking into this patch (thanks Fabrice!) to see if there is any side effect. Please give me one hour to figure it out.
Comment 30•11 years ago
|
||
Comment on attachment 8404988 [details] [diff] [review]
bug991023.patch
Review of attachment 8404988 [details] [diff] [review]:
-----------------------------------------------------------------
Yes, this is right. Although looping through _listeners when some elements in _listeners have been deleted looks weird, but it still works for JS:
let temp = {a: 1, b: 2, c: 3, d: 4};
for (let p in temp) {
if (p == "a" || p == "c") {
delete temp[p];
}
}
And I think we don't need to worry about the same issue for "SystemMessageManager:Unregister" because it always comes from when a page is being closed instead of a process is being killed, which must be specific to a single app (not to multiple apps that share the same process). Just double check.
Attachment #8404988 -
Flags: review+
Assignee | ||
Comment 31•11 years ago
|
||
(In reply to Gene Lian [:gene] (needinfo? encouraged) from comment #30)
> And I think we don't need to worry about the same issue for
> "SystemMessageManager:Unregister" because it always comes from when a page
> is being closed instead of a process is being killed, which must be specific
> to a single app (not to multiple apps that share the same process). Just
> double check.
Yes, I checked that we're good with Unregister.
Assignee | ||
Comment 32•11 years ago
|
||
Comment 33•11 years ago
|
||
Just a reminder for uplifting. V1.3t still use |manifest| not |manifestURL|. ;)
Comment 34•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.5 S1 (9may)
Assignee | ||
Comment 35•11 years ago
|
||
status-b2g-v1.3T:
--- → fixed
Comment 36•11 years ago
|
||
But we can still meet this bug because of LMK.
LMK issue
01-01 00:39:44.424 <4>0[ 1864.216145] lowmem_shrink select 2550 (Send To Bluetoo), adj 10, size 5712, to kill
01-01 00:39:44.424 <4>0[ 1864.216215] lowmem_shrink send sigkill to 2550 (Send To Bluetoo), adj 10, size 5712
Comment 37•11 years ago
|
||
(In reply to James Zhang from comment #36)
> But we can still meet this bug because of LMK.
>
> LMK issue
> 01-01 00:39:44.424 <4>0[ 1864.216145] lowmem_shrink select 2550 (Send To
> Bluetoo), adj 10, size 5712, to kill
> 01-01 00:39:44.424 <4>0[ 1864.216215] lowmem_shrink send sigkill to 2550
> (Send To Bluetoo), adj 10, size 5712
Please ignore my comment.
Comment 38•11 years ago
|
||
We still meet this issue due to LMK. Fabrice, I think we should group "Send to Bluetooth" app to parent app.
Flags: needinfo?(fabrice)
Whiteboard: OOM [priority] → OOM [priority][sprd295234]
Assignee | ||
Comment 39•11 years ago
|
||
(In reply to James Zhang from comment #38)
> We still meet this issue due to LMK. Fabrice, I think we should group "Send
> to Bluetooth" app to parent app.
Maybe, but that does not belong to this bug ;)
Flags: needinfo?(fabrice)
Comment 40•11 years ago
|
||
Triage: No need in v1.4.
Comment 41•10 years ago
|
||
remake[about_RAM_performance]
You need to log in
before you can comment on or make changes to this bug.
Description
•