Eeschema generates corrupted schematic file

Bug #1828214 reported by Wayne Stambaugh
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Wayne Stambaugh

Bug Description

Using KiCAD 5.1.2 on W10 this bug is still present.
Steps to reproduce:
1. Create a multi-line cell in Excel
2. Copy and paste content to a component field in eeschema
3. Save, close and reopen the sheet: the sheet will not open.

Pasting from both the component symbol properties windows AND the "Edit symbol fields" tool cause the file corruption.

Application: kicad
Version: (5.1.2)-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: eeschema
Revision history for this message
Michael Kavanagh (michaelkavanagh) wrote :
tags: added: eeschema
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

I did some testing and this doesn't affect all fields. It does not affect the value and reference fields text and the field name text for non-mandatory fields. I does affect the footprint, datasheet and all non-mandatory field text. It looks like we need some additional validators added to the field grid table in order to prevent this. I suspect this also affects the field edit dialog in the symbol editor as well.

Changed in kicad:
assignee: nobody → Wayne Stambaugh (stambaughw)
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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