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
Every R14 INSERT and DIMENSION record errors on the public corpus #227
area:corpusSample files, their provenance and coveragearea:entitiesEntity prescriptions in spec §20.4priority:P1On the path of the current milestonerelease:R14Affects R14 filestype:bugSomething reads, writes or reports wrongly
On ACadSharp's R14 save (sample_AC1014.dwg, AutoCAD 2025 SAVEAS "LT98", pinned by #225) every INSERT and every DIMENSION record errors, along with a 3DFACE. The nextgis R14 drawings hold none of these types, so R14 had never measured them.
Type
Records erroring on R14
Same records on R2000 and later
INSERT (§20.4.9)
12
close
DIMENSION LINEAR (§20.4.24)
3
close
DIMENSION ALIGNED (§20.4.25)
2
close
DIMENSION ORDINATE (§20.4.23)
2
close
DIMENSION ANG 3PT (§20.4.26)
1
close
DIMENSION ANG 2LN (§20.4.27)
1
close
DIMENSION RADIUS (§20.4.28)
1
close
DIMENSION DIAMETER (§20.4.29)
1
close
3DFACE (§20.4.32)
1
close
All seven dimension types failing together points at the R13/R14 branch of the common dimension data (§20.4.22) or the R13/R14 entity prefix they share with INSERT; the spec's R13-R14-only fields in those tables are the first place to look.
Evidence:Measure run 40297255178 on #225; tools/corpus/baseline.tsv row sample_AC1014.dwg (676 decoded / 461 skipped / 105 errored).
Reproduce:python3 -I tools/corpus/fetch.py --dest ../dwg-corpus, then cargo run --release --example probe_decode_errors -- ../dwg-corpus/acadsharp/sample_AC1014.dwg.
The spec's own R14 examples reproduce this with no corpus file and pin the causes (#107: cargo run --release --example spec_examples, rows of tests/fixtures/spec-examples/r14-objects.tsv; every dump's printed CRC verifies):
INSERT:entities::insert::decode reads the R2000+ BB data flags and RD/DD scale on R14, where §20.4.9 gives R13-R14 three BD scales. MINSERT (§20.4.10) has no decoder; its example closes on the same R13-R14 list plus BS columns, BS rows and two BD spacings.
DIMENSION:dimension::read_common_with_strings reads Attachment Point BS, Linespacing Style BS, Linespacing Factor BD and Actual Measurement BD on every release; §20.4.22 gives them to R2000+ only.
RADIUS: §20.4.28 lists only the 10 and 15 points, but its example closes only with a BD leader length after them (0.0 here), the field §20.4.29 prints for DIAMETER. The spec's worked examples as fixtures #107's PR records it as a spec erratum.
3DFACE:three_d_face::decode has only the R2000+ layout (two B, RD, DD). §20.4.32's R13-R14 list is four 3BD corners and a BS invisible-edge flag, and the example closes on it: corners (8.921, 2.352, 0), (10.325, 4.077, 0), (11.082, 1.930, 0), (9.021, 1.434, 0), flag 0.
A fix should flip these rows' expect cells from error #227 to closes.
area:corpusSample files, their provenance and coveragearea:entitiesEntity prescriptions in spec §20.4priority:P1On the path of the current milestonerelease:R14Affects R14 filestype:bugSomething reads, writes or reports wrongly
Activity
DrunkOnJava commentedon Oct 26, 2026
The spec's own R14 examples reproduce this with no corpus file and pin the causes (#107:
cargo run --release --example spec_examples, rows oftests/fixtures/spec-examples/r14-objects.tsv; every dump's printed CRC verifies):11in aBD11in aBDBD(below)entities::insert::decodereads the R2000+BBdata flags andRD/DDscale on R14, where §20.4.9 gives R13-R14 threeBDscales. MINSERT (§20.4.10) has no decoder; its example closes on the same R13-R14 list plusBScolumns,BSrows and twoBDspacings.dimension::read_common_with_stringsreadsAttachment Point BS,Linespacing Style BS,Linespacing Factor BDandActual Measurement BDon every release; §20.4.22 gives them to R2000+ only.BDleader length after them (0.0 here), the field §20.4.29 prints for DIAMETER. The spec's worked examples as fixtures #107's PR records it as a spec erratum.three_d_face::decodehas only the R2000+ layout (twoB,RD,DD). §20.4.32's R13-R14 list is four3BDcorners and aBSinvisible-edge flag, and the example closes on it: corners (8.921, 2.352, 0), (10.325, 4.077, 0), (11.082, 1.930, 0), (9.021, 1.434, 0), flag 0.A fix should flip these rows'
expectcells fromerror #227tocloses.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): read the R13-R14 branches of INSERT, the dimensions an…