Closed
Bug 911387
Opened 11 years ago
Closed 11 years ago
[Buri][Camera] Frequent "Picture not saved errors" when running nightly
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
People
(Reporter: marcia, Assigned: sotaro)
References
Details
(Keywords: regression, Whiteboard: [fromAutomation][xfail])
Attachments
(3 files, 1 obsolete file)
Seen while running Buri on the latest nightly
STR:
1) Launch Build ID: 20130830040204
2) Launch Camera App
3) Take a vertical picture with the camera
4) Take a horizontal picture with the camera
5) Receive the attached error
Build ID: 20130830040204
Gecko: http://hg.mozilla.org/mozilla-central/rev/c7459bc8e449
Gaia: 407fbfb6a9de68ec4db2f0f3dc6c67463e293f47
Platform Version: 26.0a1
Reporter | ||
Comment 1•11 years ago
|
||
Updated•11 years ago
|
Keywords: regression,
regressionwindow-wanted
Reporter | ||
Comment 2•11 years ago
|
||
I am not seeing this using today's 2013-09-03-04-02-04 buri build, so resolving this as WFM. Will reopen if it seen again.
Status: NEW → RESOLVED
Closed: 11 years ago
Keywords: regressionwindow-wanted
Resolution: --- → WORKSFORME
Reporter | ||
Comment 3•11 years ago
|
||
I did see this again when testing yesterday's Buri build, but I could not reproduce it reliably. Seems to happen when I pressed the camera button in rapid fire succession.
Updated•11 years ago
|
blocking-b2g: koi? → ---
Comment 4•11 years ago
|
||
From the logcat in comment 1, all I see out of place is:
I/Gecko ( 505): setBufferCount: client owns some buffers
E/SurfaceTextureClient( 144): ISurfaceTexture::setBufferCount(7) returned Invalid argument
E/QCameraHWI_Preview( 144): set_buffer_count failed: Invalid argument (22)
E/QCameraHWI_Preview( 144): virtual android::status_t android::QCameraStream_preview::initDisplayBuffers(): cannot get memory from surface texture client, ret = -2147483648
E/QCameraHWI( 144): android::status_t android::QCameraHardwareInterface::startPreview2(): X error - can't start stream!
But I'm not sure this is related to the error screenshot in comment 0.
Comment 5•11 years ago
|
||
(In reply to Marcia Knous [:marcia] from comment #3)
> I did see this again when testing yesterday's Buri build, but I could not
> reproduce it reliably. Seems to happen when I pressed the camera button in
> rapid fire succession.
I agree with this. We are seeing it reliably and repeatedly in the test automation that takes 3 photos in a row. The test does go very quickly too.
Comment 6•11 years ago
|
||
Reopening for more investigation.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Comment 7•11 years ago
|
||
I can replicate this manually by just doing what the automated test does.
you need to do it quickly, with left hand on the thumbnail and right hand on the bottom toolbar (or the opposite if you're left handed!)
STR:
1. Load camera
2. Tap capture photo button
3. Tap the thumbnail (at top of camera app)
4. Tap camera app in the bottom menu bar
5. Tap the capture photo button again
Repeat this 2-3 times quickly and you will surely see the error.
Device Hamachi
Gecko http://hg.mozilla.org/mozilla-central/rev/aa986b6ce882
Gaia 959ac2f692d85072ffdc3d16a041b5bf4735ae59
BuildID 20131010040202
Version 27.0a1
Comment 8•11 years ago
|
||
Couple of questions:
1. Does this reproduce on 1.1?
2. Can we try getting a regression window again?
If it does not reproduce on 1.1, this should be nomed for koi.
Keywords: regressionwindow-wanted
Updated•11 years ago
|
Whiteboard: [fromAutomation]
Updated•11 years ago
|
Whiteboard: [fromAutomation] → [fromAutomation][xfail]
Comment 9•11 years ago
|
||
Sotaro - See the below IRC chat - we're thinking this might be a gfx regression instead of a camera regression. What do you think? Do you think this gfx related?
12:06 PM <jsmith> mikeh: Any chance you could help out with looking into bug 911387? We've currently turned off the associated camera automated test on device, but I'd like to get that test turned back on. I have a contractor looking into identifying when it regressed as well.
12:09 PM <mikeh> jsmith: that log is full of errors.
12:09 PM <mikeh> jsmith: looks like the camera couldn't start the preview stream--out of memory.
12:11 PM <mikeh> jsmith: "cannot get memory from surface texture client" / "startPreview2(): X error - can't start stream!"
12:11 PM <jsmith> mikeh: Hmm...so is that gfx related potentially, less so of the actual camera code?
12:11 PM → ahubenya joined (ahubenya@moz-BB506F61.hsd1.wa.comcast.net)
12:11 PM <mikeh> jsmith: it looks like--I'd get sotaro's opinion on this one.
12:12 PM <jsmith> mikeh: Okay. I'll needinfo sotaro on the bug.
Flags: needinfo?(sotaro.ikeda.g)
Assignee | ||
Comment 10•11 years ago
|
||
I think it is not camera related. The codes around camera is basically same. Within other codes, gfx is most possible.
Flags: needinfo?(sotaro.ikeda.g)
Assignee | ||
Comment 11•11 years ago
|
||
Bt STR in Comment 7, I can reproduce the problem. I got following log. It seem like genlock problem.
> E libgenlock: perform_lock_unlock_operation: GENLOCK_IOC_DREADLOCK failed (lockType0x0, err=Invalid argument fd=60)
> E QCameraHWI_Preview: putBufferToSurface: genlock_unlock_buffer failed, handle =0x10ba450
Assignee | ||
Updated•11 years ago
|
blocking-b2g: --- → koi?
Component: Gaia::Camera → Graphics: Layers
Product: Boot2Gecko → Core
Assignee | ||
Comment 12•11 years ago
|
||
> 1. Does this reproduce on 1.1?
> 2. Can we try getting a regression window again?
>
> If it does not reproduce on 1.1, this should be nomed for koi.
From the symptom, it seems like the problem happens since b2gv1.2.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → sotaro.ikeda.g
Comment 13•11 years ago
|
||
At this stage, I would rather not fix this for 1.2 - it is not really a common user behavior - but we should consider it for 1.3.
blocking-b2g: koi? → 1.3?
Comment 14•11 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #13)
> At this stage, I would rather not fix this for 1.2 - it is not really a
> common user behavior - but we should consider it for 1.3.
Disagree - we do not tolerate introducing major regressions into FxOS releases. We would have to permanently xfail the test on 1.2, which I don't think is acceptable. We can only not block on regressions that are minor. This isn't minor.
blocking-b2g: 1.3? → koi?
Updated•11 years ago
|
QA Contact: gbennett → ktucker
Comment 15•11 years ago
|
||
This issue does not reproduce on 07/13 Buri v 1.2.0 Mozilla RIL
Environmental Variables
Device: Buri 1.2.0 Mozilla RIL
Build ID: 20130713050718
Gecko: http://hg.mozilla.org/mozilla-central/rev/32c3ccd8946c
Gaia: fd4a4675ec44ab459b49b17606557024b09dbefe
Platform Version: 25.0a1
No error saving pictures when following the original steps and the steps from comment 7.
This issue reproduces on the 07/14 Buri v 1.2.0 Mozilla RIL
Environmental Variables
Device: Buri v 1.2.0 Mozilla RIL
Build ID: 20130714030201
Gecko: http://hg.mozilla.org/mozilla-central/rev/18467a85acf6
Gaia: 6724eb7733dd425b65027d0c2fd414bc9b74d624
Platform Version: 25.0a1
The save error message is shown when following the steps in comment 7.
I could not reproduce this issue on Leo v 1.1.0 COM RIL
Environmental Variables
Device: Leo v 1.1.0 COM RIL
Build ID: 20131001041206
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/c630289d6388
Gaia: 02b975e6ce12922928c74276ac7d19432a03f126
Platform Version: 18.1
RIL Version: 01.01.00.019.240
Pictures are saved without error following the original steps and the steps from comment 7.
Keywords: regressionwindow-wanted
QA Contact: ktucker → gbennett
Updated•11 years ago
|
QA Contact: gbennett → ktucker
Comment 16•11 years ago
|
||
Something changed in today's build?
This is passing now!
Device Hamachi
Gecko http://hg.mozilla.org/mozilla-central/rev/182b8450e32f
Gaia d544afff519a4930dec372c6406b365d27bb9cba
BuildID 20131020040204
Version 27.0a1
Comment 17•11 years ago
|
||
To clarify: sometimes passing but still getting a failure. I wouldn't mark this resolved yet without further clarification.
Comment 19•11 years ago
|
||
(In reply to Preeti Raghunath(:Preeti) from comment #18)
> Regression + bad UX hence a koi+
Bad UX because of "I pressed the camera button in rapid fire succession"?
Updated•11 years ago
|
Assignee: sotaro.ikeda.g → nobody
Comment 20•11 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #19)
> (In reply to Preeti Raghunath(:Preeti) from comment #18)
> > Regression + bad UX hence a koi+
>
> Bad UX because of "I pressed the camera button in rapid fire succession"?
It's a regression & it's blocking a test that's running fine for multiple months. Our operators we work with are not tolerant of regressions unless they are non-noticable, so we can't tolerate a simple multiple picture test like this. It won't survive a certification process.
Comment 21•11 years ago
|
||
Not arguing koi+, just was wondering about "bad UX" comment.
Updated•11 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 22•11 years ago
|
||
From the debugging, the source cause of the problem is genlock failure. That causes the incomplete preview stop procedure, and then causes failure of start preview. Finally reached to failure of taking a picture.
Assignee | ||
Comment 23•11 years ago
|
||
The patch add handling LayerManagerComposite::ClearCachedResources() called case because of application go to background.
Assignee | ||
Comment 24•11 years ago
|
||
By applying the patch, I did not sees a problem in Comment 7 on master hamachi.
Assignee | ||
Updated•11 years ago
|
Attachment #826951 -
Flags: review?(nical.bugzilla)
Comment 25•11 years ago
|
||
Comment on attachment 826951 [details] [diff] [review]
patch - Add calling CompositableBackendSpecificData::ClearData() in Detach()
Review of attachment 826951 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/composite/CompositableHost.h
@@ +265,5 @@
> {
> + if (mBackendData) {
> + mBackendData->ClearData();
> + }
> +
It would be more correct to place this inside the if block below.
Attachment #826951 -
Flags: review?(nical.bugzilla) → review-
Assignee | ||
Comment 26•11 years ago
|
||
update the place to call ClearData().
Attachment #826951 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #827387 -
Flags: review?(nical.bugzilla)
Comment 27•11 years ago
|
||
Comment on attachment 827387 [details] [diff] [review]
patch v2 - Add calling CompositableBackendSpecificData::ClearData() in Detach()
Review of attachment 827387 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks!
Attachment #827387 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 28•11 years ago
|
||
Keywords: checkin-needed
Comment 29•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 30•11 years ago
|
||
status-b2g-v1.2:
--- → fixed
status-firefox26:
--- → wontfix
status-firefox27:
--- → wontfix
status-firefox28:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•