How was emscripten_set_wheel_callback_on_thread generated in wasm file

We had met a bug about _emscripten_set_wheel_callback_on_thread in web app based on wasm. Relative post: https://www.weiy.city/2025/02/uncaught-typeerror-cannot-read-properties-of-null-reading-onwheel-from-_emscripten_set_wheel_callback_on_thread/ Let’s explore how was the function generated in the final wasm file. The function _emscripten_set_wheel_callback_on_thread was from emscripten_set_wheel_callback_on_thread in src/library_html5.js. Read js files and html5.h under emsdk to find the called logic. Code in Read more…

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…

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

X