Bug 189521 - Make GraphicsLayers ref-counted, so their tree can persist when disconnected from RenderLayerBackings
Summary: Make GraphicsLayers ref-counted, so their tree can persist when disconnected ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords: InRadar
: 189572 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-09-11 14:10 PDT by Simon Fraser (smfr)
Modified: 2018-09-14 13:35 PDT (History)
8 users (show)

See Also:


Attachments
Patch (87.72 KB, patch)
2018-09-11 14:14 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (96.60 KB, patch)
2018-09-11 14:44 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (97.86 KB, patch)
2018-09-11 14:58 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (99.14 KB, patch)
2018-09-11 15:29 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (101.39 KB, patch)
2018-09-11 15:40 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (102.49 KB, patch)
2018-09-11 15:51 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (103.09 KB, patch)
2018-09-11 16:03 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews123 for ios-simulator-wk2 (21.06 MB, application/zip)
2018-09-11 16:21 PDT, EWS Watchlist
no flags Details
Patch (102.68 KB, patch)
2018-09-11 16:22 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (102.68 KB, patch)
2018-09-11 17:49 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (102.49 KB, patch)
2018-09-11 19:10 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (104.37 KB, patch)
2018-09-11 19:46 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (104.87 KB, patch)
2018-09-11 19:57 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (105.33 KB, patch)
2018-09-11 21:35 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (104.52 KB, patch)
2018-09-11 21:58 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (103.83 KB, patch)
2018-09-11 22:26 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (104.17 KB, patch)
2018-09-11 23:11 PDT, Simon Fraser (smfr)
ews-watchlist: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.33 MB, application/zip)
2018-09-12 00:55 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews107 for mac-sierra-wk2 (3.29 MB, application/zip)
2018-09-12 01:06 PDT, EWS Watchlist
no flags Details
Patch (107.42 KB, patch)
2018-09-12 08:19 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-sierra-wk2 (3.17 MB, application/zip)
2018-09-12 09:35 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews123 for ios-simulator-wk2 (2.36 MB, application/zip)
2018-09-12 10:22 PDT, EWS Watchlist
no flags Details
Patch (133.13 KB, patch)
2018-09-13 18:29 PDT, Simon Fraser (smfr)
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2018-09-11 14:10:59 PDT
Make GraphicsLayers ref-counted, so their tree can persist when disconnected from RenderLayerBackings
Comment 1 Simon Fraser (smfr) 2018-09-11 14:14:18 PDT
Created attachment 349449 [details]
Patch
Comment 2 Tim Horton 2018-09-11 14:23:37 PDT
Comment on attachment 349449 [details]
Patch

Please remove the logging.
Comment 3 Radar WebKit Bug Importer 2018-09-11 14:30:53 PDT
<rdar://problem/44357032>
Comment 4 Simon Fraser (smfr) 2018-09-11 14:44:27 PDT Comment hidden (obsolete)
Comment 5 Simon Fraser (smfr) 2018-09-11 14:58:30 PDT Comment hidden (obsolete)
Comment 6 Simon Fraser (smfr) 2018-09-11 15:29:17 PDT Comment hidden (obsolete)
Comment 7 Simon Fraser (smfr) 2018-09-11 15:40:14 PDT Comment hidden (obsolete)
Comment 8 Simon Fraser (smfr) 2018-09-11 15:51:40 PDT
Created attachment 349483 [details]
Patch
Comment 9 Simon Fraser (smfr) 2018-09-11 16:03:44 PDT
Created attachment 349485 [details]
Patch
Comment 10 EWS Watchlist 2018-09-11 16:20:59 PDT
Comment on attachment 349449 [details]
Patch

Attachment 349449 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/9179534

New failing tests:
compositing/scrolling/touch-scroll-to-clip.html
Comment 11 EWS Watchlist 2018-09-11 16:21:01 PDT
Created attachment 349487 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 12 Simon Fraser (smfr) 2018-09-11 16:22:49 PDT Comment hidden (obsolete)
Comment 13 Simon Fraser (smfr) 2018-09-11 17:49:46 PDT Comment hidden (obsolete)
Comment 14 Simon Fraser (smfr) 2018-09-11 19:10:33 PDT Comment hidden (obsolete)
Comment 15 Simon Fraser (smfr) 2018-09-11 19:46:03 PDT Comment hidden (obsolete)
Comment 16 Simon Fraser (smfr) 2018-09-11 19:57:16 PDT Comment hidden (obsolete)
Comment 17 Simon Fraser (smfr) 2018-09-11 21:35:45 PDT Comment hidden (obsolete)
Comment 18 Simon Fraser (smfr) 2018-09-11 21:58:00 PDT Comment hidden (obsolete)
Comment 19 Simon Fraser (smfr) 2018-09-11 22:26:07 PDT Comment hidden (obsolete)
Comment 20 Simon Fraser (smfr) 2018-09-11 23:11:49 PDT
Created attachment 349525 [details]
Patch
Comment 21 EWS Watchlist 2018-09-12 00:55:28 PDT
Comment on attachment 349525 [details]
Patch

