pcbnew crashes

Bug #1774096 reported by hys
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
Seth Hillbrand

Bug Description

1. eeschema -> click 'Run Pcbnew to layout printed circuit board'

2. 'Board “/Applications/Kicad/kicad.app/Contents/Applications/noname.kicad_pcb” does not exist. Do you wish to create it?'

click 'NO'

then pcbnew crash!

Application: eeschema
Version: (5.0.0-rc2-35-gda66005), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.5.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.61.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.43.0
    Compiler: Clang 7.3.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
hys (szpttboy) wrote :
Revision history for this message
Seth Hillbrand (sethh) wrote :

Huh. I cannot recreate this. Have the nightly builds allowed this process on your machine previously?

Application: eeschema
Version: (5.0.0-rc2-35-gda66005), release build
Libraries:
    wxWidgets 3.0.4
    libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
Platform: Mac OS X (Darwin 17.3.0 x86_64), 64 bit, Little endian, wxMac
Build Info:
    wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
    Boost: 1.61.0
    OpenCASCADE Community Edition: 6.8.0
    Curl: 7.43.0
    Compiler: Clang 7.3.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
hys (szpttboy) wrote :

1. direct open eeschema from kicad directory
2. click 'Run Pcbnew to layout printed circuit board'
3. click 'NO' in the confirm messagebox which display 'Board “/Applications/Kicad/kicad.app/Contents/Applications/noname.kicad_pcb” does not exist. Do you wish to create it?'
then crash

Revision history for this message
hys (szpttboy) wrote :
Revision history for this message
Rene Poeschl (poeschlr) wrote :

You run eeschema in standalone mode. (As you did start eeschema directly instead of starting it from within the project manager)
In this mode there is no project connection. Which means some features will not work. It seems starting pcb_new from within eeschema is such a feature that is broken by this.

So it might be a good idea to gray out that button in eeschema if it is in standalone mode.

---

To fix your problem start the project manager instead of starting eeschema. Then you can use the feature and it will have the desired result of opening the correct pcb file.

---

A followup question would be if kicad will still crash if you do not allow it to create a new pcb_new file if none is present in the project directory.

Changed in kicad:
importance: Undecided → Critical
milestone: none → 5.0.0-rc3
Revision history for this message
Seth Hillbrand (sethh) wrote :

I have been trying to recreate this without success on the Mac. It looks like the master GAL context is perhaps not being created in this scenario although it does when executing the same procedure on my machine.

I'm going to update my service pack to the OP's version and try again this evening.

@Jeff, @Jon, can either of you recreate the crash?

Revision history for this message
Jeff Young (jeyjey) wrote :

It works fine for me.

I was wondering if he was running it from build/eeschema/eeschema.app, but I tried that and it errors out at launch.

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

Updated to 10.13.4, deleted preferences and can now confirm this crash.

Seems highly specific to how the OpenGL context is released with the new MacOS update. This is highly specific to this version of MacOS. I think we should consider Rene's suggestion of disabling the pcbnew button when eeschema is launched in stand-alone mode.

Changed in kicad:
status: New → Confirmed
Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1774096] Re: pcbnew crashes

@Seth, I would rather not limit users of all other platforms for this
one outlier.

On 05/31/2018 11:20 PM, Seth Hillbrand wrote:
> Updated to 10.13.4, deleted preferences and can now confirm this crash.
>
> Seems highly specific to how the OpenGL context is released with the new
> MacOS update. This is highly specific to this version of MacOS. I
> think we should consider Rene's suggestion of disabling the pcbnew
> button when eeschema is launched in stand-alone mode.
>
> ** Changed in: kicad
> Status: New => Confirmed
>

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

That makes sense. I think I see the issue

Changed in kicad:
assignee: nobody → Seth Hillbrand (sethh)
status: Confirmed → In Progress
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

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

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Jeff Young (jeyjey) wrote :

Well done, Seth!

I thought I was mostly up-to-date on my system, though. Was this the recent (in the last week or so) update to the development tools? (That one I didn’t get as I use CLion.)

> On 1 Jun 2018, at 17:15, KiCad Janitor <email address hidden> wrote:
>
> Fixed in revision 3cf9009f735ae4dbd9bb98d5dfb3d19bf5282f5c
> https://git.launchpad.net/kicad/patch/?id=3cf9009f735ae4dbd9bb98d5dfb3d19bf5282f5c
>
> ** Changed in: kicad
> Status: In Progress => Fix Committed
>
> --
> You received this bug notification because you are a member of KiCad Bug
> Squad, which is subscribed to KiCad.
> https://bugs.launchpad.net/bugs/1774096
>
> Title:
> pcbnew crashes
>
> Status in KiCad:
> Fix Committed
>
> Bug description:
> 1. eeschema -> click 'Run Pcbnew to layout printed circuit board'
>
> 2. 'Board
> “/Applications/Kicad/kicad.app/Contents/Applications/noname.kicad_pcb”
> does not exist. Do you wish to create it?'
>
> click 'NO'
>
> then pcbnew crash!
>
>
> Application: eeschema
> Version: (5.0.0-rc2-35-gda66005), release build
> Libraries:
> wxWidgets 3.0.4
> libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
> Platform: Mac OS X (Darwin 17.5.0 x86_64), 64 bit, Little endian, wxMac
> Build Info:
> wxWidgets: 3.0.4 (UTF-8,STL containers,compatible with 2.8)
> Boost: 1.61.0
> OpenCASCADE Community Edition: 6.8.0
> Curl: 7.43.0
> Compiler: Clang 7.3.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
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1774096/+subscriptions

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

Not sure about the timing of the release. Maybe end of April? 10.13.4 plus the associated doo-dads. I ran all available updates. I did need to remove my preferences before I saw the issue.

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.