Vertices turn black with box selection when no constraints are visible

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
mcv100
Posts: 4
Joined: Sun May 02, 2021 12:26 pm

Vertices turn black with box selection when no constraints are visible

Postby mcv100 » Sun May 02, 2021 1:19 pm

I'm seeing a strange issue in the Sketcher, where all vertices (including the origin) turn black after a box selection, unless there are constraint symbols visible. I can reproduce this issue consistently and very easily, even on a fresh 0.19.2 install with all preferences reset. Just make a new file, go into part design, new body, new sketch and draw a rectangle.

The normal behaviour (vertices don't turn black).
Before making (empty) box selection:
normal_before.png
normal_before.png (36.84 KiB) Viewed 547 times

After making (empty) box selection:
normal_after.png
normal_after.png (35.93 KiB) Viewed 547 times


Now, after deletion of the visible (parallel) constraints.
Before making (empty) box selection:
issue_before.png
issue_before.png (33.47 KiB) Viewed 547 times

After making (empty) box selection:
issue_after.png
issue_after.png (32.52 KiB) Viewed 547 times

Adding any constraint with a visible icon again makes the vertices appear normal again. Can anyone reproduce this as well?

OS: Windows 10 Version 1909
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/Netherlands (en_NL)
chrisb
Posts: 35223
Joined: Tue Mar 17, 2015 9:14 am

Re: Vertices turn black with box selection when no constraints are visible

Postby chrisb » Sun May 02, 2021 3:06 pm

Hi and welcome to the forum!

I cannot reproduce, but we have seen this before. There was a discussion about it not long ago. Can you reproduce it when you restart FreeCAD in the same way?

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24720 (Git)
Build type: Release
Branch: master
Hash: 8b0c58d1b45017ad42bf0fa8f827f1cf22a398e7
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
papyblaise
Posts: 3606
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Vertices turn black with box selection when no constraints are visible

Postby papyblaise » Sun May 02, 2021 3:19 pm

it did it to me, then more, then redo this day with the new daily version , but isn't catastrofic
mcv100
Posts: 4
Joined: Sun May 02, 2021 12:26 pm

Re: Vertices turn black with box selection when no constraints are visible

Postby mcv100 » Sun May 02, 2021 5:46 pm

chrisb wrote: Sun May 02, 2021 3:06 pm Hi and welcome to the forum!

I cannot reproduce, but we have seen this before. There was a discussion about it not long ago. Can you reproduce it when you restart FreeCAD in the same way?
Thanks for the welcome :)

Yes, I can reproduce this at a fresh FreeCAD start, even after a PC restart. I also tried 0.19.1, but I had the same problem. I don't remember seeing this in 0.18 before.

It's indeed not catastrophic, just a bit annoying for the first parts of a sketch when you don't have constraints yet and you are trying to select vertices for a coincidence constraint for example. I mostly use box selection because it's much quicker than trying to aim for a small point directly.

By the way, the quickest way to observe this issue for me is just to start a new sketch, immediately try to do a box select and observe if the origin point turns black.
User avatar
papyblaise
Posts: 3606
Joined: Thu Jun 13, 2019 4:28 pm
Location: France

Re: Vertices turn black with box selection when no constraints are visible

Postby papyblaise » Sun May 02, 2021 7:04 pm

Exactly the same and for me, even the outline of the box is black and not white
mcv100
Posts: 4
Joined: Sun May 02, 2021 12:26 pm

Re: Vertices turn black with box selection when no constraints are visible

Postby mcv100 » Sun May 02, 2021 7:18 pm

And does the black also disappear whenever you draw something else? Perhaps with constraints, like a rectangle.
chrisb
Posts: 35223
Joined: Tue Mar 17, 2015 9:14 am

Re: Vertices turn black with box selection when no constraints are visible

Postby chrisb » Sun May 02, 2021 8:32 pm

Please create a ticket in the tracker and cross link it with this discussion.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mcv100
Posts: 4
Joined: Sun May 02, 2021 12:26 pm

Re: Vertices turn black with box selection when no constraints are visible

Postby mcv100 » Tue May 04, 2021 8:20 pm

Just did, thanks! :)
chrisb
Posts: 35223
Joined: Tue Mar 17, 2015 9:14 am

Re: Vertices turn black with box selection when no constraints are visible

Postby chrisb » Tue May 04, 2021 9:00 pm

A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
cadilhac
Posts: 11
Joined: Wed May 05, 2021 9:34 pm

Re: Vertices turn black with box selection when no constraints are visible

Postby cadilhac » Wed May 05, 2021 9:38 pm

I can reproduce that and then some. After a box select, all the edges and vertices turn black:
scvkW9L0.png
scvkW9L0.png (15.56 KiB) Viewed 270 times
When hovering, the colors are restored … partially (note the horizontal/vertical markers):
scGt7ScM.png
scGt7ScM.png (14.78 KiB) Viewed 270 times