[Webkit-unassigned] [Bug 146501] New: [Mac] Numerous CGColor leaks in swipe gestures

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 1 00:40:49 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=146501

            Bug ID: 146501
           Summary: [Mac] Numerous CGColor leaks in swipe gestures
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: darin at apple.com, thorton at apple.com

* SUMMARY
[Mac] Numerous CGColor leaks in swipe gestures

Unsure of the exact steps to reproduce.

* LEAK
Leak: 0x7ffee400cfb0  size=80  zone: DefaultMallocZone_0x10ab96000   CGColor  CFType  CoreGraphics
    Call stack: [thread 0x10aa86000]: 
        | 0x1 
        | start 
        | NSApplicationMain 
        | -[NSApplication run] 
        | -[BrowserApplication sendEvent:] 
        | -[NSApplication sendEvent:] 
        | -[BrowserWindow sendEvent:] 
        | -[Window sendEvent:] 
        | -[NSWindow sendEvent:] 
        | -[NSWindow _reallySendEvent:isDelayedEvent:] 
        | -[BrowserWKView scrollWheel:] 
        | -[WKView scrollWheel:] 
        | WebKit::ViewGestureController::handleScrollWheelEvent(NSEvent*) 
        | WebKit::ViewGestureController::trackSwipeGesture(NSEvent*, WebKit::ViewGestureController::SwipeDirection) 
        | -[NSEvent trackSwipeEventWithOptions:dampenAmountThresholdMin:max:usingHandler:] 
        | -[NSEvent _trackSwipeEventWithOptions:dampenAmountThresholdMin:max:trackingDistance:axis:velocityFilterClass:usingHandler:] 
        | ___trackSwipeWithScrollEvent_block_invoke 
        | ___ZN6WebKit21ViewGestureController17trackSwipeGestureEP7NSEventNS0_14SwipeDirectionE_block_invoke 
        | WebKit::ViewGestureController::beginSwipeGesture(WebKit::WebBackForwardListItem*, WebKit::ViewGestureController::SwipeDirection) 
        | CGColorCreateGenericGray 
        | create_color 
        | CGTypeCreateInstance 
        | _CFRuntimeCreateInstance 
        | malloc_zone_malloc 

* NOTES
- ViewGestureController::beginSwipeGesture certainly looks like it leaks:

        [m_swipeShadowLayer setColors:@[
            (id)CGColorCreateGenericGray(0, 1.),
            (id)CGColorCreateGenericGray(0, 0.99),
            (id)CGColorCreateGenericGray(0, 0.98),
            (id)CGColorCreateGenericGray(0, 0.95),
            ...
        ]];

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150701/059dff2f/attachment-0001.html>


More information about the webkit-unassigned mailing list