Ribir
Ribir copied to clipboard
Ribir panics when opening any program on macOS
Problem Ribir panics when opening any Ribir program on macOS.
Error message:
thread 'main' panicked at /Users/****/.cargo/registry/src/index-crates.io-6f17d22bba15001f/wgpu-0.20.0/src/backend/wgpu_core.rs:2996:5:
wgpu error: Validation Error
Caused by:
In Device::create_render_pipeline
note: label = `Color triangles pipeline`
Internal error in ShaderStages(FRAGMENT) shader: Metal: Compilation failed:
program_source:144:3: error: size of constant buffer cannot exceed 65536
, constant type3& mask_layers [[buffer(0)]]
^
Steps To Reproduce Steps to reproduce the behavior:
- Create a new Cargo project on macOS and add Ribir as a dependency
- Copy in the code below (however any code works fine)
use ribir::prelude::*;
fn main() {
App::run(fn_widget! {
@Text { text: "Hello, world!" }
});
}
- Run using
cargo run
.
Expected behavior The application to compile and open regularly without any issues.
Screenshots If applicable, add screenshots to help explain your problem.
Environment:
- Ribir version:
0.3.0-alpha.5
- Rust version:
nightly
- OS, if relevant: macOS 10.15 Catalina