Free Support Forum - aspose.com

After 60 seconds we receive 'ContextSwitchDeadlock' exception during Load command using there dfx

Good mooring,
we are using Aspose.CAD 20.1.0 and we are running this simple piece of code.

Aspose.CAD.Image image = Aspose.CAD.Image.Load(filePath);

In debug after 60 seconds we receive this exception:

Managed Debugging Assistant ‘ContextSwitchDeadlock’ :
‘The CLR has been unable to transition from COM context 0xdfc5c0 to COM context 0xdfc678 for 60 seconds.
The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages.
This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time.
To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during
long running operations.’

This exception is throws only using some dxf files, you can see one example in attachment.
broken-example.zip (90.5 KB)

We have bought a license last week after several tests and now we have discovered this problem.
The customer is very angry, please let me know.

Thanks in advance.

@elfosrl,

I have worked with the sample DXF shared by you. On my end, I have encountered long un-ending wait on loading the file. An issue with ID CADNET-1037 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

1 Like

20 days have passed, is there any news on the resolution of this bug?

@elfosrl,

I like to share that the concerned issue has recently been created and is pending for investigation in issues queue. We request for your patience and will share updates with you as soon as it will be fixed.