Comments (5)
What cargo command do you use that fails? I tried both cargo build -p vello
and cargo build -p scenes
on my macOS 10.15 with Rust 1.76 and it succeeded. The build also succeeds in the GitHub CI with both macOS 12 and macOS 14 on M1.
Have you tried cargo clean
?
from vello.
Same specs, M1, 1.76 stable. I did a cargo clean. It's hard for me to figure out.
Vello runs, it's just the with_winit example that didn't. Not sure if that's CI tested. It's also new behavior... not sure when exactly or what caused it.
Either way, I don't think there's a good reason not to switch. :)
from vello.
Vello runs, it's just the with_winit example that didn't.
Does with_winit
still not run? What is the cargo command that fails?
from vello.
It happens when compiling console
, which is a dependant of dialoguer
. The error seems unhelpful...
16:27 simbleau on main ~ cargo run -p with_winit
Updating crates.io index
Downloaded skrifa v0.16.0
Downloaded read-fonts v0.16.0
Downloaded 2 crates (385.7 KB) in 1.01s
Blocking waiting for file lock on package cache
Compiling bitflags v2.4.2
Compiling libc v0.2.153
Compiling font-types v0.4.3
Compiling core-graphics-types v0.1.3
... lots of crates
Compiling rand_chacha v0.3.1
Compiling fsevent-sys v4.1.0
Compiling console v0.15.8 <--- This right here officer
Compiling filetime v0.2.23
error[E0195]: lifetime parameters or bounds on type `Target` do not match the trait declaration
--> /Users/simbleau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.8/src/utils.rs:25:1
|
25 | / lazy_static! {
26 | | static ref STDOUT_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stdout()));
27 | | static ref STDERR_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stderr()));
28 | | }
| |_^ lifetimes do not match type in trait
|
= note: this error originates in the macro `__lazy_static_internal` which comes from the expansion of the macro `lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info)
Compiling rand v0.8.5
error[E0599]: no method named `load` found for struct `STDOUT_COLORS` in the current scope
--> /Users/simbleau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.8/src/utils.rs:39:19
|
25 | / lazy_static! {
26 | | static ref STDOUT_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stdout()));
27 | | static ref STDERR_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stderr()));
28 | | }
| |_- method `load` not found for this struct
...
39 | STDOUT_COLORS.load(Ordering::Relaxed)
| ^^^^ method not found in `STDOUT_COLORS`
error[E0599]: no method named `store` found for struct `STDOUT_COLORS` in the current scope
--> /Users/simbleau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.8/src/utils.rs:48:19
|
25 | / lazy_static! {
26 | | static ref STDOUT_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stdout()));
27 | | static ref STDERR_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stderr()));
28 | | }
| |_- method `store` not found for this struct
...
48 | STDOUT_COLORS.store(val, Ordering::Relaxed)
| ^^^^^ method not found in `STDOUT_COLORS`
error[E0599]: no method named `load` found for struct `STDERR_COLORS` in the current scope
--> /Users/simbleau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.8/src/utils.rs:60:19
|
25 | / lazy_static! {
26 | | static ref STDOUT_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stdout()));
27 | | static ref STDERR_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stderr()));
28 | | }
| |_- method `load` not found for this struct
...
60 | STDERR_COLORS.load(Ordering::Relaxed)
| ^^^^ method not found in `STDERR_COLORS`
error[E0599]: no method named `store` found for struct `STDERR_COLORS` in the current scope
--> /Users/simbleau/.cargo/registry/src/index.crates.io-6f17d22bba15001f/console-0.15.8/src/utils.rs:69:19
|
25 | / lazy_static! {
26 | | static ref STDOUT_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stdout()));
27 | | static ref STDERR_COLORS: AtomicBool = AtomicBool::new(default_colors_enabled(&Term::stderr()));
28 | | }
| |_- method `store` not found for this struct
...
69 | STDERR_COLORS.store(val, Ordering::Relaxed)
| ^^^^^ method not found in `STDERR_COLORS`
Some errors have detailed explanations: E0195, E0599.
For more information about an error, try `rustc --explain E0195`.
error: could not compile `console` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
from vello.
Very curious indeed.
I have reasonable confidence that this is not a general problem with the source code, as evidenced by it compiling fine on a bunch of macOS systems.
Smells more like a Rust toolchain bug, maybe somehow related to the new parallelism work, in which case the manifestation may depend on a certain number of threads being used.
Sure we can "fix" it by merging #512 but we can easily end up depending on console
again via some dependency in the future. Even worse if this is as more generic toolchain bug that can start causing issues elsewhere. This time it resulted in a compilation error, but other times it might just result in buggy machine instructions that can silently corrupt data at runtime. Not great, but also not easy to track down. Luckily there are a bunch of other people seeing the same issue, so hopefully someone will put in the effort to figure it out.
from vello.
Related Issues (20)
- Long startup time under DX12 HOT 2
- [Question] was rust-gpu evaluated? HOT 2
- rustfmt settings (linebender-wide?) HOT 2
- Introduce a changelog HOT 1
- Appending an `Encoding` to a `Scene` HOT 5
- Simple example doesn't work on web. HOT 2
- Trouble drawing emojis HOT 8
- Improving bump estimation accuracy and performance
- API Issue for `Renderer`
- Full system hang on Apple M1 8GB HOT 9
- Rendering to a surface and transparency HOT 2
- Minor issue: example 'simple' - when compiled standalone - the render context needs to be unwrapped HOT 2
- Winit example slow on wsl HOT 4
- Lots of wgpu error messages HOT 5
- `vello_shaders` causes recompilation HOT 1
- How to figure out the correspondence of window size and image size HOT 4
- wgpu: Use `write_buffer_with` rather than `write_buffer` HOT 2
- Update ARCHITECTURE.md HOT 2
- Issue with flattening of a stroked cubic around a near-cusp
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vello.