DioxusLabs / DioxusLabs/dioxus

The `wgpu` example doesn't run on asahi

Open
#3,498 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

```
cargo run --example wgpu --features="desktop gpu"
```
Fails on line 55
https://github.com/DioxusLabs/dioxus/blob/main/examples/wgpu.rs#L55 with
```
thread 'main' panicked at examples/wgpu.rs:55:26:
called `Option::unwrap()` on a `None` value
```

will fail.

**Steps To Reproduce**

```
cargo run --example wgpu --features="desktop gpu"
```

**Expected behavior**

The example runs, or indicates more clearly why it doesn't (unsupported platform or device).
I'm not sure if this is supposed to happen (is linux support there on wayland ?)

**Environment:**
- Dioxus version: master, 04282ef8897902fc88f99204174eb2ff03a88921
- Rust version: rustc 1.83.0 (90b35a623 2024-11-26)
- OS info: Fedora 41 asahi remix
- App platform: desktop
- device info : Mac mini M2

**Questionnaire**

I'm interested in fixing this myself but don't know where to start (at the very least I'll be ready to try to debug)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.