mayo icon indicating copy to clipboard operation
mayo copied to clipboard

mayo-conv.exe crashes with Access Violation (0xC0000005) when converting specific STL to IGS on Windows

Open xiaoyihao001018 opened this issue 8 months ago • 1 comments

Image Environment: Operating System: Windows 10 Mayo Version: 0.9.0 Problem Description: The mayo-conv.exe command-line tool crashes during the export phase when attempting to convert a specific STL file to the IGS format. Steps to Reproduce: Obtain the problematic STL file (named test_one.stl).. In a Windows Command Prompt (CMD) or PowerShell, navigate to the directory containing test_one.stl.[https://wangx-1.oss-cn-hangzhou.aliyuncs.com/1745303793560_DWFAPAm1LZPt84da2e1dfa8754ebf686224780fc8bad.stl] Execute the following command: Apply to app.py Run (Please adjust the paths for mayo-conv.exe and test_one.stl according to your actual setup) Observe the console output. Immediately after the command finishes, check the process exit code: In CMD, run: echo %ERRORLEVEL% In PowerShell, run: echo $lastexitcode Expected Behavior: The command completes successfully without crashing. A valid output.igs file is generated in the current directory. The process exit code should be 0. Actual Behavior: The console displays: Apply to app.py The program then terminates abruptly with no further output or error messages printed to the console. The observed process exit code is -1073741819 (hexadecimal 0xC0000005), indicating an Access Violation error. No valid output.igs file is generated (or the file size is 0KB). Additional Information: This crash occurs consistently when converting this specific test_one.stl file to IGS. The issue was initially discovered when calling mayo-conv.exe via Python's subprocess module, and the crash was confirmed by running the command directly in the terminal. Notably, converting the same test_one.stl file to other formats (like OBJ, STP) appears to work correctly (at least when called via the Python script, resulting in exit code 0). [Optional, if applicable] During tests within the Python script, attempts to convert this STL file to VRML (.vrm) and AMF (.amf) formats also seemed to result in the same crash (exit code 3221225477, which is 0xC0000005). This might suggest the issue is not limited to IGS export but affects multiple export formats. Attachments/Links: [(https://wangx-1.oss-cn-hangzhou.aliyuncs.com/1745303793560_DWFAPAm1LZPt84da2e1dfa8754ebf686224780fc8bad.stl)]

xiaoyihao001018 avatar Apr 22 '25 06:04 xiaoyihao001018

Hello, apologizes for the late answer You are trying to convert an STL file to IGES format, but this is not supported. An STL file contains mesh geometry, basically a soup of triangles But IGES files contain topologic shapes(edges, faces, solids, ...) so there's no direct conversion between mesh triangles and topologic shapes In such case Mayo shouldn't crash but let the user know the conversion isn't possible Will provide a fix for this kind of issues

HuguesDelorme avatar May 23 '25 08:05 HuguesDelorme