Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sros2 tests on Windows Debug. (#317)
From what I can tell, it looks like lxml has a bug where it doesn't properly track references to objects via the find() method. This manifests on Windows debug as a crash *after* we have stopped using the object, but I believe that by that point the underlying memory has already been freed. Windows Debug in particular is sensitive to this. Fix it by doing a deepcopy of the object returned from the find(). This code isn't performance sensitive, so it shouldn't be a big deal to do it here, and it fixes the bug in my testing. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information