Open garettbass opened 7 months ago
I get the same crash with these options as well:
WGPURequestAdapterOptions opts {
.powerPreference = WGPUPowerPreference_LowPower,
};
WGPURequestAdapterOptions opts {
.backendType = WGPUBackendType_D3D12,
};
WGPURequestAdapterOptions opts {
};
nope, this was related to #337
@garettbass, is this reproducible reliably with wgpu-native? If so, can you also try the wgpu rust examples?
~> # Install Rust toolchain - https://www.rust-lang.org/learn/get-started
~> git clone https://github.com/gfx-rs/wgpu.git
~> cd wgpu
~> cargo run --bin wgpu-examples hello_triangle
I am happy to investigate, but there may be a delay before I can undertake this due to other pressing issues. Thank you for the informative recommendation.
I reproduced this issue with
WGPURequestAdapterOptions opts {
.powerPreference = WGPUPowerPreference_LowPower,
};
Unless you pass WGPUPowerPreference_Undefined
, it's gonna crash if you pass this settings. I am calling wgpu_native
from C code. My error looks like this:
X Error of failed request: 136
Major opcode of failed request: 148 ()
Minor opcode of failed request: 1
Serial number of failed request: 310
Current serial number in output stream: 310
Changing this line in the triangle demo causes the demo to crash with exactly the same error, so easy to reproduce for me. I have a discrete Nvidia GPU + an integrated Intel one if that helps.
I have reproduced this crash using
v0.18.1.4
and an older version for which I only have the commit SHA22eaa9caeb4e856cb926ca54eefa9f783fc4c524
. The crash occurs when I callwgpuInstanceRequestAdapter()
with the following options:On this Razer Blade, I would expect
.powerPreference = WGPUPowerPreference_HighPerformance
to select the NVIDIA adapter, but the crash appears to be in the functionctlGetSet3DFeature()
, which seems to be an Intel Graphics API. If I explicitly select.backendType = WGPUBackendType_Vulkan
, there is no crash, and I do get an NVIDIA adapter.Below is a stack trace of the crash obtained using
StackWalk64()
: