Traverse-Research / Traverse-Research/gpu-allocator

Visualizer UI subtract with underflow

Open
#147 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug rust
Dominant language
Rust
Stars
497
Forks
82
Avg merge
18d 17h
Merged PRs (30d)
1

Description

When using the visualizer's UI to look at multiple memory blocks, a condition can be met where closing one of the windows causes the program to panic.

Error message:

'attempt to subtract with overflow'

The line where it panics:

gpu-allocator-0.21.0\src\vulkan\visualizer.rs:256

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 at gpu-allocator-0.21.0/src/vulkan/visualizer.rs:256 and reproduce the panic by viewing multiple memory blocks in the visualizer UI, then closing one window. Trace the window and memory-block state involved in the subtraction. Done means closing windows in that scenario no longer panics.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.