rust-webplatform / rust-todomvc

Rust implementation of TodoMVC + Emscripten
http://rust-webplatform.github.io/rust-todomvc/
242 stars 13 forks source link

I'm getting a lot of panics #3

Open PlasmaPower opened 8 years ago

PlasmaPower commented 8 years ago
- thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /buildslave/rust-buildbot/slave/nightly-dist-rustc-cross-rustbuild-linux/build/src/libcollections/vec.rs:1306printErr
- Run with `RUST_BACKTRACE=1` for a backtrace.
- Uncaught TypeError: Cannot set property 'innerHTML' of undefined
- Uncaught TypeError: Cannot read property 'value' of undefined

I'll look into using std::env::set_var to set RUST_BACKTRACE and hopefully get more detailed information. I think the last two errors are cascading from the first two.

PlasmaPower commented 8 years ago

Well that wasn't much help. I initially replicated the first two panics by switching to the all section, and that seems to hold true. Here's it with a (not helpful) backtrace: https://gist.github.com/PlasmaPower/e4f06d31fe31de6bdf049bbf6b1859e7

PlasmaPower commented 8 years ago

I should note that this is a debug build of course, but I doubt it matters.