PCBNew crash on move hotkey while clicking
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Critical
|
Jeff Young |
Bug Description
Here's how I can reproduce this on OSX. It does it on every project I tried, for example try the flat_hierarchy demo board.
1. Click on any text item to select it. (If it's a footprint value or reference, then the blue line to the center of the footprint will be visible).
2. Click on it again as if you were about to drag it to move it, but do not move the mouse. Just click on it and keep holding the mouse button down. Make sure you click off-center.
3. While still holding the mouse button down and making sure you didn't move the mouse, press the 'm' key (Move hotkey). If you accidentally move the mouse, the cursor position will jump to the text item center (or vice-versa) and the bug won't appear.
4. The text item will jump to the cursor (or vice-versa?) and immediately after that PCBNew will crash. In the latest nightly, it will pop up the following dialog box, and then crash or quit no matter if you click "Cancel", "No", or "Yes"
```
/vagrant/
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
```
Application: kicad
Version: (5.1.2-1)-1, release 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 (UTF-8,STL containers,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
Also happens in today's nightly: kicad-nightly-
Application: Pcbnew
Version: (5.1.0-
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,
Boost: 1.69.0
OpenCASCADE Community Edition: 6.9.1
Curl: 7.54.0
Compiler: Clang 9.0.0 with C++ ABI 1002
Build settings:
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_
KICAD_SPICE=ON
tags: | added: hotkeys pcbnew |
Changed in kicad: | |
status: | In Progress → Fix Committed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Confirmed in both 5.1.2 and master.