append second board ends in crash

Bug #1684998 reported by Alexander Brand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Critical
jean-pierre charras

Bug Description

Hi all,

KiCAD 4.06 PCBnew on Windows 10 x64 crashes after the following actions:

- open a new Board in PCBnew with no project assosiated (seems to be needed to get "append board" button)
- append board and place the board
- append second board

KiCAD crashes right after click on "open" in the file dialog to select the board to append.

When u do the following u can workaround the issue:

- open a new Board in PCBnew with no project assosiated (seems to be needed to get "append board" button)
- append board and place the board
- close PCBnew
- reopen PCBnew
- append second board

KiCAD will not crash.

please see also: https://bitbucket.org/thunderdrive/control_board the monster_mkii.kicad_pcb file.
this is the nutzen i created when encountering this problem. The boards in this nutzen are
control_board.kicad_pcb from the same repo and the boards out of these repos:
https://bitbucket.org/thunderdrive/power_bridge
https://bitbucket.org/thunderdrive/signal_distribution

I hope this are useful informations. If any thing is missing to complete the picture please ask.

Thanks for maintaining KiCAD.

regards

Alex

Tags: pcbnew
Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1684998] [NEW] append second board ends in crash

I cannot duplicate this bug in either the legacy or opengl canvases. I
opened your control_board.kicad_pcb and then appended
monster_mkii_nutzen.kicad_pcb, power_bridge.kicad_pcb, and
signal_distribution.kicad_pcb in that order without any issues other
than it being really slow redrawing in the legacy canvas.

On 4/20/2017 3:14 PM, Alexander Brand wrote:
> Public bug reported:
>
> Hi all,
>
> KiCAD 4.06 PCBnew on Windows 10 x64 crashes after the following actions:
>
> - open a new Board in PCBnew with no project assosiated (seems to be needed to get "append board" button)
> - append board and place the board
> - append second board
>
> KiCAD crashes right after click on "open" in the file dialog to select
> the board to append.
>
> When u do the following u can workaround the issue:
>
> - open a new Board in PCBnew with no project assosiated (seems to be needed to get "append board" button)
> - append board and place the board
> - close PCBnew
> - reopen PCBnew
> - append second board
>
> KiCAD will not crash.
>
> please see also: https://bitbucket.org/thunderdrive/control_board the monster_mkii.kicad_pcb file.
> this is the nutzen i created when encountering this problem. The boards in this nutzen are
> control_board.kicad_pcb from the same repo and the boards out of these repos:
> https://bitbucket.org/thunderdrive/power_bridge
> https://bitbucket.org/thunderdrive/signal_distribution
>
> I hope this are useful informations. If any thing is missing to complete
> the picture please ask.
>
> Thanks for maintaining KiCAD.
>
> regards
>
> Alex
>
> ** Affects: kicad
> Importance: Undecided
> Status: New
>
>
> ** Tags: pcbnew
>

Revision history for this message
Alexander Brand (tecnologic) wrote :

Ok, then try this:

- Open PCBnew standalone
- click append Board
- choose the attached board

for me it ends in a crash.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1684998] Re: append second board ends in crash

Still no issue either opengl or legacy canvases. Does the first board
opened make a difference before the append?

On 4/21/2017 2:15 PM, Alexander Brand wrote:
> Ok, then try this:
>
> - Open PCBnew standalone
> - click append Board
> - choose the attached board
>
> for me it ends in a crash.
>
>
> ** Attachment added: "power_bridge.kicad_pcb"
> https://bugs.launchpad.net/kicad/+bug/1684998/+attachment/4866122/+files/power_bridge.kicad_pcb
>

Revision history for this message
Alexander Brand (tecnologic) wrote :

No the first opened board before the append makes no difference. On my PC i can reproduce the issue just with opening PCBnew without KiCAD. PCBnew has than opend an unsaved board design (just the frame is showed) and when i then append the power_bridge.kicad_pcb it crashes. But the strange thing is, if i do the same but append the control_board.kicad_pcb it works. So it seems to be something weird with the power board file.

Is there any log i can attach from my machine? Does KiCAD log events in some file at all?

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

This does indeed crash the current 4 stable branch in when using either
gal canvas. The legacy canvas does not have this issue.

On 4/21/2017 3:00 PM, Alexander Brand wrote:
> No the first opened board before the append makes no difference. On my
> PC i can reproduce the issue just with opening PCBnew without KiCAD.
> PCBnew has than opend an unsaved board design (just the frame is showed)
> and when i then append the power_bridge.kicad_pcb it crashes. But the
> strange thing is, if i do the same but append the
> control_board.kicad_pcb it works. So it seems to be something weird with
> the power board file.

It seems like it might be related to a gal canvas issue. But now that
we have a file that makes it crash every time, it should be easier to fix.

>
> Is there any log i can attach from my machine? Does KiCAD log events in
> some file at all?
>

Thanks for the offer. Now that we can reliably reproduce the issue, we
should be able to figure it out.

Changed in kicad:
status: New → Confirmed
importance: Undecided → Critical
Changed in kicad:
status: Confirmed → Fix Committed
assignee: nobody → jean-pierre charras (jp-charras)
Revision history for this message
Alexander Brand (tecnologic) wrote :

Thanks

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.

Other bug subscribers

Remote bug watches

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