Hello,
I’ve reported a similar issue before that was mainly fixed: Aspose.Cells Segmentation Fault when saving to HTML
However, once again, on Aspose.cells via C++ bindings on latest 25.7.0, I still get segmentation faults both on Mac and Linux for some files when converting Excel → HTML via HtmlSaveOptions. I also removed all options and used default save options but happened agian
Debug log:
Process 62254 stopped
- thread #1, queue = ‘com.apple.main-thread’, stop reason = EXC_BAD_ACCESS (code=1, address=0xcdac58e97190)
frame #0: 0x0000000179a67664 libAspose.Cells.dylib___lldb_unnamed_symbol79830 + 1412 libAspose.Cells.dylib
___lldb_unnamed_symbol79830:
→ 0x179a67664 <+1412>: ldr x8, [x8, #0x10]
0x179a67668 <+1416>: mov x0, x25
0x179a6766c <+1420>: blr x8
0x179a67670 <+1424>: ldr x0, [x25, #0x58]
Target 0: (node) stopped.
Thank you very much
@jibsonjitera
It sounds like you’re encountering segmentation faults when saving Excel files to HTML using Aspose.Cells with C++ bindings. This can be frustrating, especially since you’ve already reported a similar issue previously.
Cause: The segmentation faults may be due to specific content or formatting in the Excel files, or potential bugs in the version of Aspose.Cells you are using.
Solution: Here are some steps you can take to diagnose and potentially resolve the issue:
-
Update to the Latest Version: Ensure you are using the latest version of Aspose.Cells. Bugs are often fixed in newer releases.
-
Check Input Files: Verify if the specific Excel files causing the segmentation faults have any unusual formatting or content that might be triggering the issue. Try with simpler files to see if the problem persists.
-
Use Default Options: Since you mentioned using default save options, ensure that you are not inadvertently setting any options that could lead to instability. You can also try explicitly setting the HtmlSaveOptions
to default values.
-
Debugging: Utilize debugging tools to trace the exact point of failure. The debug log you provided indicates an access violation, which often points to issues with memory management.
-
Contact Support: If the issue persists, consider reaching out to Aspose support with detailed information, including the specific files causing the issue and the debug logs. They may have more insights or a patch available.
Next Steps: Here’s a minimal code example to save an Excel file to HTML using default options:
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main() {
Aspose::Cells::Startup();
// Load your source workbook
Workbook workbook(u"Book1.xlsx");
// Save file to HTML format
workbook.Save(u"out.html");
std::cout << "Workbook saved to HTML format successfully!" << std::endl;
Aspose::Cells::Cleanup();
return 0;
}
Please try these steps and let me know if this helps or if you need further assistance!
@jibsonjitera,
Could you please compress (zip) and attach one or more sample Excel file(s) that are relevant to the issue you are encountering? Additionally, please paste your sample code that would help in reproducing the problem. We will examine the provided files and code to investigate the issue soon.
Hey @amjad.sahi ,
Here’s a sample file that breaks: Import timeout excel.xlsx - Google Sheets
Thank you very much
@jibsonjitera,
Thanks for the sample Excel file.
We need a detailed analysis of the segmentation fault occurring on both Mac and Linux when converting your template Excel file to HTML using HtmlSaveOption.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CELLSNODEJSCPP-61
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@jibsonjitera
This bug is different from the previous one. It has been fixed in v25.7.1 for Linux x64. Fixes for other platforms will be completed in the next release. Please use the below command to update the library on Linux.
npm i aspose.cells.node.linux.x64
Thank you.
Hey @Nick.Liu , thank you for fixing
Any idea when the next release will be for the other platforms?
Thanks
@jibsonjitera
Aspose.Cells for Node.js via C++ v25.8 will be released within 1-2 weeks.
The issues you have found earlier (filed as CELLSNODEJSCPP-61) have been fixed in this update. This message was posted using Bugs notification tool by Nick.Liu