Hi,
I have a DRC file sample but it fail to open when using the Aspose.3D version 19.10.0 and 25.5.0:
glb_data_0.zip (65.7 KB)
This is my code:
var scene = new Scene();
scene.Open(inFile);
scene.Save(outFile, targetFormat);
I also have other DRC file that could open using the Aspose3D library:
valid_drc.zip (16.0 KB)
From my investigate, when comparing the binary structure, I found that my files different in offset 0x05 and 0x06, which is 0x02 0x02 and 0x01 0x01 respectively.
Could you further investigate this problem.
Thank you
@dunghnguyen
Cause
The issue you’re experiencing with opening the DRC file is likely due to differences in the binary structure of the files. The offsets at 0x05 and 0x06 differ between your problematic file and the valid one, indicating a potential format or encoding issue.
Solution
To troubleshoot this, follow these steps:
- File Validation: Ensure that the DRC file is correctly formatted and adheres to the expected specifications. Utilize a DRC file validator if one is available.
- Library Version: Confirm that you are using the latest version of the Aspose.3D library. Test with the most recent version to determine if the issue persists.
- Error Handling: Implement error handling in your code to capture any exceptions thrown when attempting to open the file. This will provide more insight into the underlying problem.
Code
Here’s a modified version of your code that includes error handling:
try
{
var scene = new Scene();
scene.Open(inFile);
scene.Save(outFile, targetFormat);
}
catch (Exception ex)
{
Console.WriteLine($"An error occurred: {ex.Message}");
}
Next Steps
- Test the above code with both the problematic and valid DRC files to identify any specific errors that may arise.
- If the issue persists, reach out to Aspose support with detailed information about the DRC file structure and any error messages you encounter.
- If feasible, share the problematic file with Aspose support for further analysis.
Please proceed with these steps, and let me know if you need further assistance!
Based on this, I assumed that the sample has a different bitstream version, which might be causing Aspose3D to fail when attempting to open it.
@dunghnguyen
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): THREEDNET-1692
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.