-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add check while trying to remove uninserted Ids #782
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .monocodus
config not found in your repo. Default config is used.
Check config documentation here
@kvark r? I'll try to investigate the segfault. |
gdb output for the segfault-
Not sure if this is related to #776 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
bors r+
Connections
Link to the issues addressed by this PR, or dependent PRs in other repositories
An attempt to fix #781
regression from #776
Description
Describe what problem this is solving, and how it's solved.
When we used
VecMap
, it simply returnedNone
for even out of bounds access to the map (We depended on it returningNone
). After #776 , we get a panic. So adding a simple index check before accessing it fixes this issue.Testing
Explain how this change is tested.
Tested on wgpu-rs examples with the changes in gfx-rs/wgpu-rs#430. All examples run fine except the
cube
which segfaults.