Crash when uniting 2 piece

When I try to unite 2 pieces, after selecting the 2nd point of the 2nd piece, the program crashses

Unfortunaelty… this can be a known issue.

We suggest to not use the Union tool… especially if the 2 pieces have inlternal paths. It’s better if you use the op tools in draft to mirror,move, and / or rotate your points and curves to be able to create a piece that way. In fact I recenty proposed to eliminate the Union tool in Piece mode and move the functionality of the tool to Draft mode.

That said - to help me understand more what’s wrong with the Union tool - is it possible you could post (or PM me) your pattern / measurments and show or describe which pieces you are trying to join?

Thanks for the reply. I don’t have the pattern because I didn’t save before it crashed. I wasn’t doing anything serious, just playing around with it to see how it worked.

Fair enough. Like I said if you need to combine pieces it’s best done in draft mode which eliminates a whole bunch of issues.

Ich verwende das unite tool schon ab und zu, damit ich die aufwendigen Arbeiten im Zeichenmodus nicht durchführen muss. Probleme habe ich damit keine mehr.

I just checked the Union tool,

Something broke the tool. I will have to go back through the build histrory and find when it stopped working to find the cause.

I found what broke the tool. The tool broke when we updated from Qt 6.8.3 to Qt 6.11.1. Unanticipated consequences. :roll_eyes:

It had to do with the Pattern Piece fill… where the fill was never being set for the Union piece when created. When the Piece was getting painted - getting the fill type was returning a -1 index. Apprently with 6.8.3 a Qt::BrushStyle(-1) still returned a valid enum type. Not anymore. So setting the QBrush was throwing a seg default. Setting the fill type for a new Union piece fixes the issue.

All it took was adding “nobrush” as a default in the VAbstractPieceData() constructor:

m_fill(“nobrush”)

:slightly_smiling_face:

Wäre es dann so, dass beim Öffnen eines Schnitte, wo ich das Union Tool verwendet habe alles erschossen ist oder würde dieser Fehler nur beim Benutzen des Union Tools auftreten?

Only when creating a new Union Piece. For existing patterns before the July 27 2026 build the Union peiece already has a valid fill.

I expect to upload the fix later Fri so hopefully it makes the weekends release. If not there is always an artifact build that users with a Github account can access.

Fix has already been merged. TY Sue. :slight_smile: