Add check while trying to remove uninserted Ids#782
Merged
bors[bot] merged 1 commit intogfx-rs:masterfrom Jul 11, 2020
Merged
Conversation
Contributor
There was a problem hiding this comment.
The .monocodus config not found in your repo. Default config is used.
Check config documentation here
Contributor
There was a problem hiding this comment.
The .monocodus config not found in your repo. Default config is used.
Check config documentation here
Contributor
Author
|
@kvark r? I'll try to investigate the segfault. |
Contributor
Author
|
gdb output for the segfault- Not sure if this is related to #776 |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 returnedNonefor 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
cubewhich segfaults.