Inkscape.org
Beyond the Basics Applying gradient to 19+ objects causes Inkscape to crash.
  1. #1
    thompsonmj thompsonmj @thompsonmj
    *

    I want to create a rectangular cluster of many circles and apply a color gradient to fill these circles.

    When I select the group of circle objects, click the gradient tool, and create the gradient line, Inkscape crashes when if have 19 or more circles selected (but not fewer).

    For example, in the image attached I can apply a gradient to the top group but the bottom crashes:

     

    Inkscape Eg
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    I'd ensure sharing of gradients is enabled.

     

    I'd also group the objects before applying the gradient.

    (After ungrouping.)

  3. #3
    thompsonmj thompsonmj @thompsonmj

    Actually, I updated in version to 1.2.1 from 0.9.something, and it seems to survive the original approach now.

     

    What do you mean by grouping first though? When I select them all and click Object > Group, then try to apply a gradient, it behaves oddly and turns all objects black.

     

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    Before proceeding further, I'd reset the preferences.

    I group them to apply the gradient spreading from objects on one side to objects on the other, rather than the gradient spreading across each object individually.

    The default gradient on groups is black because groups have no fill or stroke, but setting the gradient on that group will apply it to all objects contained in the group.

     

    New Document 1   Inkscape 2022 08 10 15 40 51
Inkscape Inkscape.org Inkscape Forum Beyond the Basics Applying gradient to 19+ objects causes Inkscape to crash.