ria8651 / octree-tracer Goto Github PK
View Code? Open in Web Editor NEWAn octree raytracer focused on huge worlds
An octree raytracer focused on huge worlds
error[E0793]: reference to packed field is unaligned
--> C:\Users\stormy\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.6\src\ntexapi.rs:2785:52
|
2785 | *tick_count.QuadPart_mut() = read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
error[E0793]: reference to packed field is unaligned
--> C:\Users\stormy\.cargo\registry\src\index.crates.io-6f17d22bba15001f\ntapi-0.3.6\src\ntexapi.rs:2809:25
|
2809 | ((read_volatile(&(*USER_SHARED_DATA).u.TickCountQuad)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: packed structs are only aligned by one byte, and many modern architectures penalize unaligned field accesses
= note: creating a misaligned reference is undefined behavior (even if that reference is never dereferenced)
= help: copy the field contents to a local variable, or replace the reference with a raw pointer and use `read_unaligned`/`write_unaligned` (loads and stores via `*p` must be properly aligned even when using raw pointers)
this error is resolved when upgrading the tokio dependency from 1.17
to 1.28.0
in Cargo.toml
cargo run --release
crashes with the following error
note: this is done with dependency change from #2
$ cargo run --release
Finished release [optimized + debuginfo] target(s) in 0.28s
warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
Running `target\release\octree-tracer.exe`
octree-tracer v0.1.0
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
Staring to mip...
Cataloged 0 million nodes
Mip success!
thread 'main' panicked at C:\Users\stormy\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.12.0\src\backend\direct.rs:214:9:
Error in Queue::submit: parent device is lost
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\release\octree-tracer.exe` (exit code: 101)
os: windows 10 home
device: dell laptop with integrated and GTX 960m
graphics drivers are up to date
wgpu runs on other projects
Hello!
As stated above, a simple git clone
and cargo run --release
leads to the error:
thread 'main' panicked at src/app.rs:32:61:
calledResult::unwrap()
on anErr
value: "File doesn't exist!"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.