Closed Bug 1160980 Opened 10 years ago Closed 10 years ago

Service.request('getDeviceMemory') resolves to 0 upon boot.

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+, b2g-master fixed)

RESOLVED FIXED
2.2 S12 (15may)
blocking-b2g 2.5+
Tracking Status
b2g-master --- fixed

People

(Reporter: timdream, Assigned: timdream)

References

Details

(Keywords: regression)

Attachments

(1 file)

Saw following message in the newly flashed Flame from m-c. qawanted for v2.2. "InputWindowManager: totalMemory is 0" " at iwm_makeInputWindow (app://system.gaiamobile.org/gaia_build_defer_index.js:928:339)" Alternative way to verify: do |adb shell b2g-info| and see if there is a keyboard process.
The cause of the bug is bug 1150423 and is not in the 2.2 build.
Blocks: 1150423
blocking-b2g: 2.2? → 3.0+
Comment on attachment 8600817 [details] [review] [gaia] timdream:system-feature-mem > mozilla-b2g:master There are two way to fix this, but the second one will be blocked by bug 1094759. 1) This fix. 2) Return the promise of _getDeviceMemory() in _start() so bootstrap can only continue until it resolves. I don't know if that fix this actually and I don't know if we should block boot for that one call, so I ended up not to try (2). I don't know if any other methods wrapped in Services.request calls is affect by bug like this. We should really be careful and not to create start-up data race like the exact bug here in FeatureDetector. Thanks!
Attachment #8600817 - Flags: review?(alive)
Attachment #8600817 - Flags: feedback?(chens)
Comment on attachment 8600817 [details] [review] [gaia] timdream:system-feature-mem > mozilla-b2g:master \O/
Attachment #8600817 - Flags: review?(alive) → review+
Keywords: checkin-needed
Attachment #8600817 - Flags: feedback?(chens) → feedback+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S12 (15may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: