Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualizer UI subtract with underflow #147

Open
janie177 opened this issue Dec 13, 2022 · 1 comment
Open

Visualizer UI subtract with underflow #147

janie177 opened this issue Dec 13, 2022 · 1 comment
Labels
bug Something isn't working rust Pull requests that update Rust code

Comments

@janie177
Copy link
Member

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
@janie177 janie177 added bug Something isn't working rust Pull requests that update Rust code labels Dec 13, 2022
@MarijnS95
Copy link
Member

if windows_to_close.iter().any(|j| i == (*j - windows_removed)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rust Pull requests that update Rust code
Projects
None yet
Development

No branches or pull requests

2 participants