Eeschema crashes

Bug #1828067 reported by Ron Burkey
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Committed
Critical
Jeff Young

Bug Description

I've had problems for a long time with eeschema spontaneously crashing, whereupon both the eeschema and kicad windows disappear and I have to restart them, having lost all my changes. I've never reported it before because I didn't have a way to reproduce the problem.

I now have a 100% reproducible case with the current nightly build. Here's a link to a movie of it: https://drive.google.com/open?id=1al-GuxCqZZbYQDO_FmxCu1193ANsV-qj, and here is a link to the archived project I'm using in the movie: https://drive.google.com/open?id=1tfvt2-EHsk-SQxJ191TeVUfBvEJajKzY

Here's what's in the movie:

1. I place a text string ("2004004-004", size 130 mils, bold).
2. I hit ctrl-C to copy it.
3. I move the cursor to where I want to put the copy.
4. I hit ctrl-V to paste it.
5. Blooey!

Here's an alternate sequence that also crashes every time, I think, though I didn't put it in the movie:

1. I place the text string, same as above.
2. I hit ctrl-D to duplicate the string.
3. Blooey!

Application: kicad
Version: 6.0.0-unknown-f1a38a6~86~ubuntu16.04.1, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.11 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-53-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

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
Ron Burkey (rburkey) wrote :

As a fun(?) experiment, I have retried this experiment with an earlier nightly build from a few weeks ago as well.

The results are roughly the same, except that sometimes when I do the ctrl-V to paste the text eeschema may just freeze and need to be explicitly sent a KILL signal rather than just abruptly exiting.

Application: kicad
Version: 5.1.0-unknown-ca7aec2~94~ubuntu16.04.1, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.11 libidn/1.32 librtmp/2.3
Platform: Linux 4.4.0-53-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

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

Seth Hillbrand (sethh)
Changed in kicad:
importance: Undecided → Critical
milestone: none → 6.0.0-rc1
status: New → Triaged
Revision history for this message
Jeff Young (jeyjey) wrote :

It appears to be a corrupt D_LIST. It crashes when it finds a SCH_FIELD whose m_viewPrivData has been freed (or perhaps the upper bytes walked on?). In any case, the pointer doesn't look right (0x900007ff1f82bdc3 -- what's with the '9' at the top?) and produces a segfault.

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

Note: This crash happens anytime a non-select tool is active when doing to copy/paste or duplicate.

Jeff Young (jeyjey)
Changed in kicad:
assignee: nobody → Jeff Young (jeyjey)
status: Triaged → In Progress
Jeff Young (jeyjey)
Changed in kicad:
status: In Progress → Fix Committed
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.