Symbol editor Segmentation Fault in macOS Mojave

Bug #1810141 reported by HYOJAE KIM
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
New
Undecided
Unassigned

Bug Description

Installed kicad-5.0-unified-20181230-013905-847aa6210 from testing.

Freshly installed and run KiCad app, clicked symbol editor.
Loaded pre-installed symbol, pressed m to move pins.
Placing it to somewhere causes segmentation fault.

Attached the Report. Comfirmed It doesn't happen in latest nightly(6.0.0 rc1)

Application: kicad
Version: (5.0.2-17-g847aa6210), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.2.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.51.0
    Compiler: Clang 8.0.0 with C++ ABI 1002

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

Tags: macos osx
Revision history for this message
HYOJAE KIM (hjhjdev) wrote :
Revision history for this message
Rene Vorholz (renev) wrote :

Same problem here, report looks basically the same thus not adding it again. Could this be related to the dark theme font color workaround since 5.0.2 ?

My personal workaround is using 5.0.1 and switch to light theme while working with kicad. The dark theme may have introduced a bit more complexity to integrate it correctly?

Adam Wolf (adamwolf)
tags: added: osx
Revision history for this message
HYOJAE KIM (hjhjdev) wrote :

@Rene Vorholz: Glad to see the same problem :)
I wasn't thinking about dark mode. Did symbol editor work with 5.0.1 in non-dark mode?

+ Reporting: crash confirmed with 5.0.2-17-g847aa6210 in non-dark mode.
  If problem does not appear with 5.0.1 in non-dark mode, problem would be related to dark mode.

Revision history for this message
HYOJAE KIM (hjhjdev) wrote :

Tested minute ago.
Symbol editor won't crash with Version 5.0.1-3-g963ef8bb5(release build) in non-dark mode.

Revision history for this message
Rene Vorholz (renev) wrote :

Yes, 5.0.1-3-g963ef8bb5 in non-dark mode is indeed working perfectly.

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

I do not observe this behavior using the latest 5.0.2 unified download from http://downloads.kicad-pcb.org/osx/testing/5.0/

Application: kicad
Version: (5.0.2-17-g76bc75ff1), debug build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
Platform: Mac OS X (Darwin 18.0.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.68.0
    OpenCASCADE Community Edition: 6.9.1
    Curl: 7.51.0
    Compiler: Clang 8.0.0 with C++ ABI 1002

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

Revision history for this message
Adam Wolf (adamwolf) wrote : Re: [Bug 1810141] Re: Symbol editor Segmentation Fault in macOS Mojave

This may be more evidence pointing to something wrong with the macOS
5.0.2. *sigh* Sorry, folks.

On Fri, Jan 4, 2019 at 10:10 PM Seth Hillbrand <email address hidden>
wrote:

> I do not observe this behavior using the latest 5.0.2 unified download
> from http://downloads.kicad-pcb.org/osx/testing/5.0/
>
> Application: kicad
> Version: (5.0.2-17-g76bc75ff1), debug build
> Libraries:
> wxWidgets 3.0.4
> libcurl/7.54.0 LibreSSL/2.6.4 zlib/1.2.11 nghttp2/1.24.1
> Platform: Mac OS X (Darwin 18.0.0 x86_64), 64 bit, Little endian, wxMac
> Build Info:
> wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
> Boost: 1.68.0
> OpenCASCADE Community Edition: 6.9.1
> Curl: 7.51.0
> Compiler: Clang 8.0.0 with C++ ABI 1002
>
> Build settings:
> USE_WX_GRAPHICS_CONTEXT=ON
> USE_WX_OVERLAY=ON
> KICAD_SCRIPTING=ON
> KICAD_SCRIPTING_MODULES=ON
> KICAD_SCRIPTING_WXPYTHON=ON
> KICAD_SCRIPTING_ACTION_MENU=ON
> BUILD_GITHUB_PLUGIN=ON
> KICAD_USE_OCE=ON
> KICAD_USE_OCC=OFF
> KICAD_SPICE=ON
>
> --
> You received this bug notification because you are subscribed to KiCad.
> Matching subscriptions: OS X KiCad bugs
> https://bugs.launchpad.net/bugs/1810141
>
> Title:
> Symbol editor Segmentation Fault in macOS Mojave
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1810141/+subscriptions
>

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

What is the difference between the nightly 5.0.2 and the release 5.0.2? Is it just release vs. debug or is there more?

Revision history for this message
Adam Wolf (adamwolf) wrote :

I don't recall and I'm on mobile right now. I kicked off a 5.0.2-1 package
last night. I will also do a 10.14 version, and I'll upload them to
testing and aim the folks in both of these tickets to them.

I can double-check what the differences are this weekend as well. I think
it's release vs debug, package naming things, and things like choosing a
different background for the dmg and a different readme.

Adam

On Sat, Jan 5, 2019, 9:15 AM Seth Hillbrand <<email address hidden>
wrote:

> What is the difference between the nightly 5.0.2 and the release 5.0.2?
> Is it just release vs. debug or is there more?
>
> --
> You received this bug notification because you are subscribed to KiCad.
> Matching subscriptions: OS X KiCad bugs
> https://bugs.launchpad.net/bugs/1810141
>
> Title:
> Symbol editor Segmentation Fault in macOS Mojave
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1810141/+subscriptions
>

Revision history for this message
Marcel Hecko (maco) wrote :

Im having the same issue here on 10.14 and 5.0.2-4-g3082e92af (official 5.0.2 download)

The crash happens as soon as I try to move label in symbol editor - so the symbol editor is actually unusable for me at the moment on Mac.

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [50043]

Application Specific Information:
Crashing on exception: -[_NSViewLayoutAux _subclassOverridesDrawBackgroundInRect]: unrecognized selector sent to instance 0x7fcc672296b0

Revision history for this message
Marcel Hecko (maco) wrote :

And onther type of the same crash:

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

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

VM Regions Near 0x1000000020:
    mapped file 000000011df33000-000000011e000000 [ 820K] r--/rwx SM=COW Object_id=6ff176e3
-->
    MALLOC_NANO 0000600000000000-0000600010000000 [256.0M] rw-/rwx SM=PRV

Application Specific Information:
objc_msgSend() selector name: _subclassOverridesDrawBackgroundInRect

Marcel Hecko (maco)
tags: added: macos
Revision history for this message
Adam Wolf (adamwolf) wrote :

Hi Marcel,

Can you test on the 5.0.2-5 build currently in testing?
http://downloads.kicad-pcb.org/osx/testing/

Thanks!

On Wed, Jan 30, 2019 at 5:01 PM Marcel Hecko <email address hidden> wrote:

> ** Tags added: macos
>
> --
> You received this bug notification because you are subscribed to KiCad.
> Matching subscriptions: OS X KiCad bugs
> https://bugs.launchpad.net/bugs/1810141
>
> Title:
> Symbol editor Segmentation Fault in macOS Mojave
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1810141/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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