Mailing list archives : pcb-rnd

ID:2949
From:Peter Stuge <pe...@stuge.se>
Date:Fri, 19 Apr 2019 16:44:06 +0000
Subject:Re: [pcb-rnd] bug: fixed short always remained orange
in-reply-to:2945 from ge...@igor2.repo.hu
replies: 2952 from ge...@igor2.repo.hu
 
--O8XZ+2Hy8Kj8wLPZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
 
Thanks for the helpful info!
 
gedau@igor2.repo.hu wrote:
> >Attached is my attempt at recreating the problem, but here the orange
> >highlight disappears if I start moving either via or trace. Great!
> >
> >With my board .lht this isn't the case, however.
..
> The orange thing is called the WARN flag. Since it's a flag, it's saved in 
> the file (inherited idea...). And since they had so many flag bits in one 
> big flag word, they had to reuse the bits, so rubberend and warn share the 
> same bit, so you will see this bit saved as "rubberend" in the lht 
> (inherited hack). So if you save a file while it has WARN objects, the 
> state is preserved and you should see the same WARNs after load.
 
Right, it makes sense to save them and I find it quite nice that this and
other flags are still active after closing+opening files.
 
 
> Normally if you left-click anywhere in the drawing area, the WARN flag is 
> cleared on all objects on the board. This wouldn't depend on anything else 
> (whether your nets are still shorted). If this doesn't happen, that's 
> clearly a bug.
 
Ok. It doesn't happen in my board.
 
 
> If that's the case, I'd try to re-create the problem not from scratch on a 
> new board, but by removing any unnecessary object and net from the board 
> where it is reproducible. There may be some unusual combination of object 
> types and flags that triggers the bug.
 
Thanks for the hint! I've removed everything except the one orange
line and orange via from the file and have tried to turn it into a
useful test case. File attached.
 
 
//Peter
 
--O8XZ+2Hy8Kj8wLPZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="orange.lht"
 
