Closed pshenmic closed 1 month ago
We hit this problem again on the production. Previously WASM DPP were included in the dashmate, that caused problem on the @qwizzie system. We then removed dpp from the dashmate that made it work.
Now, with the platform release, @qwizzie hits this problem again, because WASM DPP is used in the DAPI service:
[07:30:50.289] ERROR (34): CompileError: WebAssembly.Module(): Compiling function #1534:"bytecount::simd::wasm::chunk_num_chars::h5a3553..." failed: Wasm SIMD unsupported @+3063056
at Object.initSync (/platform/packages/wasm-dpp/dist/wasm/wasm_dpp.js:2425:46061)
at /platform/packages/wasm-dpp/dist/index.js:71:20
at Generator.next (<anonymous>)
at /platform/packages/wasm-dpp/dist/index.js:30:71
at new Promise (<anonymous>)
at __awaiter (/platform/packages/wasm-dpp/dist/index.js:26:12)
at loadDppModule (/platform/packages/wasm-dpp/dist/index.js:62:29)
at /platform/packages/wasm-dpp/dist/index.js:52:30
at Generator.next (<anonymous>)
at /platform/packages/wasm-dpp/dist/index.js:30:71
It looks like there is some cross compatibility issue with WASM DPP that is crashing on some CPUs
We did investigate on how we can compile WASM DPP without SIMD requirements but it's very hacky and I'm not sure this is still actual. It was reported only by one user who changed his CPU later to handle it.
Expected Behavior
Wasm DPP should be able to run on all systems
Current Behavior
On some specific CPUs, WASM DPP couldn't be run successfully due missing instructions:
Possible Solution
Revise changes happened between 0.25.13 and 0.25.15
Steps to Reproduce (for bugs)
Context
https://github.com/dashpay/platform/issues/1583 have more some more details.
Basically, that happened on the 0.25.15 release, where RS-SDK was introduced in the project. I believe there were some breaking changes that broke WASM DPP on some specific combination of software and hardware. Check environment for more execution details
Your Environment
Thanks @qwizzie for report, taken from the previous issue
CPU: