Emil Ernerfeldt
Emil Ernerfeldt
I did catch this OOM error: ``` [Error] RuntimeError: Unreachable code should not be executed (evaluating 'wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7151addea9e051c0(retptr, arg0, arg1)') .wasm-function[std::alloc::rust_oom::hc4a15e24f24fdc8f] (re_viewer.js:238:137) .wasm-function[__rust_alloc_error_handler] .wasm-function[alloc::alloc::handle_alloc_error::rt_error::h2c73e9f1de42a5a3] .wasm-function[alloc::alloc::handle_alloc_error::hd73a554e7696031d] .wasm-function[jpeg_decoder::worker::compute_image_parallel::h139c8b75d60c14d3] .wasm-function[jpeg_decoder::decoder::compute_image::h77938edab6ca94eb] .wasm-function[jpeg_decoder::decoder::Decoder::decode_planes::hdeda1a493788ebce] .wasm-function[jpeg_decoder::worker::WorkerScope::get_or_init_worker::he31a9589035074b3] .wasm-function[jpeg_decoder::decoder::Decoder::decode_internal::h104e2639f2857781] .wasm-function[::read_image::h030481f710262c69]...
Figure out if a smaller demo works
I can no longer get the OOM backtrace, just a hard crash with no info in the dev console. It's usually fine if I pause the playback just as it...
Build the web viewer in release mode with debug symbols, then look at the in-browser profiler for clues
`cargo clean && cargo build --timings -p rerun --no-default-features` produces this:  What the hell is `egui` doing there? (fix: https://github.com/rerun-io/rerun/pull/5099) And wasm-bindgen for a native build makes no sense...
One important crate to focus on is `re_sdk`. `cargo tree -p re_sdk` reveals some deps that should be removed: * `serde` * `env_logger` * `backtrace` * `fixed` * `num-derive` *...
Ultimately we should architecture the viewer in a way that it is impossible to use the store without going through the cache
I created a small proof-of-concept branch experimenting with this a while back. It is not mergable, but may be inspirational for when we decide to work on this for real:...
This is the current level of support in `egui_plot`: https://docs.rs/egui_plot/latest/egui_plot/enum.LineStyle.html