Bug 248005 - SVG temporary artifacts (cleared by repaint)
Summary: SVG temporary artifacts (cleared by repaint)
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-16 17:47 PST by Jonathan Olson
Modified: 2022-11-23 17:48 PST (History)
4 users (show)

See Also:


Attachments
Shows the buggy artifact case, and that it's related to the red stroke of the trapezoid (14.27 KB, image/png)
2022-11-16 17:47 PST, Jonathan Olson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Olson 2022-11-16 17:47:36 PST
Created attachment 463564 [details]
Shows the buggy artifact case, and that it's related to the red stroke of the trapezoid

Overview: Visual artifacts (horizontal lines) appear randomly during animations, but are cleared by forcing a repaint.

Steps to reproduce (listed in https://github.com/phetsims/geometric-optics-basics/issues/31, with a video):

(I apologize, I don't have a minimum producible example, this uses a build of our code)

1. Load https://phet-dev.colorado.edu/html/geometric-optics-basics/1.2.0-dev.3/phet/geometric-optics-basics_all_phet.html?screens=1
2. Select "Light" on the upper-left combo box
3. Move the light (lamp) up and down so that the rays are entirely off the screen and then back on the screen, until artifacts appear

Actual Results: <attached example>, artifacts matching the stroke color of the right trapezoid appear as horizontal lines. They disappear when things move over them

Expected Results: No artifacts appearing.

Build Date & Hardware:

macOS 13.0.1
Version 16.1 (18614.2.9.1.12)

Additional information:

Shows up as an extension of the following SVG path:
<path d="M -42 -112 L 42 -134 L 42 134 L -42 112 L -42 -112 Z  M0 0" style="fill: rgb(255,255,255); stroke: red;stroke-width: 2;stroke-miterlimit: 10;"></path>

We're adding a workaround that force-repaints all of our SVG content every frame in Safari to work around this.

Tracking in https://github.com/phetsims/geometric-optics-basics/issues/31.
Comment 1 Alexey Proskuryakov 2022-11-16 19:41:16 PST
The website looks different from the screenshot - the marginal lines are black, and the screen has no red border.

I couldn't get this to reproduce with macOS 13.1 beta.
Comment 2 Radar WebKit Bug Importer 2022-11-23 17:48:15 PST
<rdar://problem/102636067>