Skip to content

fix: bump ACadSharp to 3.8.35 to tolerate duplicate DXF table entries - #11

Merged
albertwoo merged 2 commits into
mainfrom
fix/dxf-duplicate-table-entry
Nov 5, 2026
Merged

albertwoo merged 2 commits into
mainfrom
fix/dxf-duplicate-table-entry

Conversation

@albertwoo

Copy link
Copy Markdown
Contributor

Summary

  • DXF files whose tables contain duplicate entries differing only in case (e.g. both CONTINUOUS and Continuous linetypes) crashed DxfReader with "An item with the same key has already been added".
  • Bumps ACadSharp 3.8.0 → 3.8.35 in Directory.Packages.props, which includes upstream commit bbc638a1 (keep the first definition of a duplicated DXF table entry under failsafe mode, on by default).
  • Adds the reproduction drawing Samples/SCD-085-035-100-AP3N-IS.dxf.

Test plan

  • dotnet build ACadSharp.Image.sln -c Release --no-restore -warnaserror clean on net6.0/net8.0/net10.0
  • dotnet test — 463 passed, golden baselines intact
  • cad-to-image Samples/SCD-085-035-100-AP3N-IS.dxf --width 300 --height 200 --hide-layer OPTIONAL_DIMENSIONS renders PNG and SVG; --list-layers resolves linetypes

…ntries

DXF files exporting both CONTINUOUS and Continuous linetypes crashed the
reader with "An item with the same key has already been added". Upstream
commit bbc638a1 keeps the first definition of a duplicated table entry
(failsafe mode, on by default) instead of throwing.
Reproduction for the reader crash fixed by the ACadSharp 3.8.35 bump.
@albertwoo
albertwoo merged commit d62f323 into main Nov 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant