Closed
Bug 1021429
Opened 10 years ago
Closed 10 years ago
[emulator][camera] Camera HAL for ICS emulator is unstable and causing gUM test case timeout
Categories
(Firefox OS Graveyard :: Emulator, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: schien, Assigned: ayang)
References
Details
Attachments
(2 files)
(deleted),
text/x-github-pull-request
|
mikeh
:
review+
|
Details |
(deleted),
patch
|
Details | Diff | Splinter Review |
According to bug 984274 comment #228, deadlock happened frequently while opening/closing camera HAL repetitively during the emulator mochitest.
Reporter | ||
Comment 1•10 years ago
|
||
@ayang, could you provide what you've found while investigating bug 984274? People can continue hunting the root case based on your work.
Flags: needinfo?(ayang)
Assignee | ||
Comment 2•10 years ago
|
||
A deadlock at EmulatedCameraDevice::WorkerThread::stopThread() in android camera emulator HAL EmulatedCameraDevice.cpp.
Flags: needinfo?(ayang)
Reporter | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 4•10 years ago
|
||
I think it is not a dup, I still saw the deadlock log after bug 1022705 landed.
https://tbpl.mozilla.org/php/getParsedLog.php?id=42028723&full=1&branch=b2g-inbound
Assignee | ||
Updated•10 years ago
|
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 5•10 years ago
|
||
It also blocks other tests like ImageCapture test in bug 1069222.
Assignee | ||
Comment 6•10 years ago
|
||
Fix emulated camera start/stop deadlock problem on try tests which open emulated camera preview.
Try result.
https://tbpl.mozilla.org/?tree=Try&rev=a3d17a2044f3
Assignee: nobody → ayang
Attachment #8495738 -
Flags: review?(mhabicher)
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Comment 8•10 years ago
|
||
Release on try looks good. Failures on debug are probably due to taking too long.
00:47:16 INFO - 14 INFO TEST-OK | /tests/b2g/components/test/mochitest/test_permission_gum_remember.html | took 52499ms
Comment 9•10 years ago
|
||
Comment on attachment 8495738 [details]
Wait for worker thread starting in startThread.
This looks good to me.
Attachment #8495738 -
Flags: review?(mhabicher) → review+
Assignee | ||
Comment 10•10 years ago
|
||
Hi schien, I try to fix the camera hal deadlock problem. There are 2 timeouts in try release test_permission_gum_remember.html.
Do you think they are camera deadlock problem or other issue?
https://tbpl.mozilla.org/?tree=Try&rev=a3d17a2044f3
Flags: needinfo?(schien)
Reporter | ||
Comment 11•10 years ago
|
||
Comment on attachment 8495741 [details] [diff] [review]
use camera hal fix and enable gum test
Review of attachment 8495741 [details] [diff] [review]:
-----------------------------------------------------------------
My guess is there are some more issue in the gum test cases. I'll suggest no to turn on these test cases until we fix it.
::: b2g/config/emulator/sources.xml
@@ +6,5 @@
> <!--original fetch url was https://git.mozilla.org/b2g-->
> <remote fetch="https://git.mozilla.org/b2g" name="b2gmozilla"/>
> <!--original fetch url was git://github.com/mozilla-b2g/-->
> <remote fetch="https://git.mozilla.org/b2g" name="b2g"/>
> + <remote fetch="https://github.com/alfredoyang" name="alfredo"/>
Why not commit your change directly to https://github.com/mozilla-b2g/android-development?
Reporter | ||
Updated•10 years ago
|
Flags: needinfo?(schien)
Assignee | ||
Comment 12•10 years ago
|
||
Comment on attachment 8495741 [details] [diff] [review]
use camera hal fix and enable gum test
Review of attachment 8495741 [details] [diff] [review]:
-----------------------------------------------------------------
::: b2g/config/emulator/sources.xml
@@ +6,5 @@
> <!--original fetch url was https://git.mozilla.org/b2g-->
> <remote fetch="https://git.mozilla.org/b2g" name="b2gmozilla"/>
> <!--original fetch url was git://github.com/mozilla-b2g/-->
> <remote fetch="https://git.mozilla.org/b2g" name="b2g"/>
> + <remote fetch="https://github.com/alfredoyang" name="alfredo"/>
Ya, that's what I want to do next. :)
Assignee | ||
Comment 13•10 years ago
|
||
Hi sheriff, please help to commit the pull-request. Thanks.
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 14•10 years ago
|
||
emu-fix: https://github.com/mozilla-b2g/android-development/commit/c99e41d49f0b98eade30814e52c1de9e818def68
Keywords: checkin-needed
Assignee | ||
Comment 15•10 years ago
|
||
The result looks to open/close camera rapidly.
https://tbpl.mozilla.org/?tree=Try&rev=5be38715812c
Assignee | ||
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•