Open dkowollik opened 3 months ago
Thanks @dkowollik! Let's clarify the scenario if possible :)
Under what conditions is this failing? I am assuming Ansys 24R2 products, specifically the Geometry Service, and via PyAnsys Geometry - right?
Have you tried it using PyAnsys Geometry and Discovery or SpaceClaim? And in that case, does it work? Or have you only tried it using the products in standalone mode (i.e. not through PyAnsys Geometry, but through the traditional GUI)?
If I use the traditional Discovery GUI the error does not occur.
The error occurs, if you use the below python snippets:
from ansys.geometry.core import launch_modeler_with_geometry_service
modeler = launch_modeler_with_geometry_service()
model = modeler.open_file('Named_Selection_Rhino_8_Example.3dm')
File C:\Python\Python310_64_ansys\lib\site-packages\ansys\geometry\core\errors.py:98, in protect_grpc.<locals>.wrapper(*args, **kwargs)
96 out = func(*args, **kwargs)
97 except (_InactiveRpcError, _MultiThreadedRendezvous) as error: # pragma: no cover
---> 98 raise GeometryExitedError(
99 f"Geometry service connection terminated: {error.details()}"
100 ) from None
102 if threading.current_thread().__class__.__name__ == "_MainThread":
103 received_interrupt = bool(SIGINT_TRACKER)
GeometryExitedError: Geometry service connection terminated: Operation failed
If I use the Python Discovery interface a different error occours. Here the new error occurs also for Rhino 7 files.
from ansys.geometry.core import launch_modeler_with_discovery
modeler = launch_modeler_with_discovery(hidden=True)
model = modeler.open_file('Named_Selection_Rhino_8_Example.3dm')
File C:\Python\Python310_64_ansys\lib\site-packages\ansys\geometry\core\errors.py:96, in protect_grpc.<locals>.wrapper(*args, **kwargs)
94 # Capture gRPC exceptions
95 try:
---> 96 out = func(*args, **kwargs)
97 except (_InactiveRpcError, _MultiThreadedRendezvous) as error: # pragma: no cover
98 raise GeometryExitedError(
99 f"Geometry service connection terminated: {error.details()}"
100 ) from None
File C:\Python\Python310_64_ansys\lib\site-packages\ansys\geometry\core\modeler.py:321, in Modeler.open_file(self, file_path, upload_to_server, import_options)
316 else:
317 DesignsStub(self._grpc_client.channel).Open(
318 OpenRequest(filepath=file_path, import_options=import_options.to_dict())
319 )
--> 321 return self.read_existing_design()
File C:\Python\Python310_64_ansys\lib\site-packages\ansys\geometry\core\modeler.py:206, in Modeler.read_existing_design(self)
197 """Read the existing design on the service with the connected client.
198
199 Returns
(...)
202 Design object already existing on the server.
203 """
204 from ansys.geometry.core.designer.design import Design
--> 206 design = Design("", self, read_existing_design=True)
207 self._designs[design.design_id] = design
208 if len(self._designs) > 1:
File C:\BEWIND\Python310_64_ansys\lib\site-packages\ansys\geometry\core\errors.py:98, in protect_grpc.<locals>.wrapper(*args, **kwargs)
96 out = func(*args, **kwargs)
97 except (_InactiveRpcError, _MultiThreadedRendezvous) as error: # pragma: no cover
---> 98 raise GeometryExitedError(
99 f"Geometry service connection terminated: {error.details()}"
100 ) from None
102 if threading.current_thread().__class__.__name__ == "_MainThread":
103 received_interrupt = bool(SIGINT_TRACKER)
GeometryExitedError: Geometry service connection terminated: Die Sequenz enthält kein übereinstimmendes Element.
Okay, I will bring this to the server/product development teams. Seems like we might have an issue. Thanks for opening this @dkowollik
🔍 Before submitting the issue
🐞 Description of the bug
Somehow the import crashes, if I use a rhino model with a newer rhino file version (Rhino 8). I can import the model with Discovery, SpaceClaim and PyPrimeMesh. I get the following error message:
If I convert the Rhino 8 file to Rhino 7, the import works fine. A better error feedback would be helpful.
📝 Steps to reproduce
Use a rhino 8 file for import Named_Selection_Rhino_8_Example.zip
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
Ansys 2024R2
🐍 Which Python version are you using?
3.10
📦 Installed packages