Hi,
I’m using the latest version of aspose.cells.node. However, once again, I run into so many segmentation faults when converting Excel → HTML (HtmlSaveOptions, have also tried with all options/settings off but it still happens). Before I have noted my instances found and they have been fixed but we still have it on a nearly daily basis, often with Japanese documents.
Here is a sample file for you to try and recreate: Import timeout excel sec.xlsx - Google Sheets
Thanks very much
@jibsonjitera
It sounds like you’re experiencing persistent segmentation faults when converting Excel files to HTML using Aspose.Cells for Node.js, particularly with Japanese documents. Here’s a structured approach to troubleshoot and resolve the issue:
Cause: The segmentation faults may be due to specific content in the Japanese documents, memory allocation issues, or bugs in the version of Aspose.Cells you are using.
Solution: Follow these steps to address the problem:
-
Update to the Latest Version: Ensure you are using the latest version of Aspose.Cells for Node.js, as updates often include critical bug fixes and performance improvements.
-
Test with Different HtmlSaveOptions: Since you’ve already tried various settings, consider testing with the following options:
- Disable comments export:
htmlSaveOptions.setExportComments(false);
- Limit the export to just the active worksheet:
setExportActiveWorksheetOnly(true);
- Experiment with
setSaveAsSingleFile(true) to see if it affects the output.
-
Check for Specific Content: Investigate if there are specific characters or formatting in the document that might be causing the fault. Simplifying the content can help identify any problematic elements.
-
Memory Management: Ensure that your environment has sufficient memory allocated for processing large files, as segmentation faults can sometimes be related to memory issues.
-
Error Handling: Implement error handling in your code to catch exceptions and log detailed error messages. This can help pinpoint the exact point of failure.
-
Contact Support: If the issue persists after trying the above steps, reach out to Aspose support with the specific file and details of your environment. They can provide more targeted assistance.
Next Steps: Implement the suggested solutions and test the conversion process again. If the problem continues, gather any error logs and prepare to contact Aspose support for further help.
Here’s a minimal code snippet to get you started with the HtmlSaveOptions:
const { Workbook, HtmlSaveOptions } = require('aspose.cells');
const workbook = new Workbook("path/to/your/excel/file.xlsx");
const options = new HtmlSaveOptions();
options.setExportComments(false);
options.setExportActiveWorksheetOnly(true);
workbook.save("output.html", options);
Please let me know if these steps help or if you require further assistance!
Yes, as I said i am using latest version, have tried removing all HTMLSaveOptions params, increased compute (is not due to how much memory, it’s just a crash in segsev).
I require more support
@jibsonjitera,
Thank you for sharing the Excel file.
Could you please provide the error logs and screenshots that illustrate the segmentation faults occurring during the conversion of the Excel file to HTML using Aspose.Cells for Node.js via C++ v25.8? Additionally, we would appreciate it if you could share the exact code you are using and details about your environment. We will look into it soon.