Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot serialize object #11

Closed
ShiroDoMain opened this issue Aug 23, 2024 · 1 comment
Closed

Cannot serialize object #11

ShiroDoMain opened this issue Aug 23, 2024 · 1 comment

Comments

@ShiroDoMain
Copy link

ShiroDoMain commented Aug 23, 2024

Hi! This is an awsome project! However, when I tried to use vtklocal on my project, there was a problem, the program kept outputting that the vtkSliderRepresentation2D object could not be serialized.

2024-08-23 15:28:51.481 (   7.249s) [DB0A99D79D232E0E]      vtkSerializer.cxx:90     ERR| vtkSerializer (0000021E52C798D0): Failed to add state for object=vtkSliderRepresentation2D (0000021E0EB163A0) with id=20
ERROR:root:Failed to add state for object=vtkSliderRepresentation2D (0000021E0EB163A0) with id=20
2024-08-23 15:28:51.945 (   7.713s) [DB0A99D79D232E0E]      vtkSerializer.cxx:115    ERR| vtkSerializer (0000021E52C798D0): Cannot serialize object with type { .name=class vtkSliderRepresentation2D .hashCode=2504205470402367349 } because a serializer was not found. Check stack trace to see how we got here.
ERROR:root:Cannot serialize object with type { .name=class vtkSliderRepresentation2D .hashCode=2504205470402367349 } because a serializer was not found. Check stack trace to see how we got here.
2024-08-23 15:28:51.946 (   7.713s) [DB0A99D79D232E0E]      vtkSerializer.cxx:116   WARN| vtkSerializer (0000021E52C798D0):  at vtkSerializer::GetHandler
 at vtkSerializer::SerializeJSON
 at vtkCommonCoreSerDesRegistrar::RegisterClasses
 at vtkSerializer::SetContext
 at vtkRenderingCoreSerDesRegistrar::RegisterClasses
 at vtkAbstractMapper::SafeDownCast
 at vtkSerializer::SerializeJSON
 at vtkRenderingCoreSerDesRegistrar::RegisterClasses
 at vtkAbstractMapper::SafeDownCast
 at vtkRenderingCoreSerDesRegistrar::RegisterClasses
 at vtkAbstractMapper::SafeDownCast
 at vtkRenderingOpenGL2SerDesRegistrar::RegisterClasses
 at vtkRenderingOpenGL2SerDesRegistrar::RegisterClasses
 at vtkSerializer::SerializeJSON
 at vtkCommonCoreSerDesRegistrar::RegisterClasses
 at vtkSerializer::SetContext
 at vtkRenderingCoreSerDesRegistrar::RegisterClasses
 at vtkAbstractMapper::SafeDownCast
 at vtkSerializer::SerializeJSON
 at vtkRenderingCoreSerDesRegistrar::RegisterClasses
 at vtkAbstractMapper::SafeDownCast
 at vtkRenderingOpenGL2SerDesRegistrar::RegisterClasses
 at vtkRenderingOpenGL2SerDesRegistrar::RegisterClasses
 at vtkRenderingOpenGL2SerDesRegistrar::RegisterClasses
 at vtkRenderingOpenGL2SerDesRegistrar::RegisterClasses
 at vtkSerializer::SerializeJSON
 at vtkObjectManager::UpdateStatesFromObjects
 at vtkObjectManager::UpdateStatesFromObjects
 at PyArg_ParseTuple_SizeT
 at Py_NewReference
 at PyEval_EvalFrameDefault
 at PyFunction_Vectorcall
 at PyFunction_Vectorcall
 at PyCode_Optimize
 at PyType_GenericAlloc
 at PyObject_Call
 at PyEval_EvalFrameDefault
 at PyFunction_Vectorcall
 at PyEval_EvalCodeWithName
 at PyEval_EvalCodeEx
 at PyEval_EvalCode
 at PyFuture_FromASTObject
 at PyFuture_FromASTObject
 at Py_c_pow
 at Py_c_pow
 at PyRun_SimpleFileExFlags
 at PyRun_AnyFileExFlags
 at PyObject_GenericGetDict
 at Py_RunMain
 at Py_RunMain
 at Py_RunMain
 at Py_Main
 at Py_Main
 at BaseThreadInitThunk
 at RtlUserThreadStart
@jourdain
Copy link
Collaborator

Yes most widgets are not supported yet. The one you mentioned is already captured here. That specific widget is not that useful with trame since you can make it in 2D very easily. So that one may not happen any time soon. But we are working on other widgets.

Closing since it is already capture in another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants