WASM – Aborted(Assertion failed: attempt to write non-integer (undefined) into integer heap)

There is Aborted crash on browser when I resize window. My web app is based on VTK wasm. Check uiEventHandlerFunc in Test.js: Then we can read /emsdk/upstream/emscripten/src/library_html5.js and find registerUiEventCallback and uiEventHandlerFunc on the file. There is checkInt32(e.detail) in registerUiEventCallback in exported js file Test.js which was generated from emsdk Read more…

Uncaught TypeError: Cannot read properties of null (reading ‘onwheel’) from _emscripten_set_wheel_callback_on_thread

I encountered a crash bug on browser in a destructor of class. I found the definition of emscripten_set_wheel_callback_on_thread in `/emsdk/upstream/emscripten/src/library_html5.js`. It doesn’t check target before using it. It’s bad code. So I checked the version of emsdk: Then I upgraded emsdk to 3.1.51: Had been new version: There is a Read more…

Size Of VTK Render Window Will Not Match The External Canvas

I found an interesting issue about vtkSDL2OpenGLRenderWindow::SetSize when changed canvas for VTK WASM 3D window.The related post on the website is Change Canvas For VTK WASM Project. The interface SetSize can work if it was used before m_RenderWindowInteractor->SetRenderWindow( newWin );.It means the 3D window will become smaller or bigger than the outer shell. The red object Read more…

VTK WASM Error – Cannot read properties of null (reading ‘bindRenderbuffer’) at _glBindRenderbuffer

Sometimes we need to change canvas for VTK WASM 3D window.Updating renderer window and renderer is neccessary if we don’t restart all data loading.The related post is Change Canvas For VTK WASM Project. I got the following error info on the web page if do vtkSDL2OpenGLRenderWindow::Render before m_RenderWindow = newWin; (update the old rendererWindow variable). Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X