Repository navigation
Description
Finding
Status on main at 8d4afd4 (2026-10-26): every row of the table below is struck: none of these five types errors on any pinned drawing any more (measurement and per-drawing counts in the comment of 2026-10-26). The only erroring record left on the pinned corpus is one LEADER (handle 0x512) on each ACadSharp save of that drawing, which this table never listed.
Four more types error on ACadSharp's saves of one drawing (pinned by #225) but close on the other releases of the same drawing, plus one HATCH on an R2018 drawing:
| Type | R14 | R2000 | R2004 | R2007 | R2010 | R2013 | R2018 |
|---|---|---|---|---|---|---|---|
export_sample.dwg) |
DIMSTYLE erroring on R2007 and R2010 but not R2013 or R2018 is the narrowest of these: the R2007 band reads text from the string stream, so a field the R2010 entry gains or loses is the likely gap. The ACIS records close on R2013 and R2018 (#61) but not R2004 to R2010.
Evidence: Measure run 40297255178 on #225. Each ACadSharp save of the drawing but R14 has AutoCAD's ASCII DXF of it; export_sample.dwg has none.
Reproduce: python3 -I tools/corpus/fetch.py --dest ../dwg-corpus, then cargo run --release --example probe_decode_errors -- ../dwg-corpus/acadsharp/sample_AC1021.dwg.
Activity
fix(entities): read §20.4.41's version-2 SAB envelope to its terminat…
fix(entities): a HATCH spline edge without fit points stores no tange…
DrunkOnJava commentedon Oct 26, 2026
Re-measured on
mainat 8d4afd4 (after #263, #283, #293 and #294): none of the five types in this table errors on any pinned drawing.Command, per drawing (the pinned tree from
tools/corpus/fetch.py; build once withcargo build --release --example probe_decode_errors):I ran it over every
*.dwgunder<corpus>/acadsharpand<corpus>/nextgis(10 and 42 drawings). Erroring records per drawing:So VIEW (3 records), DIMSTYLE (6), 3DSOLID (6), REGION (3) and the one HATCH are gone. The only error left on the pinned corpus is the one LEADER on each of the seven ACadSharp saves of that drawing (
LEADER data fields ended at bit 661, data stream ends at 805on R2000/R2004; delta -144 on R2000 to R2007, -12 on R2010 to R2018, -282 on R14), which is a different finding from this issue's.What closed each: VIEW by #263 (§20.4.60's pre-R2007 record), 3DSOLID and REGION by #283 (version-2 SAB envelope), DIMSTYLE by #293 (the
BLreactor count in the R2007+ table-entry prefix; its PR body names the three records with reactors), HATCH by #294.DrunkOnJava commentedon Oct 26, 2026
Closed by #249 (4ec356a), which fixed the last row: LEADER 0x512 now closes on every ACadSharp save. Main's corpus ratchet at 4ec356a has 0 errored records on every pinned drawing, nextgis and ACadSharp. Check: the
erroredcolumn of tools/corpus/baseline.tsv, which the Corpus (public DWG) job enforces in both directions. Table rows: VIEW #263, DIMSTYLE #293, 3DSOLID and REGION #283, HATCH #294, LEADER #249.