linebender / linebender/vello

Intermittent test failure on Nvidia + Vulkan

Open
#690 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
4.3k
Forks
300
Avg merge
2d 13h
Merged PRs (30d)
61

Description

- Running `cargo nextest run` results in intermittent failure on tests from the `compare_gpu_cpu` or `snapshot` suite when using Vulkan as backend.
- Changing backend to DX12 seemed to fix issue, but test time increased from an average of ~30s to ~60s.
- All tests from WGPU passed.
- Failure observed on both Win10, `exit code: 0xc0000005, STATUS_ACCESS_VIOLATION`, and Ubuntu 22.04 `signal: 11, SIGSEGV: invalid memory reference`
- `AdapaterInfo` on Win10:
```
AdapterInfo { name: "NVIDIA GeForce RTX 2080 SUPER", vendor: 4318, device: 7809, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "560.94", backend: Vulkan }
AdapterInfo { name: "NVIDIA GeForce RTX 2080 SUPER", vendor: 4318, device: 7809, device_type: DiscreteGpu, driver: "32.0.15.6094", driver_info: "", backend: Dx12 }
```
- `AdapterInfo` on Ubuntu 22.04:
```
AdapterInfo { name: "NVIDIA GeForce RTX 2080 SUPER", vendor: 4318, device: 7809, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "555.42.02", backend: Vulkan }
```

- Failures were not observed on Win10 with IntelHD620:
```
AdapterInfo { name: "Intel(R) HD Graphics 620", vendor: 32902, device: 22806, device_type: IntegratedGpu, driver: "Intel Corporation", driver_info: "Intel driver", backend: Vulkan }
```

Edit:
~~Most likely it has something to do with these warnings:
WARNING: [Loader Message] Code 0 : loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but /usr/share/vulkan/implicit_layer.d/nvidia_layers.json is reporting version 1
WARNING: [Loader Message] Code 0 : terminator_CreateInstance: Received return code -3 from call to vkCreateInstance in ICD /usr/lib/x86_64-linux-gnu/libvulkan_virtio.so. Skipping this driver.
which have been linked to issues in a variety of other projects.~~

See [wgpu#5270](https://github.com/gfx-rs/wgpu/issues/5270)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running `cargo nextest run` with the Vulkan backend and focus on the `compare_gpu_cpu` and `snapshot` suites, comparing results with DX12 and the WGPU tests. Review the linked wgpu#5270 issue and the reported NVIDIA adapter and driver details; done means the intermittent Vulkan crash is isolated and the affected tests run reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
computer-graphics, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.