Skip to content

VIEWPORT / LEADER / MESH field lists: three honest #63 errors, each needing one more differently-shaped sample #71

Closed

Description

@DrunkOnJava

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.

Activity

  1. added
    type:bug
    area:entities
    release:R2018
    priority:P1
    blocked:sample
    and removed on Oct 21, 2026
  2. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    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.

  3. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:entitiesblocked:samplepriority:P1release:R2018type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions