When loading linkedin.com (signed in) in MiniBrowser, I get lots of: <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero. (lldb) p dashes (DashArray) $0 = { size = 1, capacity = 0 } { [0] = 0 m_size = 1 m_capacity = 2 m_buffer = 0x000060800001c3b0 } so we're giving CG a dash array with a single zero item. This is from an SVG image; not sure which one.
Created attachment 286303 [details] FusionCharts generated bar chart
Thanks for the test case!
<rdar://problem/27887975>
I get the same errors on an intranet portal that uses FusionCharts XT. They seem to repeat for each frame of animation that the FusionChart js does to "grow" each column. When I load the attached SVG separately into my WKWebKit browser (http://github.com/kfix/MacPin), I see the same CGContextSetLineDash errors on stdout: $ ~/Applications/MacPin.localized/MacPin.app/Contents/MacOS/MacPin ~/fusionchart_webkit_bug_138555.svg ... [2016-08-17 16:54:42 +0000] <modules/MacPin/WebViewController.swift:71:102> [_webView(_:logDiagnosticMessage:description:)] navigation || standard [2016-08-17 16:54:42 +0000] <modules/MacPin/WebViewDelegates.swift:70:9> [webView(_:didStartProvisionalNavigation:)] 'file:///Users/jkorkames/fusionchart_webkit_bug_138555.svg' Aug 17 09:54:42 com.apple.WebKit.WebContent[5885] <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero. Aug 17 09:54:42 com.apple.WebKit.WebContent[5885] <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero. Aug 17 09:54:42 com.apple.WebKit.WebContent[5885] <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero. Aug 17 09:54:42 com.apple.WebKit.WebContent[5885] <Error>: CGContextSetLineDash: invalid dash array: at least one element must be non-zero. [2016-08-17 16:54:42 +0000] <modules/MacPin/WebViewDelegates.swift:247:16> [webView(_:didFinishNavigation:)] <MPWebView> `` [file:///Users/jkorkames/fusionchart_webkit_bug_138555.svg]
Created attachment 291165 [details] Simpler test case
The error message can be output for a case like this: <svg xmlns="http://www.w3.org/2000/svg"> <rect width="100" height="100" fill="yellow" stroke="green" stroke-width="1" stroke-dasharray="0"/> </svg> The reason of the error message is adding the attribute: stroke-dasharray="0" or stroke-dasharray="0, 0". At least none-zero element should be in the dash-array.
Created attachment 291169 [details] Patch
Comment on attachment 291169 [details] Patch Clearing flags on attachment: 291169 Committed r207030: <http://trac.webkit.org/changeset/207030>
All reviewed patches have been landed. Closing bug.