Closed Bug 939647 Opened 11 years ago Closed 11 years ago

Launch Video app causes crash based on Android JB (4.2.2)

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
1.3 Sprint 5 - 11/22

People

(Reporter: vliu, Assigned: vliu)

Details

Attachments

(1 file, 1 obsolete file)

STR to reproduce this issue.

1. Launches video app
2. Video crashes.
Attached patch bug-939647-fix.patch (obsolete) — Splinter Review
It should be the missing part when the patch of bug 922510 is landed. I Checked SurfaceTextureClient::dequeueBuffer(...) on Android JB(4.2.2) and its shouldn't call |fence->isValid()| instead of |fence.get()|.
Attachment #8333639 - Flags: review?(sotaro.ikeda.g)
Comment on attachment 8333639 [details] [diff] [review]
bug-939647-fix.patch

Review of attachment 8333639 [details] [diff] [review]:
-----------------------------------------------------------------

::: widget/gonk/nativewindow/GonkNativeWindowClientJB.cpp
@@ +221,2 @@
>      if (fence->isValid()) {
> +#endif

I want to prevent ifdef as less as possible. If the code is like following, we do not need ifdef.

>   if (fence.get() && fence->isValid()) {
(In reply to Sotaro Ikeda [:sotaro] from comment #2)
> Comment on attachment 8333639 [details] [diff] [review]
> bug-939647-fix.patch
> 
> Review of attachment 8333639 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: widget/gonk/nativewindow/GonkNativeWindowClientJB.cpp
> @@ +221,2 @@
> >      if (fence->isValid()) {
> > +#endif
> 
> I want to prevent ifdef as less as possible. If the code is like following,
> we do not need ifdef.
> 
> >   if (fence.get() && fence->isValid()) {

Cool! It seems the suggestion is better then my first patch. Can you please review again? Thanks.
Attachment #8333639 - Attachment is obsolete: true
Attachment #8333639 - Flags: review?(sotaro.ikeda.g)
Attachment #8333668 - Flags: review?(sotaro.ikeda.g)
Comment on attachment 8333668 [details] [diff] [review]
bug-939647-v2-fix.patch

Looks good. It seems better to ask a review also to mwu. I add mwu as a reviewer.
Attachment #8333668 - Flags: review?(sotaro.ikeda.g)
Attachment #8333668 - Flags: review?(mwu)
Attachment #8333668 - Flags: review+
Comment on attachment 8333668 [details] [diff] [review]
bug-939647-v2-fix.patch

Review of attachment 8333668 [details] [diff] [review]:
-----------------------------------------------------------------

Looks reasonable.
Attachment #8333668 - Flags: review?(mwu) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/facc5fa097c8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 Sprint 5 - 11/22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: