|
1 | 1 | Reporting an issue — how-to |
2 | 2 | =========================== |
3 | 3 |
|
| 4 | +Issue reports help the ROS community identify bugs, suggest enhancements, improve documentation, and resolve package-specific problems. |
| 5 | +This article explains how to check whether an issue has already been reported and what information to provide in a new issue. |
| 6 | +With this information, you can provide clear, complete issue details in the right ROS repository. |
| 7 | + |
| 8 | +**Area: community | Content-type: how-to | Experience: beginner, intermediate, expert** |
| 9 | + |
| 10 | +.. contents:: Table of Contents |
| 11 | + :depth: 2 |
| 12 | + :local: |
| 13 | + |
| 14 | +Summary |
| 15 | +------- |
| 16 | + |
| 17 | +* **Documentation issue tracker**: `ROS documentation repository <https://github.com/ros2/ros2_documentation/issues>`__. |
| 18 | +* **Code issues lists**: in a repository under the `ROS organisation <https://github.com/orgs/ros2/repositories>`__. |
| 19 | +* **Catch-all issues list**: `top level ROS repository <https://github.com/ros2/ros2/issues>`__. |
| 20 | + |
| 21 | +Prerequisites |
| 22 | +------------- |
| 23 | + |
| 24 | +There are no prerequisites. |
| 25 | + |
| 26 | +Steps |
| 27 | +----- |
| 28 | + |
| 29 | +1 Checking the issue |
| 30 | +^^^^^^^^^^^^^^^^^^^^ |
| 31 | + |
| 32 | +If you identify bugs, have suggestions for enhancements, or a question specific to one package, you can open an issue on GitHub. |
| 33 | +For example, if you are following the :doc:`/Tutorials` and come across an instruction that doesn't work on your system, you can open an issue in the `ROS documentation <https://github.com/ros2/ros2_documentation>`__ repo. |
| 34 | + |
| 35 | +You can search for individual ROS repositories on `ROS GitHub <https://github.com/ros2>`__. |
| 36 | + |
| 37 | +Before opening an issue: |
| 38 | + |
| 39 | +#. Check if other users have reported similar issues by searching across the ``ros2`` and ``ament`` GitHub organizations using, for example, this search query: `<https://github.com/search?q=user%3Aros2+user%3Aament+turtlesim&type=Issues>`__. |
| 40 | +#. Check the `Robotics Stack Exchange <https://robotics.stackexchange.com/>`__ to see if someone else has already reported your issue. |
| 41 | + |
| 42 | +If your issue has not been reported, you can open an issue in the appropriate repository's issue tracker. |
| 43 | +If it's not clear which tracker to use for a particular issue, create it in the `ros2/ros2 repository <https://github.com/ros2/ros2/issues>`__ and we'll have a look at it. |
| 44 | + |
| 45 | +2 Reporting the issue |
| 46 | +^^^^^^^^^^^^^^^^^^^^^ |
| 47 | + |
| 48 | +When reporting an issue, use the following guidelines to make sure you include enough information for another person to understand and (where relevant) reproduce the issue. |
| 49 | +It's particularly helpful if you test for your issue with as many alternatives as you can in each category. |
| 50 | + |
| 51 | +Required information |
| 52 | +"""""""""""""""""""" |
| 53 | + |
| 54 | +#. Use a descriptive **title** for the issue. |
| 55 | + |
| 56 | + **Bad**: "rviz doesn't work". |
| 57 | + |
| 58 | + **Good**: "Rviz crashing looking for missing ``.so`` after latest apt update" |
| 59 | + |
| 60 | +#. Add steps to the issue **description** describing exactly how to reproduce the issue. |
| 61 | + If you are following a ROS tutorial or online instructions, provide a link to those specific instructions. |
| 62 | + |
| 63 | + Issues are more likely to be resolved if others can reproduce them easily. |
| 64 | + |
| 65 | +#. Include the following information: |
| 66 | + |
| 67 | + * **Operating system and version** |
| 68 | + |
| 69 | + ROS supports multiple platforms, and some bugs are specific to particular versions of operating systems/compilers. |
| 70 | + |
| 71 | + * **Installation method** |
| 72 | + |
| 73 | + Some issues only manifest if ROS has been installed from binary archives or from deb packages. |
| 74 | + This can help us determine if the issue is with the packaging process. |
| 75 | + |
| 76 | + * **Specific version of ROS** |
| 77 | + |
| 78 | + Some bugs may be present in a particular ROS release, but fixed in a later release. |
| 79 | + It is important to know if your installation includes these fixes. |
| 80 | + |
| 81 | + * **DDS/RMW implementation** (see `this page </Concepts/Intermediate/About-Different-Middleware-Vendors>` for how to determine which one). |
| 82 | + |
| 83 | + Communication issues may be specific to the underlying ROS middleware being used. |
| 84 | + |
| 85 | + * **ROS client library** |
| 86 | + |
| 87 | + This helps us narrow down the layer in the stack where the issue might be. |
| 88 | + |
| 89 | +#. Include any warnings or errors which are displayed as part of the issue. |
| 90 | + |
| 91 | + Cut and paste the warnings or errors directly from the terminal window to which they were printed. |
| 92 | + Please do not re-type the warnings or errors or use screenshots of the terminal. |
| 93 | + |
| 94 | +Useful additional information |
| 95 | +""""""""""""""""""""""""""""" |
| 96 | + |
| 97 | +* If you are reporting a bug, consider providing a `short, self contained, correct (compilable) example <https://sscce.org/>`__. |
| 98 | +* When discussing any compiling/linking/installation issues, provide the version number of your compiler. |
| 99 | +* If relevant to your issue, you can also include your: |
| 100 | + |
| 101 | + * ROS environment variables (``env | grep ROS``) |
| 102 | + * Backtraces |
| 103 | + * Relevant config files |
| 104 | + * Graphics card model and driver version |
| 105 | + * ``Ogre.log`` for rviz, if possible (run with ``rviz -l``) |
| 106 | + * Bag files and code samples which reproduce the problem |
| 107 | + * GIFs or video clips to demonstrate the problem |
| 108 | + |
| 109 | +* Also describe any troubleshooting which you have already attempted, for example: |
| 110 | + |
| 111 | + * Upgrading to the latest version of the code, which may include bug fixes that have not been released yet. |
| 112 | + |
| 113 | + For more information, see :ref:`building-from-source` and follow the instructions to get the ``rolling`` branch. |
| 114 | + |
| 115 | + * Trying to reproduce your issue with a different RMW implementation. |
| 116 | + |
| 117 | + For more information, see :doc:`../../../How-To-Guides/Working-with-multiple-RMW-implementations`. |
| 118 | + |
| 119 | +Related content |
| 120 | +--------------- |
| 121 | + |
| 122 | +* :doc:`../../Contributing` |
| 123 | +* :doc:`Triaging-an-issue` |
| 124 | + |
| 125 | +FAQs |
| 126 | +---- |
| 127 | + |
4 | 128 | TBC |
0 commit comments