-
Notifications
You must be signed in to change notification settings - Fork 1
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
Tests on Pyvista Examples #8
Comments
Hey, apologies for late reply. For 1, 2, 4, 7 and 11, I think all you need is a newer VTK as we are actively working on enabling the serialization capability for more vtk classes. If the VTK version you're using is any older than pip install "vtk==9.3.20240720.dev0" --extra-index-url https://wheels.vtk.org For 12, I think you mean |
Ah. What's going on is the property from server side render window is getting applied in wasm. We can look into excluding the |
Or it can also be a parameter similar to |
Correct, we're working on that in #7.
So that example works for me. If it matters (it shouldn't), I'm on linux, I will try on a windows machine and get back.
Yup, this makes sense because the wasm mapper doesn't implement rendering points as spheres. It is something we will get around to after major stuff like widgets are resolved. |
Yes, I'm testing it on Windows, it may be the problem. I will take a try on Linux too. |
@jourdain here's the windows problem with |
The issue with |
I guess with the new version of trame-vtklocal and latest VTK most of it is taking care. Except off_screen flag which will happen sometime next week but closing to keep clarity. |
I did some tests on Pyvista Examples for local rendering using WASM, here are the results:
JS Error => WASM update failed
JS Error => RuntimeError: null function or function signature mismatch
2024-07-21 11:28:44.737 ( 1.905s) [24B2BB1042894DD8] vtkSerializer.cxx:90 ERR| vtkSerializer (000001EC62E93DC0): Failed to add state for object=vtkImageActor (000001EC633080C0) with id=49
ERROR:root:Failed to add state for object=vtkImageActor (000001EC633080C0) with id=49
JS Error => WASM update failed
JS Error => RuntimeError: null function or function signature mismatch
2024-07-21 11:35:27.656 ( 3.025s) [69F3DC7C481EFBBB] vtkSerializer.cxx:90 ERR| vtkSerializer (000001EB5335B290): Failed to add state for object=vtkEDLShading (000001EB52FDB290) with id=69
ERROR:root:Failed to add state for object=vtkEDLShading (000001EB52FDB290) with id=69
ERROR:wslink.protocol:Exception raised
ERROR:wslink.protocol:AttributeError("'NoneType' object has no attribute 'GetMTime'")
ERROR:wslink.protocol:Traceback (most recent call last):
File "C:\Users\wwy\miniconda3\envs\vtklocal\Lib\site-packages\wslink\protocol.py", line 309, in onCompleteMessage results = func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wwy\miniconda3\envs\vtklocal\Lib\site-packages\trame_vtklocal\module\protocol.py", line 92, in get_status ids_mtime = [map_id_mtime(self.vtk_object_manager, v) for v in ids] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wwy\miniconda3\envs\vtklocal\Lib\site-packages\trame_vtklocal\module\protocol.py", line 9, in map_id_mtime return (vtk_id, vtk_obj.GetMTime()) ^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'GetMTime'
2024-07-21 11:39:19.778 ( 2.201s) [2DEF34B86EB3A545] vtkSerializer.cxx:90 ERR| vtkSerializer (0000022904238900): Failed to add state for object=vtkLabelPlacementMapper (0000022901D9B040) with id=52
ERROR:root:Failed to add state for object=vtkLabelPlacementMapper (0000022901D9B040) with id=52
JS Error => WASM update failed
JS Error => RuntimeError: null function or function signature mismatch
File "C:\Users\wwy\miniconda3\envs\vtklocal\Lib\zipfile\__init__.py", line 1416, in _RealGetContents raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
2024-07-21 11:46:55.400 ( 24.117s) [58A33434455786F5] vtkSerializer.cxx:90 ERR| vtkSerializer (0000029F24F020B0): Failed to add state for object=vtkOpenGLTexture (0000029F24D44D80) with id=9 ERROR:root:Failed to add state for object=vtkOpenGLTexture (0000029F24D44D80) with id=9
JS Error => WASM update failed
JS Error => RuntimeError: null function or function signature mismatch
2024-07-21 11:48:30.416 ( 2.836s) [247903E1FCD2DC27] vtkSerializer.cxx:90 ERR| vtkSerializer (0000018DA1177AF0): Failed to add state for object=vtkSliderRepresentation2D (0000018DA1495160) with id=24
ERROR:root:Failed to add state for object=vtkSliderRepresentation2D (0000018DA1495160) with id=24
JS Error => WASM update failed
JS Error => RuntimeError: null function or function signature mismatch
And another problem is that for those examples that can run successfully, a local window will always be there. It's not user friendly if the app is running locally. For vtk.js solution, we can use
off_screen
parameter to hide this local windowpv.Plotter(off_screen=True)
. But using vtklocal solution, the render window will be black. Any solution for this problem?The text was updated successfully, but these errors were encountered: