Closed
Bug 866657
Opened 12 years ago
Closed 7 years ago
B2G Emulator-x86: nsIAlarmHalService.setAlarm returns NS_ERROR_FAILURE
Categories
(Firefox OS Graveyard :: Emulator, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: vicamo, Unassigned)
References
Details
Crash Data
Attachments
(1 file)
(deleted),
text/plain
|
Details |
E/GeckoConsole( 802): [JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIAlarmHalService.setAlarm]" {file: "resource://gre/modules/AlarmService.jsm" line: 77}]
Reporter | ||
Comment 1•12 years ago
|
||
[ 0.098228] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.098299] rtc_cmos: probe of rtc_cmos failed with error -16
Goldfish ARM/MIPS uses goldfish_timer as platform rtc device, but x86 uses MC146818 instead. Looks like some thing wrong in the hardware emulation.
Reporter | ||
Updated•12 years ago
|
Severity: normal → enhancement
Reporter | ||
Updated•11 years ago
|
Blocks: b2g-emulator
Reporter | ||
Updated•11 years ago
|
Component: General → Emulator
Reporter | ||
Comment 2•11 years ago
|
||
(In reply to Vicamo Yang [:vicamo][:vyang] from comment #1)
> [ 0.098228] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
> [ 0.098299] rtc_cmos: probe of rtc_cmos failed with error -16
>
> Goldfish ARM/MIPS uses goldfish_timer as platform rtc device, but x86 uses
> MC146818 instead. Looks like some thing wrong in the hardware emulation.
The thing is getting worse here. Now the alarm backend initial procedure always tries to open /dev/alarm but it's meant to fail on x86 emulator variants. The 'sInternalLockCpuMonitor' variable is set to null then [1], but it's dereferenced in SetCpuSleepAllowed() and causes segmentation fault.
[1]: http://mxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp#973
[2]: http://mxr.mozilla.org/mozilla-central/source/hal/gonk/GonkHal.cpp#596
Reporter | ||
Comment 3•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Severity: enhancement → normal
Crash Signature: #1 0xb42e994f in mozilla::hal::SetCpuSleepAllowed (allowed=false) at hal/Hal.cpp:396
#2 0xb4c60528 in mozilla::dom::PowerManager::SetCpuSleepAllowed (this=0xade44800, aAllowed=false) at dom/power/PowerManager.cpp:182
#3 0xb480825e in mozilla::dom::Mo…
Priority: P5 → --
Reporter | ||
Comment 4•11 years ago
|
||
AOSP enabled Goldfish alarm driver in KitKat on x86 arch, too. [1] We should probably follow.
[1]: https://android.googlesource.com/kernel/goldfish/+/464d389734f72fd20a093a3cdaf20c4789e3f2c2
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•