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

Error when trying to build viewer example #14

Closed
bvssvni opened this issue Apr 2, 2015 · 6 comments

Comments

@bvssvni
Copy link

commented Apr 2, 2015

rustc 1.0.0-nightly (d754722a0 2015-03-31) (built 2015-03-31)

$ cargo run --example viewer
    Updating git repository `https://github.com/bjz/cgmath-rs`
    Updating git repository `https://github.com/kvark/gfx_pipeline`
    Updating git repository `https://github.com/PistonDevelopers/gfx-debug-draw`
no matching package named `cgmath` found (required by `claymore-scene`)
location searched: https://github.com/bjz/cgmath-rs#c8db595e
version required: = 0.1.1
versions found: 0.1.2
@kvark

This comment has been minimized.

Copy link
Owner

commented Apr 2, 2015

Weird. Thanks for the report!

@kvark

This comment has been minimized.

Copy link
Owner

commented Apr 9, 2015

@bvssvni could you try again?

@bvssvni

This comment has been minimized.

Copy link
Author

commented Apr 10, 2015

I'm getting a new error message:

rustc 1.0.0-nightly (d9146bf8b 2015-04-07) (built 2015-04-07)

reating the window...
Initializing the graphics...
thread '<main>' panicked at 'index out of bounds: the len is 0 but the index is 0', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcollections/vec.rs:1347
stack backtrace:
   1:        0x10b2e1517 - sys::backtrace::write::h34d2a531b866f569DJC
   2:        0x10b2e54ac - panicking::on_panic::h25a704687865f7d0PxI
   3:        0x10b2d3dfe - rt::unwind::begin_unwind_inner::had28b4096229228fqfI
   4:        0x10b2d42c6 - rt::unwind::begin_unwind_fmt::h6c223217ba1823874dI
   5:        0x10b2e4d6d - rust_begin_unwind
   6:        0x10b305ac5 - panicking::panic_fmt::h8f9545e02619b9e55jC
   7:        0x10b307868 - panicking::panic_bounds_check::h031847e5ccef29ccbjC
   8:        0x10b0f9366 - vec::Vec<T>.Index<usize>::index::h9681540786737762984
   9:        0x10af5bcdc - main::h796e0afe35719556ufa
  10:        0x10b2e6758 - rust_try_inner
  11:        0x10b2e6745 - rust_try
  12:        0x10b2e5e8a - rt::lang_start::h2c4ea1cbe019bddcisI
  13:        0x10af5cb5e - main
An unknown error occurred
@kvark

This comment has been minimized.

Copy link
Owner

commented Apr 10, 2015

Haha, right. So the viewer treats every parameter as a path to a scene, and loads all of them into the same space. Then, when it tries to render it, it takes the first camera, which is obviously not existent in your case. I'll patch it up ;)

@kvark

This comment has been minimized.

Copy link
Owner

commented Apr 10, 2015

I was thinking about making releases with data included, but then - what is the point if the code would stop compile quickly due to Rust changes? I'm using the nightly, so I need to think accordingly.

@kvark

This comment has been minimized.

Copy link
Owner

commented Apr 28, 2015

Considering this closed now. The proper error was added, and the data is distributed with releases.

@kvark kvark closed this Apr 28, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.