-
Notifications
You must be signed in to change notification settings - Fork 212
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
RViz crash with high-resolution map #424
Comments
It seems to be related to the total image size, not the maximum dimension, as cropping either the width or height to 400px prevents the crash. |
This is a non-obvious duplicate of #401. (previously linked to #394) The root cause is a bug such that any swatch can only have at most 255*255 pixels and there can only be eight swatches in total. If you have a source build available, you can try my fix below to check whether that solves everything for you! |
@Martin-Idel awesome. I’m glad you understand this issue! Will try the PR. |
Upon further reflection and research, I think (1) this has nothing to do with #394. (2) this is due to an errant ROS2: A swatch should be able to be more than 255 bits wide and high, but these dimensions are incorrectly truncated to a Edit: d'oh. It seems you're one step ahead of me. I only read PR #394, not PR #425. |
That's also partly my fault - I first thought it'd be exactly the same issue and more swatches will indeed solve the problem. But as you say I then thought that a swatch should be able to hold more data and found the root cause. EDIT: Argh, now I see, my original comment contained a link to #394 while it SHOULD have contained a link to #401 - I have no idea how that happened. Sorry for that confusion! |
RViz seems to have trouble rendering high-pixel count maps, causing a very reproducible crash.
Publishing the map in
map_lores.zip
(533x423 px, 230.3 kB) and viewing it in rviz2 works fine.Publishing the map in
map_hires.zip
(861x661 px, 569.2 kB) and trying to view it in rviz2 causes a hard crash with the following error info:This is on Ubuntu 18 with ROS2 built from master branch.
map_hires.zip
map_lores.zip
The text was updated successfully, but these errors were encountered: