Comments (4)
Superseded by #70
from learn-wgpu.
Currently looking into this. You may want to cross post on https://github.com/gfx-rs/wgpu-rs though, as I need to test on my girfriend's Mac (I don't have my own).
from learn-wgpu.
@sotrh great, thanks for looking. Before posting there, I think this might be a good opportunity to try out the vulkan compatibility layer as discussed in #68.
I will let you know if I come up with anything! π
from learn-wgpu.
I installed the vulkan sdk for Mac, then enabled the vulkan backend. I followed these instructions too
[dependencies.wgpu]
version = "0.5.0"
features = ["vulkan"]
and re-built the tutorial11-normals
example, and ended up with a different stack trace. But I am no closer to understanding how to fix it. Also not sure if I have the vulkan compatibility layers connected up or not.
VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation RUST_LOG=trace RUST_BACKTRACE=full cargo run --manifest-path code/intermediate/tutorial11-normals/Cargo.toml
...
Running `target/debug/tutorial11-normals`
thread 'main' panicked at 'internal error: entered unreachable code', /Users/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-native-0.5.0/src/device.rs:174:5
stack backtrace:
0: 0x1095e095f - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h8ad47541fb823094
1: 0x10960371e - core::fmt::write::he23e9bd6497f06c3
2: 0x1095ddfc7 - std::io::Write::write_fmt::h91528f1131e6004e
3: 0x1095e29ca - std::panicking::default_hook::{{closure}}::h1983f014a45a477e
4: 0x1095e270c - std::panicking::default_hook::hb0d9b93b5be8b120
5: 0x1095e2f98 - std::panicking::rust_panic_with_hook::h9f3faafe0983de5c
6: 0x10960f8a6 - std::panicking::begin_panic::h14956f4780ea73d1
7: 0x108d397af - wgpu_adapter_request_device
8: 0x108795c2c - wgpu::Adapter::request_device::{{closure}}::hc48069e4c684868e
9: 0x10877deb3 - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::h54d633a410fbdb9e
10: 0x1087a4e99 - tutorial11_normals::State::new::{{closure}}::h445b75ef846fdb46
11: 0x10877df9c - <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll::hdc74808b08d63c85
12: 0x1087b078f - futures_executor::local_pool::block_on::{{closure}}::hecafedba71a075a9
13: 0x1087b056e - futures_executor::local_pool::run_executor::{{closure}}::h743d447489b547af
14: 0x10878007a - std::thread::local::LocalKey<T>::try_with::hcc491004e995eb41
15: 0x10877ff63 - std::thread::local::LocalKey<T>::with::ha3d570a84b4ee1a1
16: 0x1087b0492 - futures_executor::local_pool::run_executor::hb1e2ad9f5e862aed
17: 0x1087b06fe - futures_executor::local_pool::block_on::h1bd5d038dbe24a79
18: 0x10879abb5 - tutorial11_normals::main::hecd1f32154c636d8
19: 0x1087af93e - std::rt::lang_start::{{closure}}::hb5680d054672a23a
20: 0x1095e33c9 - std::rt::lang_start_internal::h795af50241e12334
21: 0x1087af921 - std::rt::lang_start::h4a607b770687a0a7
22: 0x10879acd2 - main
#[no_mangle]
pub extern "C" fn wgpu_adapter_request_device(
adapter_id: id::AdapterId,
desc: Option<&DeviceDescriptor>,
) -> id::DeviceId {
let desc = &desc.cloned().unwrap_or_default();
gfx_select!(adapter_id => GLOBAL.adapter_request_device(adapter_id, desc, PhantomData)) // <- here
}
cc @sotrh
from learn-wgpu.
Related Issues (20)
- More about compute shader HOT 2
- Update to 0.17 HOT 1
- Why is the triangle color a rainbow ? HOT 5
- There are two tutorial thirteens HOT 2
- Alpha mode HOT 2
- wgpu and winit update tracker HOT 8
- [tutorial9-models] Texture coords are not flipped vertically HOT 4
- HDR demo not working when I have WebGPU flag enabled on chrome HOT 3
- Error: Cannot find module `demo.js` HOT 1
- Wrong view projection matrices HOT 4
- Panic when loading .obj without normals. HOT 3
- something wrong when run windowless HOT 1
- tutorial 11 explanation of srgb HOT 2
- Modification for the textures beginner tutorial. HOT 1
- Wgpu without a window for web
- Switch to glam from cgmath.
- Incorrect parameter for creation of WGPU Instance HOT 2
- EventLoop::new() return a Result(...) and need unwrap() to use.
- Windowing chapter wonβt work on some platforms HOT 4
- Running tutorial11-normals panics on macOS Sonoma after fresh checkout HOT 1
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 learn-wgpu.