You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the instructions here for building my own custom build, but I used the build definition given here.
The build went fine, but then when I go to use it:
import initOpenCascade from "opencascade.js"
import opencascade from './customBuild/customBuild.examples.js';
import opencascadeWasm from './customBuild/customBuild.examples.wasm';
initOpenCascade({
mainJs: opencascade,
mainWasm: opencascadeWasm,
}).then((newOC) => {
console.log("wasm is initialized!")
})
The console shows me an error:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'buffer')
at receiveInstance (opencascade.full.js:9:1)
at receiveInstantiationResult (opencascade.full.js:9:1)
Expected behavior is that opencascade initializes properly. It does init properly if I omit my custom mainJs and mainWasm, it just takes 5 seconds or so, hence my need for a custom build.
The text was updated successfully, but these errors were encountered:
@MattFerraro I can reproduce this error when using - -sDISABLE_EXCEPTION_CATCHING=0 in the custom build emccFlags, when setting this to -sDISABLE_EXCEPTION_CATCHING=1 it does work. I'm unsure what is going on though.
I followed the instructions here for building my own custom build, but I used the build definition given here.
The build went fine, but then when I go to use it:
The console shows me an error:
Expected behavior is that opencascade initializes properly. It does init properly if I omit my custom
mainJs
andmainWasm
, it just takes 5 seconds or so, hence my need for a custom build.The text was updated successfully, but these errors were encountered: