You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Affinity freezes when selecting objects with dense/coincident node clusters (Wine d2d1 bug) #143
Selecting certain vector objects freezes Affinity indefinitely. The app is not
crashed, it is spinning on one core and never finishes.
This is a Wine bug in dlls/d2d1/geometry.c, not a problem with the install. d2d_geometry_resolve_beziers() subdivides overlapping bezier control
triangles until they separate. When several nodes sit on practically the same
coordinates, subdividing never separates them, and every split appends a
segment that is then tested against all earlier ones. The segment count grows
until memory runs out.
Reproduced with Wine 11.0 (wine-tkg) and 11.16. Diagnosed with gdb: 30 samples
over three minutes, 100% in memmove below d2d_geometry_sink_Close -> d2d_geometry_resolve_beziers -> d2d_geometry_split_bezier -> d2d_figure_insert_vertex.
Workaround without patching Wine: reduce the node count of the affected object
(simplify the curve, split it, or rasterise it).
Activity