Hi
So, First I git cloned the project,checked the dependencies and ran it with the command cargo run --release -- -c
.
Here is the output,
sol@solmate:~/Documents/projects/rustcraft$ cargo run --release -- -c
Finished release [optimized] target(s) in 6.51s
Running `target/release/rustcraft -c`
May 07 10:15:34.941 INFO Generating World...
wgpu error: Validation Error
Caused by:
In Device::create_buffer
note: label = `Vertex Buffer`
not enough memory left
thread 'main' panicked at 'Handling wgpu errors as fatal by default', /home/sol/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.7.1/src/backend/direct.rs:1896:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Segmentation fault (core dumped)
Which traces back to ,
fn default_error_handler(err: crate::Error) {
eprintln!("wgpu error: {}\n", err);
panic!("Handling wgpu errors as fatal by default");
}
and goes back to ,
pub enum Error {
/// Out of memory error
OutOfMemoryError {
///
source: Box<dyn error::Error + Send + Sync + 'static>,
},
...
I am a Rust beginner ,and there is one thing I am not able to understand here is that if this program is panicking and is going through the usual process of unwinding then why is it seg faulting here ?