Creating a new footprint with a space in the name causes crash

Bug #1850497 reported by ocb-hd-ccb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
jean-pierre charras

Bug Description

```
Application: KiCad
Version: (5.99.0-158-g78859b29e), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.64.1 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.39.2
Platform: Mac OS X (Darwin 19.0.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 9.0.0 with C++ ABI 1002

Build settings:
    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
    KICAD_STDLIB_DEBUG=OFF
    KICAD_STDLIB_LIGHT_DEBUG=OFF
    KICAD_SANITIZE=OFF
```
The description says it all. I don't think there should be spaces allowed but they should be blocked and not cause the whole thing to crash.

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

This also affects 5.1.5

It doesn't crash right away but it allows the spaces and and then crashes when you try to edit the footprint properties.

Changed in kicad:
importance: Undecided → Critical
milestone: none → 5.1.5
status: New → Triaged
Revision history for this message
Seth Hillbrand (sethh) wrote :

This was actually fixed in master already by JP (cee1873ffffef31446230f2bff8683a0e9b9e9ad). It's not the spaces that are the issue but the fact that you are creating a new footprint that isn't in the tree.

Changed in kicad:
status: Triaged → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
Revision history for this message
ocb-hd-ccb (ocb-hd-ccb) wrote :

I will check the new nightlies to see. I am able to creat new footprints just fine just crashed when ever I had a space in the name.

I will update tonight and check.

tags: added: pcbnew
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.