Attachment 349525 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/9188407

New failing tests:
compositing/scrolling/touch-scroll-to-clip.html
Comment 22 EWS Watchlist 2018-09-12 00:55:30 PDT
Created attachment 349529 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 23 EWS Watchlist 2018-09-12 01:06:27 PDT
Comment on attachment 349525 [details]
Patch

Attachment 349525 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/9188673

New failing tests:
pageoverlay/overlay-remove-reinsert-view.html
Comment 24 EWS Watchlist 2018-09-12 01:06:29 PDT
Created attachment 349530 [details]
Archive of layout-test-results from ews107 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 25 Simon Fraser (smfr) 2018-09-12 08:19:00 PDT
Created attachment 349547 [details]
Patch
Comment 26 EWS Watchlist 2018-09-12 09:35:09 PDT
Comment on attachment 349547 [details]
Patch

Attachment 349547 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/9192253

New failing tests:
pageoverlay/overlay-remove-reinsert-view.html
Comment 27 EWS Watchlist 2018-09-12 09:35:11 PDT
Created attachment 349556 [details]
Archive of layout-test-results from ews107 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 28 EWS Watchlist 2018-09-12 10:22:13 PDT
Comment on attachment 349547 [details]
Patch

Attachment 349547 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: https://webkit-queues.webkit.org/results/9192538

New failing tests:
compositing/scrolling/touch-scroll-to-clip.html
Comment 29 EWS Watchlist 2018-09-12 10:22:15 PDT
Created attachment 349559 [details]
Archive of layout-test-results from ews123 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews123  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 30 Simon Fraser (smfr) 2018-09-12 14:27:42 PDT
https://trac.webkit.org/r235953
Comment 31 Ryan Haddad 2018-09-13 10:21:02 PDT
Reverted r235953 for reason:

Caused layout test crashes under GuardMalloc.

Committed r235979: <https://trac.webkit.org/changeset/235979>
Comment 32 David Kilzer (:ddkilzer) 2018-09-13 10:33:06 PDT
(In reply to Ryan Haddad from comment #31)
> Reverted r235953 for reason:
> 
> Caused layout test crashes under GuardMalloc.
> 
> Committed r235979: <https://trac.webkit.org/changeset/235979>

Strangely, rolling this patch out also fixed 8 leaks on our internal leaks bot?!
Comment 33 David Kilzer (:ddkilzer) 2018-09-13 10:35:13 PDT
(In reply to David Kilzer (:ddkilzer) from comment #32)
> (In reply to Ryan Haddad from comment #31)
> > Reverted r235953 for reason:
> > 
> > Caused layout test crashes under GuardMalloc.
> > 
> > Committed r235979: <https://trac.webkit.org/changeset/235979>
> 
> Strangely, rolling this patch out also fixed 8 leaks on our internal leaks
> bot?!

Oops, I meant "static analyzer issues", not "leaks" above.
Comment 34 Ryan Haddad 2018-09-13 12:23:00 PDT
This also seems to have caused compositing/scrolling/touch-scroll-to-clip.html to fail on iOS Simulator:
--- /Volumes/Data/slave/ios-simulator-11-release-tests-wk2/build/layout-test-results/compositing/scrolling/touch-scroll-to-clip-expected.txt
+++ /Volumes/Data/slave/ios-simulator-11-release-tests-wk2/build/layout-test-results/compositing/scrolling/touch-scroll-to-clip-actual.txt
@@ -9,7 +9,18 @@
         (GraphicsLayer
           (position 8.00 8.00)
           (bounds 320.00 440.00)
-          (children 1
+          (children 2
+            (GraphicsLayer
+              (offsetFromRenderer width=-20 height=-20)
+              (position 20.00 20.00)
+              (bounds 280.00 400.00)
+              (children 1
+                (GraphicsLayer
+                  (offsetFromRenderer width=20 height=20)
+                  (bounds 280.00 500.00)
+                )
+              )
+            )
             (GraphicsLayer
               (offsetFromRenderer width=20 height=20)
               (position 20.00 20.00)

https://build.webkit.org/results/Apple%20iOS%2011%20Simulator%20Release%20WK2%20(Tests)/r235978%20(7401)/results.html
Comment 35 Simon Fraser (smfr) 2018-09-13 18:29:54 PDT
Created attachment 349720 [details]
Patch
Comment 36 Simon Fraser (smfr) 2018-09-14 12:52:26 PDT
https://trac.webkit.org/changeset/236016/webkit
Comment 37 Simon Fraser (smfr) 2018-09-14 13:35:33 PDT
*** Bug 189572 has been marked as a duplicate of this bug. ***