Free Support Forum - aspose.com

Aspose.CAD hangs loading DWG file

Hello,

Aspose.CAD for .NET 21.1 is hanging when trying to load the attached file:

var image = Aspose.CAD.Image.Load("input.dwg"); // hangs

input.zip (1.3 MB)

This is causing library to lock up. Can this be fixed please?

Thanks

@ast3

I have created a ticket with ID CADNET-1331 in our issue tracking system to further investigate and resolve the issue after reproducing using the latest version. We request for your patience and will share updates with you as soon as issue will be fixed.

Thank you.

Here is another DWG file that does the causes the same bug: input2.zip (114.8 KB)

var image = Aspose.CAD.Image.Load("input2.dwg"); // hangs

Is this the same problem? It is happening with a number of DWG files, and hopefully should be high priority.
Thanks

@ast3

I have associated information in our issue tracking system and we will share the feedback with you as soon as the issue will be fixed.

Hello. Here is a 3rd DWG file that causes the same bug when loading file: input3.zip (281.5 KB). From profiling, it seems to enter an infinite loop. While it is hopefully fixed soon (as it hangs whole library) is there a way to timeout Aspose.CAD.Image.Load?

Thanks

@ast3

I have associated the 3rd file as well with ticket after verification. We will share updates with you as soon as the issue will be fixed.