Closed
Bug 979394
Opened 11 years ago
Closed 11 years ago
Ogg video thumbnail is corrupted
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
People
(Reporter: zcampbell, Assigned: sotaro)
References
Details
(Keywords: regression)
Attachments
(3 files, 2 obsolete files)
68.35 KB,
image/png
|
Details | |
3.48 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
820 bytes,
patch
|
nical
:
review+
|
Details | Diff | Splinter Review |
STR
1. Push this OGG file to the device SD card
https://github.com/mozilla-b2g/gaia/blob/master/tests/python/gaia-ui-tests/gaiatest/resources/VID_0001.ogg
2. Load the Video player app
3. Note the thumbnail
Device: Hamachi
Gaia 6df4533f14ec2645bb13d8a803a5151583ca13a8
Gecko https://hg.mozilla.org/mozilla-central/rev/529b86b92b1d
BuildID 20140304040200
Version 30.0a1
ro.build.version.incremental=324
ro.build.date=Thu Dec 19 14:04:55 CST 2013
Sorry I don't have a regression range for this - I only noticed it out of co-incidence when running a test.
Updated•11 years ago
|
Keywords: regression
Whiteboard: [regression]
Updated•11 years ago
|
blocking-b2g: --- → 1.4?
Keywords: regressionwindow-wanted
Updated•11 years ago
|
QA Contact: mvaughan
Comment 1•11 years ago
|
||
The following regression window was found using b2g-inbound builds:
- Last Working -
Device: Buri ENG v1.4 MOZ RIL
BuildID: 20140218064649
Gaia: a5b3110d25510a952417ba98a502250f374ef210
Gecko: 288cb11e26bd
Version: 30.0a1
Firmware Version: V1.2-device.cfg
- First Broken -
Device: Buri ENG v1.4 MOZ RIL
BuildID: 20140218065149
Gaia: a5b3110d25510a952417ba98a502250f374ef210
Gecko: a4a8f80f280c
Version: 30.0a1
Firmware Version: V1.2-device.cfg
The push log for these two builds do not yield any commits for some reason, but here is the URL in case it's useful: http://hg.mozilla.org/releases/mozilla-central/pushloghtml?fromchange=288cb11e26bd&tochange=a4a8f80f280c
Instead, here is the push log for the tinderbox regression window: http://hg.mozilla.org//mozilla-central/pushloghtml?fromchange=267e8340c47a&tochange=6660fdb0885b
Keywords: regressionwindow-wanted
Comment 2•11 years ago
|
||
jim or russ,
could one of you take a first look at this regression bug? if you pick this for investigation, assign it to yourself.
marking 1.4+ because it is regression issue.
thanks
hema
blocking-b2g: 1.4? → 1.4+
Flags: needinfo?(squibblyflabbetydoo)
Flags: needinfo?(rnicoletti)
Comment 3•11 years ago
|
||
This seems like the most likely commit: http://hg.mozilla.org/mozilla-central/rev/a4a8f80f280c
Flags: needinfo?(squibblyflabbetydoo)
Comment 4•11 years ago
|
||
I agree with Jim. The gecko change he referred to in comment# 3 seems the most likely source of the regression.
Flags: needinfo?(rnicoletti)
Comment 5•11 years ago
|
||
(In reply to Jim Porter (:squib) from comment #3)
> This seems like the most likely commit:
> http://hg.mozilla.org/mozilla-central/rev/a4a8f80f280c
Confirmed. Fixed the push log & it points dead center at that bug.
http://hg.mozilla.org/integration/b2g-inbound/pushloghtml?fromchange=288cb11e26bd&tochange=a4a8f80f280c
Blocks: 965440
Component: Gaia::Video → Video/Audio
Product: Firefox OS → Core
Version: unspecified → 30 Branch
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Comment 6•11 years ago
|
||
I investigated a little bit. This problem is triggered by Bug 965440 and caused by GrallocImage::DeprecatedGetAsSurface(). It does not handle image format correctly.
Assignee | ||
Updated•11 years ago
|
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Assignee | ||
Comment 7•11 years ago
|
||
Change to correct component.
Component: Video/Audio → Graphics: Layers
Assignee | ||
Comment 8•11 years ago
|
||
Confirmed the problem fixed on hamachi.
Assignee | ||
Updated•11 years ago
|
Attachment #8386153 -
Flags: review?(nical.bugzilla)
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 9•11 years ago
|
||
Adjust white space.
Attachment #8386153 -
Attachment is obsolete: true
Attachment #8386153 -
Flags: review?(nical.bugzilla)
Assignee | ||
Updated•11 years ago
|
Attachment #8386161 -
Flags: review?(nical.bugzilla)
Comment 10•11 years ago
|
||
Comment on attachment 8386161 [details] [diff] [review]
patch v2 - Fix YV12 color conversion at GrallocImage
Review of attachment 8386161 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/layers/GrallocImages.cpp
@@ +265,5 @@
>
> return imageSurface.forget();
> + } else if (format == HAL_PIXEL_FORMAT_YV12) {
> + gfx::ConvertYCbCrToRGB(mData,
> + gfx::SurfaceFormat::R5G6B5,
I'd rather have ImageFormatToSurfaceFormat(imageSurface->GetFormat()) instead of hard coding the format.
@@ +363,5 @@
> surface->Unmap();
> return surface;
> + } else if (format == HAL_PIXEL_FORMAT_YV12) {
> + gfx::ConvertYCbCrToRGB(mData,
> + gfx::SurfaceFormat::R5G6B5,
same remark about hard coding.
Attachment #8386161 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 11•11 years ago
|
||
(In reply to Nicolas Silva [:nical] from comment #10)
> Comment on attachment 8386161 [details] [diff] [review]
> patch v2 - Fix YV12 color conversion at GrallocImage
>
> Review of attachment 8386161 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: gfx/layers/GrallocImages.cpp
> @@ +265,5 @@
> >
> > return imageSurface.forget();
> > + } else if (format == HAL_PIXEL_FORMAT_YV12) {
> > + gfx::ConvertYCbCrToRGB(mData,
> > + gfx::SurfaceFormat::R5G6B5,
>
> I'd rather have ImageFormatToSurfaceFormat(imageSurface->GetFormat())
> instead of hard coding the format.
android::ColorConverter's capability limited to RGB565 conversion. And some code are shared with it. To minimize the change, I hard coded. I might be better to remove the hard coding. I am going to update the path.
Assignee | ||
Comment 12•11 years ago
|
||
Apply the comment. Carry "nical.bugzilla: review+".
Attachment #8386161 -
Attachment is obsolete: true
Attachment #8386856 -
Flags: review+
Assignee | ||
Comment 13•11 years ago
|
||
Assignee | ||
Comment 14•11 years ago
|
||
Comment 15•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
![]() |
||
Comment 16•11 years ago
|
||
For the record this forgot to add an Unmap() call at one of the return points. I just went ahead and fixed that in bug 980415 (which fixes a bunch of other similar brokenness) just before landing. Please be careful of that in future.
Assignee | ||
Comment 17•11 years ago
|
||
Thanks for the notification! I forgot to think about it :-(
Assignee | ||
Comment 18•11 years ago
|
||
"Easy to forget to call Unmap" problem seem to be fix by Bug 980233. But it might be better to fix about GrallocImage in this bug.
Assignee | ||
Comment 19•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #8387607 -
Flags: review?(nical.bugzilla)
Updated•11 years ago
|
Attachment #8387607 -
Flags: review?(nical.bugzilla) → review+
Assignee | ||
Comment 20•11 years ago
|
||
Comment 21•11 years ago
|
||
Updated•11 years ago
|
status-b2g-v1.4:
--- → fixed
status-firefox28:
--- → wontfix
status-firefox29:
--- → wontfix
status-firefox30:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•