Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS mobile browsers in debug build - RuntimeError: Out of bounds memory access #54

Closed
anvlkv opened this issue Nov 22, 2023 · 1 comment

Comments

@anvlkv
Copy link

anvlkv commented Nov 22, 2023

Hi, I'm possibly running into another issue with animation hooks.

When testing on mobile my animation plays but crashes with the following error:

[Error] RuntimeError: Out of bounds memory access (near '...e__h17d0812b54a8d9b9(arg0, arg1, arg2);...')
	<?>.wasm-function[<core::hash::sip::Hasher<S> as core::hash::Hasher>::write::hd27f12575b9e2c86] (red-siren.js:221:131)
	<?>.wasm-function[<std::hash::random::DefaultHasher as core::hash::Hasher>::write_str::h1a220c3d28af20f8]
	<?>.wasm-function[<alloc::string::String as core::hash::Hash>::hash::hdea7d3b55e76c4b2]
	<?>.wasm-function[core::hash::impls::<impl core::hash::Hash for &T>::hash::h22fd84024d3544e2]
	<?>.wasm-function[core::hash::BuildHasher::hash_one::h7af2681160fbb34c]
	<?>.wasm-function[hashbrown::map::make_hasher::{{closure}}::hfc1fb74fb13eeaf1]
	<?>.wasm-function[hashbrown::raw::RawTable<T,A>::reserve_rehash::{{closure}}::hc4c6c53599b42dff]
	<?>.wasm-function[hashbrown::raw::RawTable<T,A>::reserve_rehash::h0afb8b405e7be60a]
	<?>.wasm-function[hashbrown::raw::RawTable<T,A>::reserve::h7a72b1e2de2bfa50]
	<?>.wasm-function[hashbrown::raw::RawTable<T,A>::find_or_find_insert_slot::h85ad248e2ab8f1c9]
	<?>.wasm-function[hashbrown::map::HashMap<K,V,S,A>::insert::h4cbe4a8b9c266f0a]
	<?>.wasm-function[std::collections::hash::map::HashMap<K,V,S>::insert::hd1c66d74c9548059]
	<?>.wasm-function[wasm_bindgen::cache::intern::intern_str::{{closure}}::h5a316852da7bcd4a]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::h23223815444d8749]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::he6bd9024741f5712]
	<?>.wasm-function[wasm_bindgen::cache::intern::intern_str::h4b1a3c4fe6f18d7d]
	<?>.wasm-function[wasm_bindgen::cache::intern::intern::hc6eb8e2671ca7f4c]
	<?>.wasm-function[leptos_dom::macro_helpers::into_attribute::attribute_expression::h90ba44eabcaeb8e6]
	<?>.wasm-function[leptos_dom::macro_helpers::into_attribute::attribute_helper::{{closure}}::h6ad0ed9723ebe516]
	<?>.wasm-function[<leptos_reactive::effect::EffectState<T,F> as leptos_reactive::effect::AnyComputation>::run::h8e94be9b5a3b9501]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update::{{closure}}::h6a09a305ec706bf8]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::with_observer::h0dc4713bef862b4b]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update::h169ebeaa46e8842e]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update_if_necessary::h30aff96a87d47348]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::run_effects::h877b640567663cf4]
	<?>.wasm-function[leptos_reactive::signal::<impl leptos_reactive::node::NodeId>::update::{{closure}}::h4de4265d7ee3ca63]
	<?>.wasm-function[leptos_reactive::runtime::with_runtime::{{closure}}::hc34f0cef5aaecccd]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::h12283b7f14cb9bdb]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::h6212145df11ca1b1]
	<?>.wasm-function[web_leptos::app::core::process_effect::h935a819c13960f1e]
	<?>.wasm-function[web_leptos::app::core::update::he802ec2a730de1a4]
	<?>.wasm-function[web_leptos::app::RedSirenRoutes::__RedSirenRoutes::{{closure}}::h6c82da443b523c8b]
	<?>.wasm-function[<leptos_reactive::effect::EffectState<T,F> as leptos_reactive::effect::AnyComputation>::run::hae44b3691dddd310]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update::{{closure}}::h6a09a305ec706bf8]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::with_observer::h0dc4713bef862b4b]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update::h169ebeaa46e8842e]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update_if_necessary::h30aff96a87d47348]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::run_effects::h877b640567663cf4]
	<?>.wasm-function[leptos_reactive::signal::<impl leptos_reactive::node::NodeId>::update::{{closure}}::hfeb5cb7a45107127]
	<?>.wasm-function[leptos_reactive::runtime::with_runtime::{{closure}}::h1fa51316342504cc]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::h7939abe82aa82eb0]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::h2a3ad6479c5e9daf]
	<?>.wasm-function[<leptos_reactive::signal::WriteSignal<T> as leptos_reactive::signal::SignalSet>::set::hb9522028bb3a1220]
	<?>.wasm-function[web_leptos::app::RedSirenRoutes::__RedSirenRoutes::{{closure}}::h5a506e59f6bf9259]
	<?>.wasm-function[<alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hcd4f71baf5e8a4e4]
	<?>.wasm-function[leptos_reactive::signal_wrappers_write::SignalSetter<T>::set::{{closure}}::h53e2ad030bb95467]
	<?>.wasm-function[leptos_reactive::stored_value::StoredValue<T>::try_with_value::{{closure}}::hff6899d6c14a20b3]
	<?>.wasm-function[leptos_reactive::runtime::with_runtime::{{closure}}::h449b6716776ff7c4]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::h405d85900a0a038a]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::h6c965a1db66da2f2]
	<?>.wasm-function[leptos_reactive::stored_value::StoredValue<T>::try_with_value::h424a6bcb2d555310]
	<?>.wasm-function[leptos_reactive::stored_value::StoredValue<T>::with_value::h466903ec859db30a]
	<?>.wasm-function[leptos_reactive::signal_wrappers_write::SignalSetter<T>::set::h3c8dc580bcd56dcc]
	<?>.wasm-function[web_leptos::app::intro::IntroComponent::__IntroComponent::{{closure}}::hf47b40f40372f3f9]
	<?>.wasm-function[<leptos_reactive::effect::EffectState<T,F> as leptos_reactive::effect::AnyComputation>::run::hb4cf3316437558ed]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update::{{closure}}::h6a09a305ec706bf8]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::with_observer::h0dc4713bef862b4b]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update::h169ebeaa46e8842e]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::update_if_necessary::h30aff96a87d47348]
	<?>.wasm-function[leptos_reactive::runtime::Runtime::run_effects::h877b640567663cf4]
	<?>.wasm-function[leptos_reactive::signal::<impl leptos_reactive::node::NodeId>::update::{{closure}}::h26b2187a0c71272d]
	<?>.wasm-function[leptos_reactive::runtime::with_runtime::{{closure}}::h190a72cc70ecd93b]
	<?>.wasm-function[std::thread::local::LocalKey<T>::try_with::ha50a99089044af68]
	<?>.wasm-function[std::thread::local::LocalKey<T>::with::h1bc079b744a4679b]
	<?>.wasm-function[<leptos_reactive::signal::WriteSignal<T> as leptos_reactive::signal::SignalSet>::set::hef157673d0468bb6]
	<?>.wasm-function[leptos_use::use_timestamp::use_timestamp_with_controls_and_options::{{closure}}::hdd14e0253f73a5a9]
	<?>.wasm-function[leptos_use::use_timestamp::use_timestamp_with_controls_and_options::{{closure}}::hdb0543a2b31a211c]
	<?>.wasm-function[leptos_use::use_timestamp::use_timestamp_with_controls_and_options::{{closure}}::h64387bcc4527fe86]
	<?>.wasm-function[leptos_use::use_raf_fn::use_raf_fn_with_options::{{closure}}::h79a2afedc8e0e155]
	<?>.wasm-function[<alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h202f74ed834a88c3]
	<?>.wasm-function[leptos_use::use_raf_fn::use_raf_fn_with_options::{{closure}}::{{closure}}::h6a968829ddd5c610]
	<?>.wasm-function[core::ops::function::FnOnce::call_once::h9696a2220e728cf0]
	<?>.wasm-function[<T as wasm_bindgen::closure::WasmClosureFnOnce<A,R>>::into_js_function::{{closure}}::h765a049365f6e03c]
	<?>.wasm-function[<dyn core::ops::function::FnMut<(A,)>+Output = R as wasm_bindgen::closure::WasmClosure>::describe::invoke::h17d0812b54a8d9b9]
	wasm-stub
	__wbg_adapter_41 (red-siren.js:221:131)
	real (red-siren.js:202)

This doesn't happen on android device (tested in emulator), nor in the release build

You can see my usage here

https://github.com/anvlkv/red-siren/blob/4fb9d1ae26c0c3c9af5077b540c70a8f34ededcb/web-leptos/src/app/intro.rs#L9C1-L31C8

@maccesch
Copy link
Contributor

Hm, while this stack trace certainly starts in leptos-use the majority of it seems to be other stuff. @gbj Does this mean anything to you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants