weird snap-to-user-grid behaviour

Bug #1636637 reported by Novak Tamas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Won't Fix
Undecided
Unassigned

Bug Description

In pcbnew, I need a matrix of swithces. See attached video where
- I set user grid to x=y=18.8mm, grid origin to [9.4; 9.4]. Grid is displayed as dots.
- hover over the anchor (or other pad) of the footprint, and press M to move
- mouse usually snaps to closest gridpoint with rough (18.8mm) jumps, but sometimes smaller, off-grid moves are allowed.
For me it seems off-grid fine moves happen when the footprint is in proximity of other footprints. When it is flying over clear area, it is snapping to the 18.8mm grid fine.

OpenGL mode,
Application: kicad
Version: (2016-10-15 revision d1e4399)-makepkg, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.46.0 OpenSSL/1.0.2d zlib/1.2.8 libidn/1.32 libssh2/1.6.0 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.57.0
Curl: 7.46.0
KiCad - Compiler: GCC 5.2.0 with C++ ABI 1009
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_SCH_IO_MANAGER=OFF
                  KICAD_USE_OCE=ON

Tags: pcbnew
Revision history for this message
Novak Tamas (novak-7) wrote :
Revision history for this message
Novak Tamas (novak-7) wrote :

I just realised from bugreport #1628697, that this part of code is modified lately. Maybe this modification (of Sept 30?) has caused the issue. Or my version dated Oct 15, doesn't contain this fix?

Revision history for this message
Novak Tamas (novak-7) wrote :

Just an update: issue still exists in freshest nightly 7409 build.

GAL mode,
Application: kicad
Version: (2016-12-22 revision d365dc5)-makepkg, release build
Libraries: wxWidgets 3.0.2
           libcurl/7.46.0 OpenSSL/1.0.2d zlib/1.2.8 libidn/1.32 libssh2/1.6.0 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.57.0
Curl: 7.46.0
KiCad - Compiler: GCC 5.2.0 with C++ ABI 1009
        Settings: USE_WX_GRAPHICS_CONTEXT=OFF
                  USE_WX_OVERLAY=OFF
                  KICAD_SCRIPTING=ON
                  KICAD_SCRIPTING_MODULES=ON
                  KICAD_SCRIPTING_WXPYTHON=ON
                  BUILD_GITHUB_PLUGIN=ON
                  KICAD_USE_SCH_IO_MANAGER=OFF
                  KICAD_USE_OCE=ON

Revision history for this message
John Beard (john-j-beard) wrote :

This is because when snapping, it considers a set of snap "anchors" which include grid points, but also nearby pad centres and so on. This is so the router tool, for example, can snap to pins even if the pin is not on the current grid.

It's probably possible to make it so the pins /aren't/ considered in certain cases, but a bit of though might be needed to avoid disabling it when it's actually useful.

Revision history for this message
Novak Tamas (novak-7) wrote :

(I just check the fate of my old reports...how about this?)
John, may I set this to Invalid? or Won't fix? let it slip from being "new and undecided" after 1.5 yrs.

Revision history for this message
Nick Østergaard (nickoe) wrote :

I don't see any undesired behaivour and there is no detailed proposal on how it should be made. So closing it as won't fix for now would probably be appropiate.

Jeff Young (jeyjey)
Changed in kicad:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.