Bug 62324 - [Chromium] Crash when closing a tab with accelerated 2d canvas
Summary: [Chromium] Crash when closing a tab with accelerated 2d canvas
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P1 Blocker
Assignee: Justin Novosad
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 14:17 PDT by Justin Novosad
Modified: 2011-06-08 23:42 PDT (History)
7 users (show)

See Also:


Attachments
Patch (2.64 KB, patch)
2011-06-08 15:23 PDT, Justin Novosad
no flags Details | Formatted Diff | Diff
Patch (3.35 KB, patch)
2011-06-08 15:49 PDT, Justin Novosad
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Novosad 2011-06-08 14:17:10 PDT
This is in reference to chromium bug 85309

Repro steps posted here:
http://code.google.com/p/chromium/issues/detail?id=85309

This is a Chrome release blocker
Comment 1 Justin Novosad 2011-06-08 15:23:30 PDT
Created attachment 96493 [details]
Patch
Comment 2 Justin Novosad 2011-06-08 15:26:50 PDT
No need to worry about cr-* test builds that will fail.  This patch depends on a skia change that has not yet rolled in.  Dependent change is pending review here:
http://codereview.appspot.com/4584048/
Comment 3 Stephen White 2011-06-08 15:29:48 PDT
This looks ok to me, but jamesr and brian should take a look.
Comment 4 James Robinson 2011-06-08 15:30:39 PDT
Comment on attachment 96493 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96493&action=review

You need to explain what's going on here, preferably in the ChangeLog.

> Source/WebCore/ChangeLog:8
> +        No new tests. (OOPS!)

This will fail an svn presubmit
Comment 5 Justin Novosad 2011-06-08 15:49:48 PDT
Created attachment 96497 [details]
Patch
Comment 6 Brian Salomon 2011-06-08 15:52:10 PDT
Comment on attachment 96497 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=96497&action=review

> Source/WebCore/platform/graphics/gpu/SharedGraphicsContext3D.cpp:126
> +        GrSafeUnref(m_grContext);

Minor: GrSafeUnref is now redundant, can be m_grContext->unref();
Comment 7 James Robinson 2011-06-08 15:52:23 PDT
Comment on attachment 96497 [details]
Patch

Are the two fixes for the same thing or not?
Comment 8 WebKit Review Bot 2011-06-08 15:54:05 PDT
Comment on attachment 96497 [details]
Patch

Attachment 96497 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/8776842
Comment 9 Justin Novosad 2011-06-08 15:57:37 PDT
(In reply to comment #7)
> (From update of attachment 96497 [details])
> Are the two fixes for the same thing or not?

It fixes the same test case.  The callback was the first thing to crash. When I fixed that, there was another crash waiting behind it.
Comment 10 Justin Novosad 2011-06-08 16:00:44 PDT
The skia change that fixes the build failure reported by the review bot is now in ToT skia:
http://code.google.com/p/skia/source/detail?r=1551
Comment 11 James Robinson 2011-06-08 16:07:32 PDT
You need to update the skia rev in Source/WebKit/chromium/DEPS before landing this.  You also need to be sure the DEPS file in chromium trunk is updated before landing this.

Ping this bug again for review after you've done those two.  This can't land before then.
Comment 12 James Robinson 2011-06-08 16:13:23 PDT
Comment on attachment 96497 [details]
Patch

R- until DEPS rolls, please flip back to review? once they've rolled in.
Comment 13 Vangelis Kokkevis 2011-06-08 18:25:15 PDT
(In reply to comment #12)
> (From update of attachment 96497 [details])
> R- until DEPS rolls, please flip back to review? once they've rolled in.

James, can you r+ this and I'll cq+ once the skia deps roll lands?
Comment 14 James Robinson 2011-06-08 19:36:12 PDT
Sure, update the bug when the rolls land.  Where are the bugs/codereviews/whatever for the rolls?
Comment 15 Vangelis Kokkevis 2011-06-08 21:41:13 PDT
(In reply to comment #14)
> Sure, update the bug when the rolls land.  Where are the bugs/codereviews/whatever for the rolls?

Skia rolled past 1551 which is what was needed for this CL to land

http://src.chromium.org/viewvc/chrome?view=rev&revision=88481
Comment 16 James Robinson 2011-06-08 21:43:36 PDT
It has to roll here as well or this will break bots: http://trac.webkit.org/browser/trunk/Source/WebKit/chromium/DEPS

should just need to increment chromium_rev to 88481 and make sure that already builds.  I'll start the process for that if nobody else has started it yet.
Comment 17 James Robinson 2011-06-08 21:47:26 PDT
Rev at https://bugs.webkit.org/show_bug.cgi?id=62353, seeing how the EWS bots like it.
Comment 18 James Robinson 2011-06-08 22:25:18 PDT
Roll going through EWS here: https://bugs.webkit.org/show_bug.cgi?id=62353
Comment 19 James Robinson 2011-06-08 22:53:23 PDT
Comment on attachment 96497 [details]
Patch

OK, Source/WebKit/chromium/DEPS roll landed (hope it sticks)
Comment 20 WebKit Review Bot 2011-06-08 23:40:55 PDT
Comment on attachment 96497 [details]
Patch

Clearing flags on attachment: 96497

Committed r88429: <http://trac.webkit.org/changeset/88429>
Comment 21 WebKit Review Bot 2011-06-08 23:41:01 PDT
All reviewed patches have been landed.  Closing bug.
Comment 22 James Robinson 2011-06-08 23:42:37 PDT
drovering...