-
Notifications
You must be signed in to change notification settings - Fork 0
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
Solves crash on RayQuery #433
Conversation
the render processing from the UI processing.
I've also posted the |
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.
LGTM. Just two comments.
I will try this locally asap to confirm the same behavior as before.
/// \brief Get the maliput::api::RoadPositionResult associated with a point in | ||
/// world space if exists. | ||
/// \param[in] _position World position of point that intersected with a plane | ||
/// \return maliput::api::RoadPositionResult associated with that position. |
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.
nit: Missing throw case.
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.
Solved in f07e3cd
if (renderMeshesOption.executeLabelRendering) { | ||
RenderLabels(model->Labels()); | ||
renderMeshesOption.executeLabelRendering = false; | ||
} |
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.
Sorry, I can't figure out why this should be removed.
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.
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.
Solved in 1116d64
Thanks!
if (renderMeshesOption.executeLabelRendering) { | ||
RenderLabels(model->Labels()); | ||
renderMeshesOption.executeLabelRendering = false; | ||
} |
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.
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.
All comments were addressed. PTAL.
/// \brief Get the maliput::api::RoadPositionResult associated with a point in | ||
/// world space if exists. | ||
/// \param[in] _position World position of point that intersected with a plane | ||
/// \return maliput::api::RoadPositionResult associated with that position. |
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.
Solved in f07e3cd
if (renderMeshesOption.executeLabelRendering) { | ||
RenderLabels(model->Labels()); | ||
renderMeshesOption.executeLabelRendering = false; | ||
} |
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.
Solved in 1116d64
Thanks!
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.
LGTM
Connected to #405
Solves the crash because of using the RayQuery not in the Render thread but exposes a new error in the plugin. The following backtrace shows that it happens in the ignition::gui::Plugin instead of MaliputViewerPlugin.
This PR lacks of the correction in elevation for the double asphalt mesh. Will be fixed before marking this PR as ready for review.
Backtrace of the error:
Steps to reproduce:
maliput_viewer2.sh
It can also be reproduced with yaml files.