-
-
Notifications
You must be signed in to change notification settings - Fork 485
Closed
Description
Common issues
I'm getting an intermittent Unhandled Promise Rejection crash with my code compiled using wasm-bindgen, via wasm-pack using the web target, and the --dev profile. This code is running in the webkit2gtk 2.28.4-1 browser on Archlinux.
I'm using rand version 0.7.3 and the wasm-bindgen feature enabled.
The line of code that is triggering this error is:
rand::thread_rng().gen()The backtrace for the error within rand:
[Error] Unhandled Promise Rejection: Error: Out of bounds memory access (near '...e__h0d03c6547e5e0185(arg0, arg1, addHeap...')
<?>.wasm-function[<T as core::convert::Into<U>>::into::h8e2dc1dc8cfddf13] (data:text/html,%3C…%3E:271:135)
<?>.wasm-function[ppv_lite86::generic::dmap2::h9a1309b08a243710]
<?>.wasm-function[rand_chacha::guts::refill_wide::ha379d3985d906d93]
<?>.wasm-function[<rand_chacha::chacha::ChaCha20Core as rand_core::block::BlockRngCore>::generate::h228564273ae9a3c9]
<?>.wasm-function[<rand::rngs::adapter::reseeding::ReseedingCore<R,Rsdr> as rand_core::block::BlockRngCore>::generate::h6885e5a5fa188921]
<?>.wasm-function[rand_core::block::BlockRng<R>::generate_and_set::h6505ddccc6a5f801]
<?>.wasm-function[<rand_core::block::BlockRng<R> as rand_core::RngCore>::next_u32::h8b977afb2b63748d]
<?>.wasm-function[rand::distributions::integer::<impl rand::distributions::Distribution<u32> for rand::distributions::Standard>::sample::hc3ae3caece8847d4]
<?>.wasm-function[rand::Rng::gen::hb1a7fdc6a5707799]
Metadata
Metadata
Assignees
Labels
No labels