Skip to content

VIEW, DIMSTYLE, 3DSOLID, REGION and HATCH error on some releases of the public corpus #228

Closed

Description

@DrunkOnJava

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
VIEW (§20.4.60) fixed by #263 1 1 1
DIMSTYLE (§20.4.68) fixed by #293 3 3
3DSOLID (§20.4.41) fixed by #283 2 2 2
REGION (§20.4.41) fixed by #283 1 1 1
HATCH (§20.4.75) fixed by #294 1 (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.

Families: #145, #147, #148.

Activity

  1. added
    type:bug
    area:entities
    area:tables
    area:corpus
    release:R14
    release:R2000
    release:R2004
    release:R2007
    release:R2010
    release:R2018
    priority:P1
    on Oct 26, 2026
  2. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    Re-measured on main at 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 with cargo build --release --example probe_decode_errors):

    cargo run --release --example probe_decode_errors -- <corpus>/acadsharp/sample_AC1021.dwg

    I ran it over every *.dwg under <corpus>/acadsharp and <corpus>/nextgis (10 and 42 drawings). Erroring records per drawing:

    Drawing Release Erroring records Type
    acadsharp/empty.dwg R2018 0
    acadsharp/export_sample.dwg R2018 0 (was 1 HATCH)
    acadsharp/geoloc.dwg R2018 0
    acadsharp/sample_AC1014.dwg R14 1 LEADER 0x512
    acadsharp/sample_AC1015.dwg R2000 1 LEADER 0x512
    acadsharp/sample_AC1018.dwg R2004 1 LEADER 0x512
    acadsharp/sample_AC1021.dwg R2007 1 LEADER 0x512
    acadsharp/sample_AC1024.dwg R2010 1 LEADER 0x512
    acadsharp/sample_AC1027.dwg R2013 1 LEADER 0x512
    acadsharp/sample_AC1032.dwg R2018 1 LEADER 0x512
    nextgis, all 42 drawings R14 to R2013 0

    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 805 on 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 BL reactor count in the R2007+ table-entry prefix; its PR body names the three records with reactors), HATCH by #294.

  3. DrunkOnJava commented on Oct 26, 2026

    @DrunkOnJava
    OwnerAuthor

    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 errored column 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.

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:corpusarea:entitiesarea:tablespriority:P1release:R14release:R2000release:R2004release:R2007release:R2010release:R2018type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions