LibreDWG / libredwg

Official mirror of libredwg. With CI hooks and nightly releases. PR's ok
https://savannah.gnu.org/projects/libredwg/
GNU General Public License v3.0
994 stars 235 forks source link

AC1018 read_R2004_section_info corruption with AcDbObjects #797

Open lym-ID opened 1 year ago

lym-ID commented 1 year ago

error: 1691114357874 bug file: dwg.zip

rurban commented 1 year ago

Yes, starting with Page: 2106 size: 121220 address: 0x280000041b000000 info: 0x608680 Page: 469763075 (a) size: 429 address: 0xa0b0000083b

it gets corrupted. The section page reader logic is not right yet. probably the zero-size pages it bypasses those invalid pages, but then fails to find the Header and Classes

lym-ID commented 1 year ago

Hello author, we are currently blocked by this bug. Our team is working on a function to publish maps, and your libreDWG is the core of this function. May I ask how long it will take to fix this bug?

rurban commented 1 year ago

This is a long-standing libredwg bug, for several years already. It is caused by deleting a large number of entities, which leads to gaps in an internal tree, which is somehow optimized into the section pages. I have no idea when we can fix it. See GH #439, #272 , #144

lym-ID commented 1 year ago

Thank you