eeschema crash on creating new sheet

Bug #1724800 reported by Bernhard Stegmaier
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Unassigned

Bug Description

If you accidentally do a double click on creating a new schematic sheet, then eeschema crashes.
Always reproducible for me.

Backtrace of crashed thread:
<<<
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 _eeschema.kiface 0x0000000115cba933 resizeSheetWithMouseCursor(EDA_DRAW_PANEL*, wxDC*, wxPoint const&, bool) + 131
1 _eeschema.kiface 0x0000000115d6f0e9 EDA_DRAW_FRAME::RefreshCrossHair(wxPoint const&, wxPoint const&, wxDC*) + 313
2 _eeschema.kiface 0x0000000115aca4c3 SCH_EDIT_FRAME::GeneralControl(wxDC*, wxPoint const&, unsigned int) + 163
3 _eeschema.kiface 0x0000000115d70f6b EDA_DRAW_PANEL::OnMouseEvent(wxMouseEvent&) + 1371
4 libwx_baseu-3.1.1.0.0.dylib 0x00000001067ca56f wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 239
5 libwx_baseu-3.1.1.0.0.dylib 0x00000001067cbc5a wxEvtHandler::ProcessEventLocally(wxEvent&) + 90
6 libwx_baseu-3.1.1.0.0.dylib 0x00000001067cbb5c wxEvtHandler::ProcessEvent(wxEvent&) + 188
7 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x00000001062625a3 wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) + 35
8 libwx_baseu-3.1.1.0.0.dylib 0x00000001067cc06f wxEvtHandler::SafelyProcessEvent(wxEvent&) + 15
9 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x00000001060e2ad3 wxWidgetCocoaImpl::DoHandleMouseEvent(NSEvent*) + 83
10 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x00000001060de457 wxWidgetCocoaImpl::mouseEvent(NSEvent*, NSView*, void*) + 167
11 com.apple.AppKit 0x00007fffafee5abe -[NSTrackingArea mouseMoved:] + 150
12 com.apple.AppKit 0x00007fffb05abca2 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 2508
13 com.apple.AppKit 0x00007fffb05aaf0a -[NSWindow(NSEventRouting) sendEvent:] + 541
14 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x00000001060c9f25 -[wxNSWindow sendEvent:] + 117
15 com.apple.AppKit 0x00007fffb042f7d7 -[NSApplication(NSEvent) sendEvent:] + 1487
16 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x0000000105ff3782 -[wxNSApplication sendEvent:] + 98
17 com.apple.AppKit 0x00007fffafcaa427 -[NSApplication run] + 1002
18 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x00000001060bef6e wxGUIEventLoop::OSXDoRun() + 174
19 libwx_baseu-3.1.1.0.0.dylib 0x00000001067987e4 wxCFEventLoop::DoRun() + 52
20 libwx_baseu-3.1.1.0.0.dylib 0x00000001066bdec1 wxEventLoopBase::Run() + 161
21 libwx_baseu-3.1.1.0.0.dylib 0x000000010667797f wxAppConsoleBase::MainLoop() + 111
22 libwx_osx_cocoau_core-3.1.1.0.0.dylib 0x000000010604855a wxApp::OnRun() + 26
23 org.kicad-pcb.kicad 0x0000000105b4da19 APP_KICAD::OnRun() + 25
24 libwx_baseu-3.1.1.0.0.dylib 0x00000001067025b1 wxEntry(int&, wchar_t**) + 145
25 org.kicad-pcb.kicad 0x0000000105b4d0a0 main + 48
26 libdyld.dylib 0x00007fffc7d88235 start + 1
>>>

Version info:
<<<
Application: kicad
Version: (2017-10-04 revision acccb10ca)-master, release build
Libraries:
    wxWidgets 3.1.1
    libcurl/7.54.0 SecureTransport zlib/1.2.8
Platform: macOS Sierra Version 10.12.6 (Build 16G29), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.1.1 (UTF-8,STL containers)
    Boost: 1.59.0
    Curl: 7.55.1
    Compiler: Clang 9.0.0 with C++ ABI 1002

Build settings:
    USE_WX_GRAPHICS_CONTEXT=ON
    USE_WX_OVERLAY=ON
    KICAD_SCRIPTING=OFF
    KICAD_SCRIPTING_MODULES=OFF
    KICAD_SCRIPTING_WXPYTHON=OFF
    KICAD_SCRIPTING_ACTION_MENU=OFF
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=OFF
>>>

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

This is probably a duplicate of https://bugs.launchpad.net/kicad/+bug/1699801.

Revision history for this message
Bernhard Stegmaier (stegmaier) wrote :

Yes, didn't see that.
Since I can reproduce quite easy, I'll try to find a fix...

Revision history for this message
Nick Østergaard (nickoe) wrote :

I guess you men when creating a subsheet in eeschema. I notice that on linux when I try this the mouse cursor jumps 500 mil in x and 150 mil in y when clicking once. Maybe it will not do that on OSX and this is what causes the segfault?

Revision history for this message
Nick Østergaard (nickoe) wrote :

I have attached a picture of what it looks for me after releasing the button after the first click, I have reset the delta you can see the movement in the toolbar.

Revision history for this message
Bernhard Stegmaier (stegmaier) wrote :

Yes, with a new version from today it behaves the same on all of my machines as shown in your screen shot (so, no crash anymore).
I don't know if something relevant has changed or this is just by chance working now.
I'll sync back to the old version and do some debugging when I find some time.

Revision history for this message
jean-pierre charras (jp-charras) wrote :

I very recently made a fix in code. It perhaps fixed this issue.

Changed in kicad:
importance: Undecided → Critical
Revision history for this message
Maciej Suminski (orsonmmz) wrote :

Marking as incomplete, we need the reporter to decide if the bug is fixed.

Changed in kicad:
status: New → Incomplete
Revision history for this message
xzcvczx (xzcvczx) wrote :

seems to be fixed, i just tried it (on osx) in 04-11 with no issues when i did experience the bug on 19-10 build

Revision history for this message
jean-pierre charras (jp-charras) wrote :

So I mark is as fix committed.

Changed in kicad:
status: Incomplete → Fix Committed
Jeff Young (jeyjey)
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

Bug attachments

Remote bug watches

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