[TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

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!
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

[TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by PrzemoF »

The video shows the problem: https://peertube.social/videos/watch/d5 ... a1b15e33bf
How to recreate:
1. Create new document, new sketch
2. Create line, circle
3. Activate the function
4. Line/circle is not selected

When the circle center is fixed the detection works as expected.

Some other problems are showing up as well with more complicated shapes:
Zrzut ekranu z 2021-04-07 19-04-26.png
Zrzut ekranu z 2021-04-07 19-04-26.png (159.92 KiB) Viewed 504 times
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: [BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by chrisb »

PrzemoF wrote: Wed Apr 07, 2021 6:07 pm 1. Create new document, new sketch
2. Create line, circle
3. Activate the function
4. Line/circle is not selected
Works here as expected. Invoking Select unconstraint DoF works with the link in the message, the icon and the menu.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24612 (Git)
Build type: Release
Branch: master
Hash: f525904c1be10a0f55aa3502151c2c55e5054259
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
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by PrzemoF »

Interesting... I can't repeat it after closing FreeCAD...

OS: Fedora 33 (Workstation Edition) (GNOME/gnome-xorg)
Word size of FreeCAD: 64-bit
Version: 0.20.24690 (Git)
Build type: Release
Branch: master
Hash: 3a36602ae8252e278a5322c765eeb1f8c6bd93ff
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0a
OCC version: 7.5.0
Locale: Polish/Poland (pl_PL)
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by PrzemoF »

chrisb wrote: Wed Apr 07, 2021 9:12 pm
PrzemoF wrote: Wed Apr 07, 2021 6:07 pm 1. Create new document, new sketch
2. Create line, circle
3. Activate the function
4. Line/circle is not selected
Works here as expected. Invoking Select unconstraint DoF works with the link in the message, the icon and the menu.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24612 (Git)
Build type: Release
Branch: master
Hash: f525904c1be10a0f55aa3502151c2c55e5054259
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
Can you draw a rectangle and test the function?
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: [BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by chrisb »

PrzemoF wrote: Wed Apr 07, 2021 9:47 pm Can you draw a rectangle and test the function?
Sketch with Line, Rectangle, Circle: they are all selected correctly on clicking the link.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by PrzemoF »

OK, it's getting interesting..

The fedora 33 FreeCAD:

OS: Fedora 33 (Workstation Edition) (GNOME/gnome-xorg)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.Unknown
Build type: Unknown
Python version: 3.9.0
Qt version: 5.15.1
Coin version: 4.0.0a
OCC version: 7.5.0
Locale: Polish/Poland (pl_PL)
Zrzut ekranu z 2021-04-09 21-44-30.png
Zrzut ekranu z 2021-04-09 21-44-30.png (142.3 KiB) Viewed 395 times
My local build:

OS: Fedora 33 (Workstation Edition) (GNOME/gnome-xorg)
Word size of FreeCAD: 64-bit
Version: 0.20.24690 (Git)
Build type: Release
Branch: master
Hash: 3a36602ae8252e278a5322c765eeb1f8c6bd93ff
Python version: 3.9.2
Qt version: 5.15.2
Coin version: 4.0.0a
OCC version: 7.5.0
Locale: Polish/Poland (pl_PL)
Zrzut ekranu z 2021-04-09 21-45-50.png
Zrzut ekranu z 2021-04-09 21-45-50.png (154.48 KiB) Viewed 395 times
Can I kindly ask other people to perform simple test:
1. New drawing, new sketch
2. Draw rectangle
3. Click this function:
Zrzut ekranu z 2021-04-09 21-47-42.png
Zrzut ekranu z 2021-04-09 21-47-42.png (77.38 KiB) Viewed 395 times
4. Post the screen shot of the result
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: [TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by chrisb »

Here you are:
SnipScreenshot-71f5da.png
SnipScreenshot-71f5da.png (3.09 KiB) Viewed 382 times
I can imagine, that this depends on the exact position of the rectangle. To make this comparable you should save the file and test it on different systems.

Do you use the same solver?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by PrzemoF »

Thanks! I didn't touch the settings, so I guess it's the same solver. I'll check that to be sure.

Edit: the problem is solver independent.
chrisb
Veteran
Posts: 54207
Joined: Tue Mar 17, 2015 9:14 am

Re: [TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by chrisb »

Can you upload the file that leads to the two-lines-proposal?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: [TBC][BUG] Inconsistent behaviour of unconstrained elements detector in Sketcher

Post by PrzemoF »

Just to let you know - the file gives 4 points when I open it in my local build FreeCAD, so it's definitely problem with the official fedora build.
Attachments
2line.FCStd
(7.67 KiB) Downloaded 7 times
Post Reply