Gerbview: Items disappear when selecting them

Bug #1833868 reported by Aleksandr Sh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Medium
Seth Hillbrand

Bug Description

In some cases, when selecting items in gerbview, they can disappear. This only happens in accelerated canvas.
The gerbers in the video are from https://www.st.com/en/evaluation-tools/nucleo-f429zi.html#resource

Application: GerbView
Version: (5.1.2-151-gc951ca6f4)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Tags: gal gerbview
Revision history for this message
Aleksandr Sh (dsa-t) wrote :
tags: added: gal gerbview
Changed in kicad:
milestone: none → 5.1.3
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I cannot duplicate this on windows or linux using either the accelerated or fallback canvases. It's possible that you have a video driver issue.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Nick Østergaard (nickoe) wrote :

I can't seem to duplicate the issue either on archlinux.

I tested:
Version: (5.1.2-161-ge8ce0ba6e), release build

@Alexander, do you have some things you need to do before to make this happen? Or do you just start selecting like in the video right after you load the gerbers? Or any particular layer?

Revision history for this message
Aleksandr Sh (dsa-t) wrote :

Nothing special to do. I have up to date Nvidia and Intel drivers.
This happens with both discrete and integrated GPU.

Revision history for this message
Aleksandr Sh (dsa-t) wrote :

I noticed that the polygon fill is broken. Also, as you can see in the video, when I select items that disappear, the Clarify selection menu comes up, and does not with the ones that do not disappear.

Aleksandr Sh (dsa-t)
Changed in kicad:
status: Incomplete → New
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

@Aleksandr, would it be possible to include your gerber files so we can see if they are the culprit? FYI, please do not change the bug report status. Until someone else can duplicate your bug, the status should remain incomplete.

Changed in kicad:
status: New → Incomplete
Revision history for this message
Aleksandr Sh (dsa-t) wrote :

Gerbers are from https://www.st.com/en/evaluation-tools/nucleo-f429zi.html#resource
"STM32 Nucleo (144 pins) gerber files"

Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :

I can recreate this on macOS. Seems to affect lines mostly but not all of them, and only on outer layers (1 and 6 in example given).

Application: GerbView
Version: (5.1.0-1073-g6aa0ceff3-dirty), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.6.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (wchar_t,STL containers,compatible with 2.8)
    Boost: 1.69.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.54.0
    Compiler: Clang 10.0.1 with C++ ABI 1002

Build settings:
    KICAD_SCRIPTING=OFF
    KICAD_SCRIPTING_MODULES=OFF
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Changed in kicad:
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I can confirm this happens on Linux with the gerbers from the link provided. It might have something to with the disambiguation menu highlighting. I can make a line item disappear then reappear just by moving the cursor over the item to highlight.

Application: GerbView
Version: (5.1.2-163-gdf3a57dcd), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.0 OpenSSL/1.1.1c zlib/1.2.11 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) libssh2/1.8.0 nghttp2/1.36.0 librtmp/2.3
Platform: Linux 4.19.0-5-amd64 x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
    Boost: 1.62.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.64.0
    Compiler: Clang 7.0.1 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
jean-pierre charras (jp-charras) wrote :

In fact I am thinking they are just masked by negative objects.
Perhaps a layer order drawing issue.

Revision history for this message
Aleksandr Sh (dsa-t) wrote :

Notice that in polygon outline mode the cutouts around TH pads shown in the video do not appear. And these pads disappear when selecting. Maybe polygon cutouts are not handled correctly?
Also notice that the polygon self-intersects in one place (shown in the video). Maybe it's not triangulated correctly?

Changed in kicad:
milestone: 5.1.3 → 5.1.4
Changed in kicad:
milestone: 5.1.4 → 5.1.5
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 77488e379cdbb0627b6eb107d30c83693f9fb048
https://git.launchpad.net/kicad/patch/?id=77488e379cdbb0627b6eb107d30c83693f9fb048

Changed in kicad:
status: Triaged → Fix Committed
assignee: nobody → Seth Hillbrand (sethh)
Revision history for this message
Aleksandr Sh (dsa-t) wrote :

Pads still disappear when selecting them. Polygon is still broken.

Application: GerbView
Version: (5.1.4-39-g25f648348)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Revision history for this message
Seth Hillbrand (sethh) wrote :

Please open a new issue explaining the polygon broken problem.

I cannot recreate the pads disappearing anymore. However, you may be selecting the negative object instead of the flash pad. In that case, it is expected that the pads will disappear because you are bringing and object to the front that is subtracting the layer behind it.

Revision history for this message
Aleksandr Sh (dsa-t) wrote :

See attachment.
Viewing layer6.gbr of the same Nucleo board with a specific pad selected makes it invisible (1).
For some reason, when I enable just "Show polygons in outline mode", the pad becomes visible and highlighted (2).

If I enable "Show negative objects in ghost color" (3), I can see a polygon around pads, and I can select it.
But the pads themselves do not become grey, which means that they are not negative.
When selected, this negative polygon takes the color of the layer (4) (I'm not sure if this is the right color for them).

Application: GerbView
Version: (5.1.4-40-gb991beb71)-1, release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.61.1 OpenSSL/1.1.1 (WinSSL) zlib/1.2.11 brotli/1.0.6 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.34.0
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
    wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.61.1
    Compiler: GCC 8.2.0 with C++ ABI 1013

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_PYTHON3=OFF
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_WXPYTHON_PHOENIX=OFF
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Changed in kicad:
status: Fix Committed → Fix Released
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.