Closed Bug 958003 Opened 10 years ago Closed 10 years ago

FxOS cannot pops up demo keyboard (in test_apps) after process manager kills it

Categories

(Firefox OS Graveyard :: Gaia::Keyboard, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: whsu, Assigned: GaryChen)

References

Details

(Whiteboard: [FT:System-Platform], [3rd-party-keyboard])

Attachments

(2 files)

Attached file Keyboard_Log_20140108
* Description:
  This problem happened on v1.4 build (Mozilla Central).
  Now, built-in keyboard can be successfully re-launched after process manager kill it.(Bug 944009 and Bug 953027)
  But FxOS still cannot successfully re-launch third party keyboard by using the same steps (Bug 953027)
  
  Following is the  demo video. Also, attaching the log(Keyboard_Log_20140108).
  - https://dc1.safesync.com/LMsJysyJ/WP_20140109_004.mp4?a=JtzbdGA0g1A

After I tap the text field, the log shows following message and 3rd party keyboard cannot be re-launched.
---------------------------------------------------------------------------------
E/GeckoConsole(  136): Content JS LOG at app://system.gaiamobile.org/js/keyboard_manager.js:366 in km_loadKeyboardLayout: === Enable keyboard: app://demo-keyboard.gaiamobile.org run as OOP ===
I/Gonk    (  136): Setting nice for pid 840 to 18
I/Gonk    (  136): Changed nice for pid 840 from 1 to 18.
I/Gonk    (  136): Setting nice for pid 840 to 1
I/Gonk    (  136): Changed nice for pid 840 from 18 to 1.
E/GeckoConsole(  840): Content JS LOG at app://demo-keyboard.gaiamobile.org/js/keyboard.js:86 in getVariant: getVariant 
E/GeckoConsole(  840): Content JS LOG at app://demo-keyboard.gaiamobile.org/js/layout.js:117 in KeyboardLayout.prototype.getPageView: getPageView main 
E/GeckoConsole(  840): Content JS LOG at app://demo-keyboard.gaiamobile.org/js/layout.js:131 in KeyboardLayout.prototype.getPageView: getPageView main
E/GeckoConsole(  840): Content JS LOG at app://demo-keyboard.gaiamobile.org/js/layout.js:136 in KeyboardLayout.prototype.getPageView: creating new page view
------------------------------------------------------------------------------------

* Precondition:
  Install a third party keyboard

* Reproduction steps:
  1. Launch the message app
  2. Tap the "To:" field
  3. Tap the "Globe" key after keyboard pops up
  4. After FxOS switches to third party keyboard, please launch the Membuster app to bust system memory.
  2. After all apps are killed including Membuster app, please launch the message app and tap "To:" field again.

* Expected result:
  FxOS can successfully re-launch the third party keyboard.

* Actual result:
  The keyboard cannot be re-launched.

* Reproduction build:( Mozilla Central - V1.4 )
 - Gaia      b7a7191f761933fd4878227488c75d09f5ba890c
 - Gecko     http://hg.mozilla.org/mozilla-central/rev/cf2d1bd796ea
 - BuildID   20140108040200
 - Version   29.0a1
blocking-b2g: --- → 1.4?
Whiteboard: [FT:System-Platform], [3rd-party-keyboard]
Assignee: nobody → gchen
Hi David and Rudy,
   After OOM keyboard will not get 'oninputcontextchange' at first time while keyboard app is using.
   So can not only depens on 'oninputcontextchange' to show keyboard layouts.

   please refer to current keyboard app: https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/js/keyboard.js#L422

   I have a quick path for this issue please help to review and give me some feedback.

   Thanks.
Attachment #8359090 - Flags: review?(dflanagan)
Attachment #8359090 - Flags: feedback?(rlu)
Summary: [Keyboard][V1.4] FxOS cannot pops up third party keyboard after process manager kills it → [Keyboard][V1.4] FxOS cannot pops up demo keyboard (in test_apps) after process manager kills it
@Rudy, OOPS~ I forgot to modify the title, thanks for the help!
Comment on attachment 8359090 [details] [review]
pull request: https://github.com/mozilla-b2g/gaia/pull/15242

I have not gone through the whole code of djf's new keyboard app, but I think this patch is necessary when the keyboard app is resumed after OOM'ed.

Thanks.
Attachment #8359090 - Flags: feedback?(rlu) → feedback+
Not blocking since the root cause is at the new keyboard codebase.
blocking-b2g: 1.4? → ---
Summary: [Keyboard][V1.4] FxOS cannot pops up demo keyboard (in test_apps) after process manager kills it → FxOS cannot pops up demo keyboard (in test_apps) after process manager kills it
master: https://github.com/mozilla-b2g/gaia/commit/5bbaeb30a48cfbc9bfc6a2eb68d5b30d72601a97
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.