🔍 Before submitting the issue
🐞 Description of the bug
PyVBB will report error when commit VBB property to RPC in 26R1. There is no such error in 25R2. Here are the error msg.
CRITICAL - - logger - handle_exception - Uncaught exception
Traceback (most recent call last):
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench\vbb-pypeos.py", line 90, in
vbb.commit()
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\simulation.py", line 797, in commit
self._project.scene_link.set(data=scene_data) # update scene data
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\kernel\scene.py", line 94, in set
self._stub.update(self, data)
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\kernel\scene.py", line 258, in update
CrudStub.update(self, messages.Update_Request(guid=ref.key, scene=data))
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\kernel\crud.py", line 46, in update
self._stubMngr.Update(request)
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\grpc_channel.py", line 1166, in call
return _end_unary_response_blocking(state, call, False, None)
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\grpc_channel.py", line 996, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "{"ErrorName":"OPTMissingGeometry","ErrorCategory":"OPTInputError","ErrorSeverity":0,"ErrorRequest":"Missing geometry","ErrorDiagnostic":"No geometry has been selected in definition of 'virtual_bsdf'","ErrorAdvice":"Add body(ies) or face(s) to definition","ErrorFile":"C:\ANSYSDev\Agent\_work\64\s\SpeosOne\Speos\Optis.Libs\LibCAD2\Source\OptBRDFBench.cpp","ErrorLine":207}"
debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:50098 {grpc_message:"{"ErrorName":"OPTMissingGeometry","ErrorCategory":"OPTInputError","ErrorSeverity":0,"ErrorRequest":"Missing geometry","ErrorDiagnostic":"No geometry has been selected in definition of 'virtual_bsdf'","ErrorAdvice":"Add body(ies) or face(s) to definition","ErrorFile":"C:\\ANSYSDev\\Agent\\_work\\64\\s\\SpeosOne\\Speos\\Optis.Libs\\LibCAD2\\Source\\OptBRDFBench.cpp","ErrorLine":207}", grpc_status:3}"
📝 Steps to reproduce
vbb-pypeos.py Here is the test code.
Error with be throw when commit vbb parameters to RPC
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
26R1
🐍 Which Python version are you using?
3.10
📦 Installed packages
[project]
name = "vbbui"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"ansys-speos-core[graphics]>=0.7.1",
"ansys-tools-common>=0.4.0",
"pyside6>=6.10.2",
"pyvista>=0.46.4",
]
[dependency-groups]
dev = [
"pyinstaller>=6.17.0",
]
🔍 Before submitting the issue
🐞 Description of the bug
PyVBB will report error when commit VBB property to RPC in 26R1. There is no such error in 25R2. Here are the error msg.
CRITICAL - - logger - handle_exception - Uncaught exception
Traceback (most recent call last):
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench\vbb-pypeos.py", line 90, in
vbb.commit()
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\simulation.py", line 797, in commit
self._project.scene_link.set(data=scene_data) # update scene data
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\kernel\scene.py", line 94, in set
self._stub.update(self, data)
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\kernel\scene.py", line 258, in update
CrudStub.update(self, messages.Update_Request(guid=ref.key, scene=data))
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\ansys\speos\core\kernel\crud.py", line 46, in update
self._stubMngr.Update(request)
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\grpc_channel.py", line 1166, in call
return _end_unary_response_blocking(state, call, False, None)
File "c:\Py_Projects\VBB\VBB_BENCH\speos-virtual-bsdf-bench.venv\lib\site-packages\grpc_channel.py", line 996, in _end_unary_response_blocking
raise _InactiveRpcError(state) # pytype: disable=not-instantiable
grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.INVALID_ARGUMENT
details = "{"ErrorName":"OPTMissingGeometry","ErrorCategory":"OPTInputError","ErrorSeverity":0,"ErrorRequest":"Missing geometry","ErrorDiagnostic":"No geometry has been selected in definition of 'virtual_bsdf'","ErrorAdvice":"Add body(ies) or face(s) to definition","ErrorFile":"C:\ANSYSDev\Agent\_work\64\s\SpeosOne\Speos\Optis.Libs\LibCAD2\Source\OptBRDFBench.cpp","ErrorLine":207}"
debug_error_string = "UNKNOWN:Error received from peer ipv4:127.0.0.1:50098 {grpc_message:"{"ErrorName":"OPTMissingGeometry","ErrorCategory":"OPTInputError","ErrorSeverity":0,"ErrorRequest":"Missing geometry","ErrorDiagnostic":"No geometry has been selected in definition of 'virtual_bsdf'","ErrorAdvice":"Add body(ies) or face(s) to definition","ErrorFile":"C:\\ANSYSDev\\Agent\\_work\\64\\s\\SpeosOne\\Speos\\Optis.Libs\\LibCAD2\\Source\\OptBRDFBench.cpp","ErrorLine":207}", grpc_status:3}"
📝 Steps to reproduce
vbb-pypeos.py Here is the test code.
Error with be throw when commit vbb parameters to RPC
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
26R1
🐍 Which Python version are you using?
3.10
📦 Installed packages