You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VIEWPORT / LEADER / MESH field lists: three honest #63 errors, each needing one more differently-shaped sample #71
area:entitiesEntity prescriptions in spec §20.4blocked:sampleNeeds a corpus file with variation the corpus lackspriority:P1On the path of the current milestonerelease:R2018Affects R2018 filestype:bugSomething reads, writes or reports wrongly
From #69's new-error census: VIEWPORT (6 identical records, 1125-bit budget, decoder consumes 266 — no variation to derive §20.4.35's list), LEADER (12 remaining bits, several §19.4.19 continuations fit, one record), MESH (trailing 2 bits read the zero/default code 10 of BS/BL/BD alike on both records). Each needs a sample with variation (differently-shaped viewports, a second leader, a mesh with non-default properties) — extend examples/build_fixtures.rs or find a permissive sample. ARCHITECTURE §7i tracks these plus the three older undetermined readings.
Differently-shaped samples now exist in CI.#225 pins ACadSharp's saves of one drawing as R14 to R2018 (each with AutoCAD's ASCII DXF, except R14) plus three more R2018 drawings. Per the Measure run 40297255178:
VIEWPORT errors on 45 records: 6 on each of the R2000 to R2018 ACadSharp saves, and 9 on export_sample.dwg, a different R2018 drawing (AutoCAD 2025). That is the variation this issue asked for, and every save but R14 has a DXF with the expected values.
MESH errors on 14 records: 2 on each of the 7 ACadSharp saves, R14 to R2018.
LEADER errors on 7 records: 1 on each of the 7 ACadSharp saves.
The old 9 (6 / 2 / 1 on sample_AC1032.dwg) are this same drawing's R2018 save. python3 -I tools/corpus/fetch.py --dest ../dwg-corpus fetches them all; probe_decode_errors gives each record's handle and bit budget.
LEADER's field list is short on every release, and the spec's own example shows the missing tail. §20.4.47.1 (p152, OBJECT: leader (2DH), len 80H (128), handle: 01 09, an R13/R14 record whose printed CRC verifies) closes exactly on its RL boundary under §20.4.47's full list. After the four 3BDs that follow the points (origin, extrusion, X direction, offset to block insertion point) it has Endptproj 3BD (R14+), DIMGAP BD (R13-R14), box height BD, box width BD, two Bs (hook line, arrowhead on), then R13-R14 Arrowheadtype BS, Dimasz BD, B, B, BS, Byblockcolor BS, B, B (R2000+: BS, B, B instead).
entities::leader::decode stops after the fourth 3BD and names the first of them end_projection where §20.4.47 has the origin, so it ends 282 bits short on the example (#107: cargo run --release --example spec_examples, row 20.4.47, expect error #71).
area:entitiesEntity prescriptions in spec §20.4blocked:sampleNeeds a corpus file with variation the corpus lackspriority:P1On the path of the current milestonerelease:R2018Affects R2018 filestype:bugSomething reads, writes or reports wrongly
Activity
DrunkOnJava commentedon Oct 26, 2026
Differently-shaped samples now exist in CI. #225 pins ACadSharp's saves of one drawing as R14 to R2018 (each with AutoCAD's ASCII DXF, except R14) plus three more R2018 drawings. Per the Measure run 40297255178:
export_sample.dwg, a different R2018 drawing (AutoCAD 2025). That is the variation this issue asked for, and every save but R14 has a DXF with the expected values.The old 9 (6 / 2 / 1 on
sample_AC1032.dwg) are this same drawing's R2018 save.python3 -I tools/corpus/fetch.py --dest ../dwg-corpusfetches them all;probe_decode_errorsgives each record's handle and bit budget.fix(entities): decode the whole §20.4.38 VIEWPORT record on every rel…
DrunkOnJava commentedon Oct 26, 2026
LEADER's field list is short on every release, and the spec's own example shows the missing tail. §20.4.47.1 (p152,
OBJECT: leader (2DH), len 80H (128), handle: 01 09, an R13/R14 record whose printed CRC verifies) closes exactly on itsRLboundary under §20.4.47's full list. After the four3BDs that follow the points (origin, extrusion, X direction, offset to block insertion point) it hasEndptproj 3BD(R14+),DIMGAP BD(R13-R14), box heightBD, box widthBD, twoBs (hook line, arrowhead on), then R13-R14Arrowheadtype BS,Dimasz BD,B,B,BS,Byblockcolor BS,B,B(R2000+:BS,B,Binstead).entities::leader::decodestops after the fourth3BDand names the first of themend_projectionwhere §20.4.47 has the origin, so it ends 282 bits short on the example (#107:cargo run --release --example spec_examples, row20.4.47,expect error #71).test(fixtures): run the specification's own worked examples through t…
test(fixtures): run the specification's own worked examples through t…
test(fixtures): run the specification's own worked examples through t…
test(fixtures): run the specification's own worked examples through t…
fix(entities): decode the whole §20.4.38 VIEWPORT record on every rel…
fix(entities): read MESH's trailing BL and decode MESH on every relea…
fix(entities): read §20.4.47 LEADER's end point projection and tails …
feat(dxf): score VIEWPORT in the value oracle (§20.4.38) (#390)
feat(dxf): score MESH in the value oracle (#396)
feat(dxf): score LEADER in the value oracle (§20.4.47) (#402)