Prevent STEP import segfault and validate required input sections#85
Conversation
Agent-Logs-Url: https://github.com/OpenSEMBA/tulip/sessions/0c5dd8f8-dcf6-47c2-9133-1b85d07aec55 Co-authored-by: lmdiazangulo <4919398+lmdiazangulo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/OpenSEMBA/tulip/sessions/0c5dd8f8-dcf6-47c2-9133-1b85d07aec55 Co-authored-by: lmdiazangulo <4919398+lmdiazangulo@users.noreply.github.com>
|
@copilot this seems reasonable but in this case it seems that the user put "model" rather than "layers". We should include a check that the input file includes the minimal components needed: "materials" and "layers" and show a helpful error message if it is not the case. Create a new commit in this PR to address that. |
|
@copilot Also update the documentation. It seems outdated. |
Agent-Logs-Url: https://github.com/OpenSEMBA/tulip/sessions/43d75020-aa34-4e7b-b8c1-a6009d96501a Co-authored-by: lmdiazangulo <4919398+lmdiazangulo@users.noreply.github.com>
Implemented in commit 439593e. I added explicit validation that input JSON must contain top-level array sections Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Agent-Logs-Url: https://github.com/OpenSEMBA/tulip/sessions/8dfe7ed4-839e-4b33-acc3-a6b7acb430a8 Co-authored-by: lmdiazangulo <4919398+lmdiazangulo@users.noreply.github.com>
Updated in commit cafdb71. I refreshed |
Loading some STEP-based inputs can crash during adaptation (
Segmentation fault) after layer import/label resolution. One failure path occurred when classification built a closed-domain vacuum from a nesting graph with no roots and dereferencedroots[0].Rootless graph handling in classification
ShapesClassification::isOpenProblem().Defensive closed-domain construction
buildClosedVacuumDomain():Input schema validation for clearer failures
materialslayersmodelis present instead of required top-level sections, include a specific hint in the error message.Regression coverage
layersand missingmaterialsto validate the new input-schema error path.