bevyengine / bevyengine/bevy

Example is not working on MacBook Pro 2023 M2 Max MacOS Sonoma

Open
#8,950 5 comments 3 reactions 0 assignees View on GitHub
I-Crash O-MacOS S-Blocked
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

`git checkout latest`

## Relevant system information

```
cargo --version
cargo 1.70.0 (ec8a8a0ca 2023-04-25)
```

```
SystemInfo { os: "MacOS 14.0 ", kernel: "23.0.0", cpu: "Apple M2 Max", core_count: "12", memory: "64.0 GiB" }
```

```
AdapterInfo { name: "Apple M2 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
```

Display settings (using built-in Retina):
![CleanShot 2023-06-25 at 11 35 51@2x](https://github.com/bevyengine/bevy/assets/49658988/aae699a1-5cc4-44a3-9459-f6eaf7726656)

## What you did

Tried [setup guide from bevy web-site](https://bevyengine.org/learn/book/getting-started/), it fails to on `cargo run --example breakout`

## What went wrong

It should run an example, but it throws an error, looks like it tries to create too big texture:
```
cargo run --example breakout
Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running `target/debug/examples/breakout`
2023-06-25T08:22:10.737642Z INFO bevy_render::renderer: AdapterInfo { name: "Apple M2 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2023-06-25T08:22:11.003041Z INFO bevy_winit::system: Creating new window "Bevy App" (0v0)
2023-06-25T08:22:11.025435Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "MacOS 14.0 ", kernel: "23.0.0", cpu: "Apple M2 Max", core_count: "12", memory: "64.0 GiB" }
2023-06-25 11:22:11.125 breakout[12073:99431] CAMetalLayer ignoring invalid setDrawableSize width=4294967295.000000 height=4294967295.000000
2023-06-25T08:22:11.125819Z ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default
thread 'Compute Task Pool (5)' panicked at 'wgpu error: Validation Error

Caused by:
In Device::create_texture
note: label = `main_texture_a`
Dimension X value 4294967295 exceeds the limit of 16384

', /Users/Damer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.15.1/src/backend/direct.rs:3024:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'Compute Task Pool (5)' panicked at 'A system has panicked so the executor cannot continue.: RecvError', crates/bevy_ecs/src/schedule/executor/multi_threaded.rs:194:60
thread '' panicked at 'called `Option::unwrap()` on a `None` value', /Users/Damer/Downloads/bevy/crates/bevy_tasks/src/task_pool.rs:376:49
thread 'Compute Task Pool (0)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', crates/bevy_render/src/pipelined_rendering.rs:136:45
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/Damer/Downloads/bevy/crates/bevy_tasks/src/task_pool.rs:376:49
```

## Additional info
Related issue - https://github.com/bevyengine/bevy/issues/4869

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.