Skip to content
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

RViz2 with Autoware configuration crashes on high DPI #3998

Open
3 tasks done
xmfcx opened this issue Nov 16, 2023 · 1 comment
Open
3 tasks done

RViz2 with Autoware configuration crashes on high DPI #3998

xmfcx opened this issue Nov 16, 2023 · 1 comment
Labels
priority:low Lower urgency, can be addressed later. status:help-wanted Assistance or contributors needed. type:bug Software flaws or errors. type:good-first-issue Suitable for newcomers. type:ui-ux User interface, user experience, graphical user interfaces.

Comments

@xmfcx
Copy link
Contributor

xmfcx commented Nov 16, 2023

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

If the screen dpi is normal, which is generally xrandr --dpi 96 Autoware RViz2 will function correctly.

But because of some plugins, when the xrandr --dpi 200 is applied, the RViz2 keeps crashing and restarting.

Also this issue won't happen if you just run the RViz2 with Autoware config with (Autoware shouldn't run, only the rviz2 must be alive):

ros2 run rviz2 rviz2 -d /home/mfc/projects/autoware/install/autoware_launch/share/autoware_launch/rviz/autoware.rviz -s /home/mfc/projects/autoware/install/autoware_launch/share/autoware_launch/rviz/image/autoware.png --ros-args -p use_sim_time:=true

But if you open the rest of the Autoware, it will crash with a [ros2run]: Segmentation fault.

Which plugin causes it, must be investigated.

Expected behavior

RViz2 runs correctly.

Actual behavior

RViz2 keeps crashing and restarting.

Steps to reproduce

xrandr --dpi 200

ros2 launch autoware_launch planning_simulator.launch.xml map_path:=$HOME/autoware_map/sample-map-planning vehicle_model:=sample_vehicle sensor_model:=sample_sensor_kit

Planning simulator tutorial detailed docs.

Versions

  • OS: Ubuntu 22.04
  • ROS 2: humble
  • Autoware: main

Possible causes

Some handwritten Autoware plugins cannot cope with varying dpi.

Additional context

Related Issues & Discussions:

@xmfcx xmfcx added type:bug Software flaws or errors. type:ui-ux User interface, user experience, graphical user interfaces. labels Nov 16, 2023
@xmfcx
Copy link
Contributor Author

xmfcx commented Nov 16, 2023

Debugging steps:

  • Turn off some Autoware plugins from RViz2 config utilizing a manual binary search pattern to find out which one is causing the issue.
  • Isolate the problematic plugin.
  • Look into its code and figure out why it happens.

@xmfcx xmfcx added status:help-wanted Assistance or contributors needed. priority:low Lower urgency, can be addressed later. type:good-first-issue Suitable for newcomers. labels Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low Lower urgency, can be addressed later. status:help-wanted Assistance or contributors needed. type:bug Software flaws or errors. type:good-first-issue Suitable for newcomers. type:ui-ux User interface, user experience, graphical user interfaces.
Projects
None yet
Development

No branches or pull requests

1 participant