Webassembly whit multithreading,BRepAlgoAPI_BooleanOperation fail.

When I compiled the code into WASM with multithreading,BRepAlgoAPI_BooleanOperation fail.

The error like this:

-------------------------------------------------------------------------
worker.js onmessage() captured an uncaught exception: RuntimeError: Aborted(segmentation fault)
worker.js onmessage() captured an uncaught exception: RuntimeError: Aborted(segmentation fault)
worker.js onmessage() captured an uncaught exception: RuntimeError: Aborted(segmentation fault)
worker.js onmessage() captured an uncaught exception: RuntimeError: Aborted(segmentation fault)
RuntimeError: Aborted(segmentation fault)
at abort (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:2731:10)
at segfault (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:1551:2)
at SAFE_HEAP_LOAD_i32_1_U_1 (<anonymous>:wasm-function[24138]:0x11375a3)
at _emscripten_yield (<anonymous>:wasm-function[23179]:0x11014a6)
at emscripten_futex_wait (<anonymous>:wasm-function[23172]:0x1100cb7)
at __timedwait_cp (<anonymous>:wasm-function[23246]:0x1105e34)
at __timedwait (<anonymous>:wasm-function[23247]:0x1105e98)
at __pthread_mutex_lock (<anonymous>:wasm-function[23260]:0x11069e8)
at dlmalloc (<anonymous>:wasm-function[23342]:0x110f4b0)
at dlmemalign (<anonymous>:wasm-function[23346]:0x11123bc)
RuntimeError: Aborted(segmentation fault)
at abort (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:2731:10)
at segfault (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:1551:2)
at SAFE_HEAP_LOAD_i32_1_U_1 (<anonymous>:wasm-function[24138]:0x11375a3)
at _emscripten_yield (<anonymous>:wasm-function[23179]:0x11014a6)
at emscripten_futex_wait (<anonymous>:wasm-function[23172]:0x1100cb7)
at __timedwait_cp (<anonymous>:wasm-function[23246]:0x1105e34)
at __timedwait (<anonymous>:wasm-function[23247]:0x1105e98)
at __pthread_mutex_lock (<anonymous>:wasm-function[23260]:0x11069e8)
at dlmalloc (<anonymous>:wasm-function[23342]:0x110f4b0)
at dlmemalign (<anonymous>:wasm-function[23346]:0x11123bc)
RuntimeError: Aborted(segmentation fault)
at abort (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:2731:10)
at segfault (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:1551:2)
at SAFE_HEAP_LOAD_i32_1_U_1 (<anonymous>:wasm-function[24138]:0x11375a3)
at _emscripten_yield (<anonymous>:wasm-function[23179]:0x11014a6)
at emscripten_futex_wait (<anonymous>:wasm-function[23172]:0x1100cb7)
at __timedwait_cp (<anonymous>:wasm-function[23246]:0x1105e34)
at __timedwait (<anonymous>:wasm-function[23247]:0x1105e98)
at __pthread_mutex_lock (<anonymous>:wasm-function[23260]:0x11069e8)
at dlmalloc (<anonymous>:wasm-function[23342]:0x110f4b0)
at dlmemalign (<anonymous>:wasm-function[23346]:0x11123bc)
RuntimeError: Aborted(segmentation fault)
at abort (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:2731:10)
at segfault (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:1551:2)
at SAFE_HEAP_LOAD_i32_1_U_1 (<anonymous>:wasm-function[24138]:0x11375a3)
at _emscripten_yield (<anonymous>:wasm-function[23179]:0x11014a6)
at emscripten_futex_wait (<anonymous>:wasm-function[23172]:0x1100cb7)
at __timedwait_cp (<anonymous>:wasm-function[23246]:0x1105e34)
at __timedwait (<anonymous>:wasm-function[23247]:0x1105e98)
at __pthread_mutex_lock (<anonymous>:wasm-function[23260]:0x11069e8)
at dlmalloc (<anonymous>:wasm-function[23342]:0x110f4b0)
at dlmemalign (<anonymous>:wasm-function[23346]:0x11123bc)
RuntimeError: Aborted(segmentation fault)
at abort (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:2731:10)
at segfault (eval at importScripts (E:\src\swj_occ\OCC\project\js\solid.worker.js:77:16), <anonymous>:1551:2)
at SAFE_HEAP_LOAD_i32_1_U_1 (<anonymous>:wasm-function[24138]:0x11375a3)
at _emscripten_yield (<anonymous>:wasm-function[23179]:0x11014a6)
at emscripten_futex_wait (<anonymous>:wasm-function[23172]:0x1100cb7)
at __timedwait_cp (<anonymous>:wasm-function[23246]:0x1105e34)
at __timedwait (<anonymous>:wasm-function[23247]:0x1105e98)
at __pthread_mutex_lock (<anonymous>:wasm-function[23260]:0x11069e8)
at dlmalloc (<anonymous>:wasm-function[23342]:0x110f4b0)
at dlmemalign (<anonymous>:wasm-function[23346]:0x11123bc)

lee leon's picture

I test BRepAlgoAPI_BooleanOperation with multithreading, in nodejs