Skip to content

Fix mac build, OpenCV4 compatibility, fix use-after-free causing memory corruption#177

Open
shenberg wants to merge 3 commits into
JakobEngel:masterfrom
shenberg:master
Open

Fix mac build, OpenCV4 compatibility, fix use-after-free causing memory corruption#177
shenberg wants to merge 3 commits into
JakobEngel:masterfrom
shenberg:master

Conversation

@shenberg
Copy link
Copy Markdown

I tested this out on Ubuntu 18.04 as well
OSX consistently crashes in the pangolin viewer because the connectivity graph is corrupted on frame publish. This, in turn, is because when marginalizing a frame, the EFFrame is freed and then used for updating the connectivity graph. This caused the connectivity graph to be accessed with invalid keys (target->frameID overwritten). However, std::map creates elements on access so invalid edges would be created instead of decrementing counts of existing edges.

@dawnos
Copy link
Copy Markdown

dawnos commented Nov 17, 2019

Thank a lot! It help!

@whubaichuan
Copy link
Copy Markdown

@shenberg @dawnos nogui=1: disable gui (good for performance) is a choice if you don't neet the GUI visularization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants