swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
395 stars 152 forks source link

[Galactic] Crashes on start #751

Closed sageig closed 2 years ago

sageig commented 2 years ago

Set up

I built galactic-devel from source. Running inside 20.04 docker container.

Expected Result

Perform ros2 run mapviz mapviz and it open up without issue.

Actual Result

mapviz crashes and is unable to generate the .mapviz_config file:

[INFO] [1641567574.990512224] [mapviz]: View scale: 1.000000 meters/pixel
[INFO] [1641567575.003218266] [mapviz_1641567574898326938]: Subscribing to /local_xy_origin
[ERROR] [1641567575.003581889] [swri_transform_util::Transformer]: UtmTransformer::Initialize: No LocalXyWgs84Util has been set!
[ERROR] [1641567575.003598417] [swri_transform_util::Transformer]: Wgs84Transformer::Initialize: local_yx_util was unset!
[INFO] [1641567575.004448050] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/attitude_indicator
[INFO] [1641567575.004474394] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/coordinate_picker
[INFO] [1641567575.004488804] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/disparity
[INFO] [1641567575.004499629] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/draw_polygon
[INFO] [1641567575.004509996] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/float
[INFO] [1641567575.004519964] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/gps
[INFO] [1641567575.004533975] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/grid
[INFO] [1641567575.004549023] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/image
[INFO] [1641567575.004559641] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/laserscan
[INFO] [1641567575.004573937] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/marker
[INFO] [1641567575.004588712] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/measuring
[INFO] [1641567575.004604119] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/multires_image
[INFO] [1641567575.004614823] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/navsat
[INFO] [1641567575.004628911] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/occupancy_grid
[INFO] [1641567575.004644411] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/odometry
[INFO] [1641567575.004658409] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/path
[INFO] [1641567575.004676201] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/plan_route
[INFO] [1641567575.004694408] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/point_click_publisher
[INFO] [1641567575.004714269] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/pointcloud2
[INFO] [1641567575.004728080] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/pose
[INFO] [1641567575.004749785] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/robot_image
[INFO] [1641567575.004763731] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/route
[INFO] [1641567575.004784185] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/string
[INFO] [1641567575.004799647] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/textured_marker
[INFO] [1641567575.004809799] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/tf_frame
[INFO] [1641567575.004823936] [mapviz_1641567574898326938]: Found mapviz plugin: mapviz_plugins/tile_map
[INFO] [1641567575.005096307] [mapviz_1641567574898326938]: Loading configuration from /home/sageig/.mapviz_config
[ERROR] [1641567575.005294574] [mapviz_1641567574898326938]: Unhandled std::exception in Qt event loop: bad file
DrawingProcess commented 1 year ago

I got a same issue. How can I fix it?

danthony06 commented 1 year ago

I'm not sure. It appears that @sageig had it go away or somehow resolved it, but it's not clear what the problem was or what the resolution was.

DrawingProcess commented 1 year ago

I checked my log messages and I see the following problem, so I think it is caused by not installing a graphics card.

1689188997.5140915 [mapviz-1] libGL error: No matching fbConfigs or visuals found 1689188997.5182383 [mapviz-1] libGL error: failed to load driver: swrast