Accelerated schematic view becomes broken after moving, rotating/mirroring component/block then canceling

Bug #1809444 reported by Aleksandr Sh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Medium
Tomasz Wlostowski

Bug Description

Problem with individual components:
1. Open the demo schematic pic_programmer.sch
2. Press M to move a component and R to rotate it, do not apply anything
3. Press ESC to cancel operation
4. The schematic now looks like on the attached screenshot 1

Problem with block select:
1. Select a block of components
2. Press M to move a component and R/X/Y to rotate/mirror, do not apply anything
3. Press ESC to cancel operation
4. Redraw
5. The selected block is rotated/mirrored, but is on its original place.
This is broken. It should not be rotated/mirrored

Application: kicad
Version: (6.0.0-rc1-dev-1419-g1d230bbee), 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
Aleksandr Sh (dsa-t) wrote :
Revision history for this message
Aleksandr Sh (dsa-t) wrote :
Jeff Young (jeyjey)
Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
milestone: none → 5.1.0
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Aleksandr Sh (dsa-t) wrote :

The problem with block select has appeared again, but this time everything except the block becomes invisible.

1. Select a block of components to move
2. R/X/Y to rotate/mirror, do not apply anything
3. Press ESC to cancel operation
4. The entire schematic is invisible except for this block.
5. Redraw fixes it

Application: kicad
Version: (6.0.0-rc1-dev-1535-ge7fa02a9f), 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 → New
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I cannot duplicate this so it would be help full to include a before and after screen shot showing the issue along with the exact steps to reproduce.

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

I'll confirm that this happens. Only in Accelerated canvas. Fallback appears fine.

Application: kicad
Version: (6.0.0-rc1-dev-1538-g72c885797e), release build
Libraries:
    wxWidgets 3.0.4
Platform: Linux 4.18.0-3-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.67.0
    OpenCASCADE Community Edition: 6.9.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=OFF
    KICAD_USE_OCE=ON
    KICAD_USE_OCC=OFF
    KICAD_SPICE=ON

Changed in kicad:
status: New → Triaged
Revision history for this message
Seth Hillbrand (sethh) wrote :

Adding screen record.

1) Select block
2) Press 'R'
3) Press Escape

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

Please disregard my last commit #4. I was using the fallback canvas. I confirmed the bug with the accelerated canvas.

Revision history for this message
Tomasz Wlostowski (twlostow) wrote :

@Jeff: fixed this accidentally today ;-)

Changed in kicad:
assignee: Jeff Young (jeyjey) → Tomasz Wlostowski (twlostow)
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision 6afb082a08868721f0b85816e7bf20f4e8bb78fd
https://git.launchpad.net/kicad/patch/?id=6afb082a08868721f0b85816e7bf20f4e8bb78fd

Changed in kicad:
status: Triaged → Fix Committed
Revision history for this message
Jeff Young (jeyjey) wrote :

Excellent, as it had fallen off my radar. ;)

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.