DWG to SVG conversion is failing in LInux environment using aspose library

Hi @oleksii.gorokhovatskyi ,

  1. Unfortunately, we are not able to share the original file, but I am sharing the screenshot of file where text are overlapping.
    Please check if this the issue of conversion failure and how it can be fixed.

  2. Regarding Heap memory optimization, please suggest how we can optimize the code.
    Please suggest, how much memory we need to allocate to the server, so that if at least 5 users
    are doing the DWG to SVG conversion at same, that should not affect the process.

    I have attached sample code in the attachment.

  3. Is there any DWG file size limit defined from Aspose side for DWG to SVG conversion, so that user can upload from UI, that can be helpful in successful conversion

Nov25_aspose.zip (92.0 KB)

@shivanandtripathi,

  1. I’m afraid we are not helpful here, we can not guess or detect the issue by screenshot as well as recommend something. The issue may appear not because of this text, it may appear because of internal processing of some font and other reasons during processing the file.

  2. You code is fine, high quality hatches and precision may require more time and memory compared to the default settings. Memory consumption depends on the complexity of the file, number of entities in them, e.g. number of hatches or other factors. If some specific files require too much time for loading/export, we may investigate them to see the reason directly and try to improve performance.

  3. There is no DWG file size limit.

Hi @oleksii.gorokhovatskyi ,

Thanks for your inputs, We have increased the memory to 5GB on the server , Now 1.5 MB size DWG file are getting processed properly.

I have a question regarding, if same exercise is done by multiple users (10 users) at same time, system will not able to process the files because allocated memory will not be sufficient.
Please suggest.

@shivanandtripathi,
Hello,
I’m afraid we can’t give much advice here. The amount of memory required for exporting depends on the content of the drawing, not directly on its size. So it’s possible that a 1.5 MB file can be converted quickly, but a file of around 800-900 KB may require 10 GB of memory.