Design rules not loaded in Pcbnew on windows

Bug #1390221 reported by KSB
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Unassigned

Bug Description

KiCad_testing-2014.10.27-BZR5228_Win

Global Design Rules are not loaded in pcbnew after restart of pcbnew.

Steps to reproduce:
1. In Pcbnew define some design rules, those in Custom Track Widths and Custom Via Sizes, then apply it, save and then close Pcbnew.
2. Open Pcbnew again and select boxes for Track width Via sizes on the top toolbar.
3. The comboboxes do not show these custom Track widhts and custom Vias, they appear only after opening the design rules. And press OK to apply.

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

I am not sure if this is a bug, but I am not sure about that. I tested on archlinux and get the same behaivor as you I believe.

If you save the board when you exit it will persist. Can you try that to verify?

Also I would have expected this information to be in the *.kicad_pcb, *.pro or ~/.config/pcbnew file, but I can't find it there. Does anyone know where this information is saved?

Version: (2014-11-02 BZR 5249)-kicad Release build
wxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.9.1,wx containers,compatible with 2.8)
Platform: Linux 3.17.2-1-ARCH x86_64, 64 bit, Little endian, wxGTK
Boost version: 1.56.0
         USE_WX_GRAPHICS_CONTEXT=OFF
         USE_WX_OVERLAY=OFF
         KICAD_SCRIPTING=ON
         KICAD_SCRIPTING_MODULES=ON
         KICAD_SCRIPTING_WXPYTHON=ON
         USE_FP_LIB_TABLE=HARD_CODED_ON
         BUILD_GITHUB_PLUGIN=ON

description: updated
Revision history for this message
KSB (ksb-inbox) wrote :

"3. The comboboxes do not show these custom Track widhts and custom Vias, they appear only after opening the design rules and entering them again. And press OK to apply."

No, it is NOT necessary to enter them again, they are in 'Design rules' window, they just don't appear in main window's select boxes on toolbar, before reapplying them again with OK button in 'Design rules'.

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

This is strange. On my end they do appear if I did actually save the file before closing. Your original post did not describe if you saved the PCB or not.

I have found that they are saved in the pcb as:
(setup ... (user_trace_width 2.424242) ... (user_via 10.666666 1.77777) ... )

Revision history for this message
KSB (ksb-inbox) wrote :

I save the board before closing Pcbnew.

Revision history for this message
KSB (ksb-inbox) wrote :

To clarify a bit about which select boxes I'm talking, attached a picture.

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

Yes, those are the comboboxes I am talking about too. I just can't reproduce, but it is a bug if they don't show up there if they are defined in the kicad_pcb file.

description: updated
Revision history for this message
KSB (ksb-inbox) wrote :

Indeed, they are defined in .kicad_pcb, the problem is about loading them in listboxes after opening Pcbnew.
Just compiled latest BZR 5256 to be sure it is not fixed and problem still exists.

summary: - Design rules not loaded in Pcbnew
+ Design rules not loaded in Pcbnew on windows
Revision history for this message
jean-pierre charras (jp-charras) wrote :

I am unable to reproduce your issue.
I never see that on Windows (W7)

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

So what windows version are KSB using?

Revision history for this message
KSB (ksb-inbox) wrote :

I'm using W7 SP1 x64

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

So do you both use the samve wx versions? Kicad will tell in the help menu.

Revision history for this message
KSB (ksb-inbox) wrote :

"wxWidgets 3.0.0 Unicode and boost C++ libraries on 32 Bits Windows" - for both BZR 5228 and 5256.

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

Same for me (I am using 3.0.2, but this issue did not exist on 3.0.0, for me)
For my info, after reloading the board, right clicking on a track and click on "Select Track Width", do you see the previously entered widths for tracks or vias ?

Revision history for this message
KSB (ksb-inbox) wrote :

Yes, via "Select Track Width" I see all the values.

Revision history for this message
KSB (ksb-inbox) wrote :

Also noticed, that switching form In to mm (and vice versa) loads values in Listboxes.

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

KSB, can you verify that it will not load in either case where the initial unit setting is inch or mm?

Revision history for this message
KSB (ksb-inbox) wrote :

Both cases - Inch and mm.

Revision history for this message
xzcvczx (xzcvczx) wrote :

is this still happening for you?

Changed in kicad:
status: New → Incomplete
xzcvczx (xzcvczx)
Changed in kicad:
status: Incomplete → Confirmed
importance: Undecided → Low
tags: added: windows
Revision history for this message
Jeff Young (jeyjey) wrote :

I can't reproduce this on Mac. Does it still reproduce on Windows in a 5.0 build?

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

AFAICT it works just fine on windows. Given the dates in this bug report, I'm pretty sure this issue has been fixed.

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

Bug attachments

Remote bug watches

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