-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue in AC1032 with decompression of sections #948
Comments
I think it's rather the usual "large file, section corruption bug", with lots of deleted objects. To create a ACadSharp reader/writer executable will be a bit tricky. See ACadSharp.Examples diff --git ACadSharp.Examples/Program.cs ACadSharp.Examples/Program.cs
index 70a5c9f..baf83aa 100644
--- ACadSharp.Examples/Program.cs
+++ ACadSharp.Examples/Program.cs
@@ -8,11 +8,10 @@ namespace ACadSharp.Examples
{
class Program
{
- const string _file = "../../../../samples/sample_AC1032.dwg";
-
static void Main(string[] args)
{
CadDocument doc;
+ string _file = args[0];
using (DwgReader reader = new DwgReader(_file))
{
doc = reader.Read(); dotnet build
ACadSharp.Examples/bin/Debug/net6.0/ACadSharp.Examples ../libredwg/ti/gh948/5172_v2.dwg
SUMMARY INFO:
Title:
Subject:
Author:
Keywords:
Comments:
LastSavedBy: Xiuwe
RevisionNumber:
HyperlinkBase:
CreatedDate: 8/24/2023 2:24:44 PM
ModifiedDate: 3/1/2024 4:08:40 PM
... |
@rurban I was looking at it.
I looked at github.com/DomCR/ACadSharp and I compared decompression. I believe that's an issue with decompression. |
I'll also look into ACadSharp to compare. Either the sections bug or a new decompression bug. |
@rurban Is there a way how to compile and use ACadSharp on Linux? |
yes, I've fixed things for linux upstream. |
I'm not sure if it's the harddisc, or just too many inodes in my dir. Bigger HD arrives in 1-2 weeks, until then I can only work on small projects. There are no problems at all. Copying badblocks to my dracut initramfs, and checking the ext4fs with fsck -cc -D -y didn't help (after 17hrs). No bad disc HW, apparently my RAM upgrade with too fast RAM may corrupt the filesystem. Update: Bought a new SDD, didn't fit in. Removed a fast DDR slot, didn't help. The BIOS slowed it to the proper speed anyway. Turns out the linux badblocks utility couldn't check for bad blocks timing out, the BIOS diagnostics did find it (after 11 hrs). So I bought a new HDD of the very same type, and will re-add the 2nd DDR slot. |
Could you share, how to build ACadSharp on Linux? |
Ach.. dotnet supports this .sln files, ok. |
Reported by @xiuweihan in #946
5172_v2.zip
Error:
Issue is with unhandled opcode
Invalid opcode 0x6 in input stream at pos 35258854
The text was updated successfully, but these errors were encountered: