Closed dractw closed 1 year ago
Hi @dractw ! We are investigating the issue. As workaround you can try to call free()
on each CSL object that you don't need. Or use browser version.
@lisicky Hi, i tried your suggestion, unfortunately no luck, it still crashes with Failed to execute 'decode' on 'TextDecoder': the encoded data was not valid.
error.
Futhermore, i found that crash also happens after calling txBuilder.add_change_if_needed()
with undefined
error in catch(e)
@dractw fix on the way. But anyway if you got the error again, you probably didn't free all CSL objects. A CSL object doesn't free resources on GC. This package might help to prevent memory leaks https://www.npmjs.com/package/csl-runtime-gc
Calling
TransactionBuilder.min_fee()
few times causing asmjs library to crash until whole asmjs module is reloaded.Steps to reproduce:
Execution of code above few times (around 3-5) went OK, but suddenly it throws with
Failed to execute 'decode' on 'TextDecoder': the encoded data was not valid.
and after that none of asmjs module methods or instances are working until reaload whole module.Just for example:
Can be related: https://github.com/emscripten-core/emscripten/issues/18034