ha:pcb-rnd-board-v6 {
 
 ha:attributes {
   {PCB::grid::unit}=mm
 }
 
 ha:meta {
   ha:size {
    thermal_scale = 0.500000
    x = 15.0mm
    y = 15.0mm
   }
   board_name = 
   ha:grid {
    spacing = 0.1mm
    offs_x = 0.0
    offs_y = 0.0
   }
 }
 
 ha:data {
  li:padstack_prototypes {
 
   ha:ps_proto_v6.0 {
     hdia=0.4mm; hplated=1; htop=0; hbottom=0;
     li:shape {
 
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=0.8mm;        }
        ha:combining {        }
        ha:layer_mask {
         copper = 1
         top = 1
        }
        clearance=0.0
       }
 
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=0.8mm;        }
        ha:combining {        }
        ha:layer_mask {
         bottom = 1
         copper = 1
        }
        clearance=0.0
       }
 
       ha:ps_shape_v4 {
        ha:ps_circ { x=0.0; y=0.0; dia=0.8mm;        }
        ha:combining {        }
        ha:layer_mask {
         copper = 1
         intern = 1
        }
        clearance=0.0
       }
     }
   }
  }
 
   li:objects {
    ha:padstack_ref.31315 {
     proto=0; x=4.0mm; y=3.5mm; rot=0.000000; xmirror=0; smirror=0; clearance=0.2mm;
     ha:flags {
      clearline=1
      warn=1
     }
 
     li:thermal {
       li:9 {
        on  
        solid  
        noshape  
       }
     }
    }
   }
   li:layers {
 
    ha:top {
     lid=0
     group=3
     ha:combining {     }
 
      li:objects {
       ha:line.32701 {
        x1=12.53mm; y1=0.3mm; x2=0.43mm; y2=12.4mm; thickness=0.2mm; clearance=0.4mm;
        ha:flags {
         clearline=1
         rubberend=1
        }
       }
      }
      color = {#8b2323}
    }
 
    ha:bottom {
     lid=1
     group=6
     ha:combining {     }
 
      li:objects {
      }
      color = {#3a5fcd}
    }
 
    ha:outline {
     lid=2
     group=5
     ha:combining { auto=1;     }
 
      li:objects {
      }
      color = {#00868b}
    }
 
    ha:bottom-silk {
     lid=3
     group=8
     ha:combining { auto=1;     }
 
      li:objects {
      }
      color = {#000000}
    }
 
    ha:top-silk {
     lid=4
     group=1
     ha:combining { auto=1;     }
 
      li:objects {
      }
      color = {#000000}
    }
 
    ha:top-paste {
     lid=5
     group=0
     ha:combining { auto=1;     }
 
      li:objects {
      }
      color = {#cd00cd}
    }
 
    ha:top-mask {
     lid=6
     group=2
     ha:combining { sub=1; auto=1;     }
 
      li:objects {
      }
      color = {#ff0000}
    }
 
    ha:bottom-mask {
     lid=7
     group=7
     ha:combining { sub=1; auto=1;     }
 
      li:objects {
      }
      color = {#ff0000}
    }
 
    ha:bottom-paste {
     lid=8
     group=9
     ha:combining { auto=1;     }
 
      li:objects {
      }
      color = {#cd00cd}
    }
 
   }
 }
 
 ha:layer_stack {
  li:groups {
   ha:0 {
    name = top_paste
    ha:type { top=1; paste=1;    }
    li:layers { 5;    }
   }
   ha:1 {
    name = top_silk
    ha:type { silk=1; top=1;    }
    li:layers { 4;    }
   }
   ha:2 {
    name = top_mask
    ha:type { top=1; mask=1;    }
    li:layers { 6;    }
   }
   ha:3 {
    name = top_copper
    ha:type { copper=1; top=1;    }
    li:layers { 0;    }
   }
   ha:4 {
    name = grp_4
    ha:type { substrate=1; intern=1;    }
    li:layers {    }
   }
   ha:5 {
    name = global_outline
    ha:type {  boundary=1;    }
    li:layers { 2;    }
     purpose = uroute
   }
   ha:6 {
    name = bottom_copper
    ha:type {  bottom=1; copper=1;    }
    li:layers {     1;}
   }
   ha:7 {
    name = bottom_mask
    ha:type {  bottom=1; mask=1;    }
    li:layers { 7;    }
   }
   ha:8 {
    name = bottom_silk
    ha:type {  silk=1; bottom=1;    }
    li:layers {     3;}
   }
   ha:9 {
    name = bottom_paste
    ha:type {  bottom=1; paste=1;    }
    li:layers { 8;    }
   }
  }
 }
 li:pcb-rnd-conf-v1 {
  ha:overwrite {
   ha:appearance {
    compact = 1
   }
   ha:design {
    clearance = 200.00 um
    text_font_id = 0
    text_scale = 100
    via_thickness = 800.00 um
    via_drilling_hole = 400.00 um
    min_slk = 0.10000000 mm
    text_thickness = 0
    line_thickness = 200.00 um
    poly_isle_area = 200000000.0
    bloat = 0.12000000 mm
    min_drill = 0.40000000 mm
   }
   ha:editor {
    snap_pin = true
    grid_unit = mm
    grids_idx = 9
    clear_line = true
    grid = 100.00 um
    line_refraction = 1
    orthogonal_moves = false
    buffer_number = 1
    thin_draw_poly = false
    rubber_band_mode = true
    ha:view {
     flip_x = 0
     flip_y = 0
    }
    show_solder_side = 0
    fullscreen = 0
   }
  }
 }
}
 
--O8XZ+2Hy8Kj8wLPZ--
 

Reply subtree:
2949 Re: [pcb-rnd] bug: fixed short always remained orange from Peter Stuge <pe...@stuge.se>
  2952 Re: [pcb-rnd] bug: fixed short always remained orange from ge...@igor2.repo.hu
    2964 Re: [pcb-rnd] bug: fixed short always remained orange from Peter Stuge <pe...@stuge.se>
      2971 Re: [pcb-rnd] bug: fixed short always remained orange from ge...@igor2.repo.hu