Fix index out of bounds runtime crash
Merge request reports
Activity
12 12 -DVTK_MODULE_ENABLE_VTK_cli11:STRING=YES \ 13 13 -DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2:STRING=DONT_WANT \ 14 14 -DVTK_BUILD_TESTING=ON \ 15 -DVTK_WEBASSEMBLY_THREADS=OFF \ What really needs to be done is either disable testing or
- Add "-pthread" to compile options of each example.
- Add "-pthread" "-sPROXY_TO_PTHREAD=1" "-sOFFSCREENCANVAS_SUPPORT=1" to link options of each example.
Modify the http headers of static server to support SharedArrayBuffer
Example with python server - https://gist.github.com/pezcode/d51926bdbadcbd4f22f5a5d2fb8e0394
Mmh strange, I tested the build locally and it seemed to work both with
-DVTK_BUILD_TESTING=ON
and-DVTK_WEBASSEMBLY_THREADS=OFF
I'll try as well with the link options you provided. Thanks!
The reason will build testing if for some examples eg GenericClip which needs the Testing moduleOkay! It ain't broke if it works. The link options are only required when
VTK_WEBASSEMBLY_THREADS=ON
.The reason will build testing if for some examples eg GenericClip which needs the Testing module
I see, because it needs
vtkBridgeDataSet
fromTestingGeneric
module.I'm on the fence about enabling threads in the vtk-examples website because it's not easy to customize http headers when hosting from github pages - https://docs.wasmer.io/javascript-sdk/how-to/coop-coep-headers
assigned to @jules.bourdais
mentioned in commit 76ab25c7