Mouse snapping to vertices is broken in 0.17.8353

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
bgoodr
Posts: 105
Joined: Sat Jun 14, 2014 9:40 pm

Mouse snapping to vertices is broken in 0.17.8353

Postby bgoodr » Sun Feb 12, 2017 7:26 am

Bug is already filed at https://freecadweb.org/tracker/view.php?id=2690

They said that they could not reproduce it, and so directed me to post a forum post to solicit feedback, so I am doing that here.

I also posted some GIF's into imgur. One for the standard install on Ubuntu, version 0.16 and another 0.17.x.x version. Here they are:

0.16: Image
0.17: Image

The bottom line is that snapping is somewhat broken in 0.17, or at least not behaving intuitively like it did in 0.16. Basically moving the mouse around closer to the vertex should snap it, but it doesn't. 0.17 seems to get confused about when to snap and when not to.

Another problem I have related to this is that the act of turning snapping on or off is not obvious from the state of the button which icon means what. And there is no corresponding Python command that is issued each time a change to snapping is made; if there was then my confusion would be cleared up.

Is this a intended change? Or is there something I am just doing incorrectly?

Thanks,
-bg
triplus
Posts: 8676
Joined: Mon Dec 12, 2011 4:45 pm

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby triplus » Sun Feb 12, 2017 12:34 pm

Hi @bgoodr.

Didn't do any tests but as you say you can see the difference. Does it change anything if you change the value:

Edit -> Preferences -> Display -> Colors -> Pick radius

P.S. I don't know ATM if FreeCAD restart is required after the change or not.
User avatar
bejant
Posts: 5869
Joined: Thu Jul 11, 2013 3:06 pm

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby bejant » Sun Feb 12, 2017 1:53 pm

bgoodr wrote:Another problem I have related to this is that the act of turning snapping on or off is not obvious from the state of the button which icon means what.
This has been fixed (but in a newer version than you're using) so now the selected Snaps have a line or border around them. In your version, you can go to Edit > Preferences > General (icon in left pane) > General (tab at top of right pane) and select a Style Sheet to make it easier to tell the difference between selected and unselected Snap buttons.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby NormandC » Sun Feb 12, 2017 4:25 pm

bgoodr wrote:Mouse snapping to vertices is broken in 0.17.8353
This bug report is from last year. Can you confirm that your freecad-daily package is up to date. The latest development revision number is over 10 000.

Please read the "Read first" topic at the top of this forum, it explains how to provide your full FreeCAD info.
User avatar
bgoodr
Posts: 105
Joined: Sat Jun 14, 2014 9:40 pm

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby bgoodr » Sun Feb 19, 2017 7:19 pm

sudo apt-get update followed by a dpkg --list freecad\* shows:

Code: Select all

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version                                   Architecture Description
+++-=================-=========================================-============-=========================================
ii  freecad           1:0.16.6703-1ppa1~ubuntu16.04.1           amd64        Extensible Open Source CAx program (beta)
ii  freecad-daily     0.17~alpha1+git201609212031~ubuntu16.04.1 amd64        Extensible Open Source CAx program (beta)
ii  freecad-daily-doc 0.17~alpha1+git201609212031~ubuntu16.04.1 all          FreeCAD documentation
ii  freecad-doc       1:0.16.6703-1ppa1~ubuntu16.04.1           all          FreeCAD documentation
so I take the "201609212031" part of the version of freecad-daily to mean September of 2016, so yes last year.

So how do I get the latest version to show up without having to resort to building it from source?
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby NormandC » Sun Feb 19, 2017 7:46 pm

You did not do what I asked.

I specifically asked you to report your FreeCAD info as explained in the Read first topic because it gives us relevant info like your operating system or the git hash. In this topic, there is no way to know which version of Ubuntu you are using. I had to go hunt down the info in your bug report.

There is a reason why we ask users to provide their FreeCAD info in a specific manner.

Anyway. :roll:

The FreeCAD PPAs have up-to-date versions 1:0.16.6707-1ppa1~ubuntu16.04.1 and 0.17~alpha1+git201702181913~ubuntu16.04.1.

The only way that you could be not up-to-date is that you disabled both PPA sources on your system.
User avatar
bgoodr
Posts: 105
Joined: Sat Jun 14, 2014 9:40 pm

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby bgoodr » Sun Feb 19, 2017 10:58 pm

NormandC wrote:You did not do what I asked.

I specifically asked you to report your FreeCAD info as explained in the Read first topic ...
My apologies. You are correct; I did not follow your directions.

Code: Select all

OS: Ubuntu 16.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.8469 (Git)
Build type: None
Branch: master
Hash: 40c79f18e4d63c86fa865c43f0276ee1cff00abb
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
NormandC wrote: The FreeCAD PPAs have up-to-date versions 1:0.16.6707-1ppa1~ubuntu16.04.1 and 0.17~alpha1+git201702181913~ubuntu16.04.1.

The only way that you could be not up-to-date is that you disabled both PPA sources on your system.
I'm not sure I know how I could have disabled both PPA sources in my system. The only files that refer to anything regarding "freecad" under /etc/apt/ is in /etc/apt/sources.list.d/freecad-maintainers-ubuntu-freecad-daily-xenial.list which has:

Code: Select all

deb http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial main
# deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial main
# deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial main
Carefully re-reading IMPORTANT: Please read first before asking for help I see:
We offer a FreeCAD Stable Releases PPA repository with the latest "release" version or better still use the "daily" PPA which compiles a new version almost every day from the official FreeCAD repository master branch FreeCAD Daily Releases PPA repository.
Which eventually leads me to https://www.freecadweb.org/wiki/index.p ... A_Packages and from there I see:

Code: Select all

sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install freecad-daily freecad-daily-doc 
The instructions at https://launchpad.net/~freecad-maintain ... ecad-daily was where I was going off of, and it does NOT show the upgrade command, so that is one missing peice of the puzzle. Only issuing both of these commands gave me the new package:

Code: Select all

sudo apt-get upgrade
sudo apt-get install freecad-daily freecad-daily-doc
Finally, the Help/About results gives the version you had indicated:

Code: Select all

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10150 (Git)
Build type: None
Branch: master
Hash: 978978f7dd1814083d7b9c9fc4267dba25f58a80
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
And "dpkg --list freecad\*" now returns:

Code: Select all

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                           Version                      Architecture                 Description
+++-==============================================-============================-============================-==================================================================================================
ii  freecad                                        1:0.16.6707-1ppa2~ubuntu16.0 amd64                        Extensible Open Source CAx program (beta)
ii  freecad-daily                                  0.17~alpha1+git201702181913~ amd64                        Extensible Open Source CAx program (beta)
ii  freecad-daily-doc                              0.17~alpha1+git201702181913~ all                          FreeCAD documentation
ii  freecad-doc                                    1:0.16.6707-1ppa2~ubuntu16.0 all                          FreeCAD documentation
Now that freecad-daily is up-to-date, I'll go back in and do some more testing to see if I can reproduce what I was seeing, and report back.

Thanks for your help!!
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby NormandC » Sun Feb 19, 2017 11:18 pm

bgoodr wrote:deb http://ppa.launchpad.net/freecad-mainta ... ily/ubuntu xenial main

Code: Select all

# deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial main
# deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu xenial main
Both lines are commented out (that's what the "#" does). This means that this PPA was indeed disabled at some point. This can be done from the GUI BTW.
bgoodr wrote:Only issuing both of these commands gave me the new package:

Code: Select all

sudo apt-get upgrade
sudo apt-get install freecad-daily freecad-daily-doc
I don't understand how it could work with the deb-src lines commented out! :?

Don't you have your system updates enabled? With the PPA enabled you should automatically get freecad updates along with other system and software updates. By default you should get system critical updates as soon as they're published, and software updates once a week. On my system I bumped the later to every day (hardly makes sense to have a "daily" package if you only update it once a week ;) ). All this can be done from the GUI in Control panel/Software. I never need to use the terminal to get updates.

Image
Screenshot scraped off the Internet
User avatar
bgoodr
Posts: 105
Joined: Sat Jun 14, 2014 9:40 pm

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby bgoodr » Sun Feb 19, 2017 11:59 pm

First, the GIF showing it is working on this new version (granted I'm not doing a full test of all grid snapping features here, just a quick and dirty GIF):

Image

You are right. I'm not seeing updates to my Ubuntu system as I expect. I will dig into this.

I will also figure out how to close that bug report back in the bug system as this shows as working.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Mouse snapping to vertices is broken in 0.17.8353

Postby NormandC » Mon Feb 20, 2017 12:03 am

Ah so there is a wider issue about updates then.
bgoodr wrote:I will also figure out how to close that bug report
You can't as a reporter, only a developer or a manager can. I'm sure Kunda1 will take care of it. But it may be better to leave a comment in the bug report saying the issue is fixed, and provide your FreeCAD info.

Glad the issue was fixed!