jami-docs/tutorials/Bug-report-guide.md

146 lines
5.3 KiB
Markdown
Raw Normal View History

2018-05-17 05:51:14 +08:00
Setup your environment
----------------------
- Be ready for data loss. Backup your account and link your account to
as many devices as possible.
- Install the latest version (or even a beta version) of Ring. It is
useless to report bugs on older versions.
How to report a bug
-------------------
2018-05-30 03:47:41 +08:00
0\. If you have multiple issues, please file separate bug reports. It
will be much easier to track bugs that way.
2018-06-06 05:50:26 +08:00
1\. Title is an explicit summary of the bug (e.g.: header bar is too big due to icon size)
2\. Figure out the steps to reproduce the bug:
2018-05-17 05:51:14 +08:00
- If you have precise steps to reproduce it — great! — you're on your
way to creating a useful bug report.
- If you can reproduce occasionally, but not after following specific
steps, you must provide additional information for the bug report to
be useful.
- If you can't reproduce the problem, there's probably no use in
reporting it, unless you provide unique information about
its occurrence.
- If the bug leads to other bugs afterward that you can't reproduce
some other way, there's probably no use in reporting it.
2018-06-06 05:50:26 +08:00
3\. Make sure your software is up to date. Ideally, test an
2018-05-17 05:51:14 +08:00
in-development version to see whether your bug has already been fixed
2018-06-06 05:50:26 +08:00
4\. Try to isolate from environment and reproduce (ie: test on multiple
2018-05-17 05:51:14 +08:00
devices)
2018-06-06 05:50:26 +08:00
5\. Describe your environment(s) by specifying the following:
2018-05-17 05:51:14 +08:00
2018-06-06 06:02:33 +08:00
- OS version
- precise device model (important for mobile devices)
2018-05-17 05:51:14 +08:00
- if you are using a beta version
2018-06-06 06:02:33 +08:00
- what build you are using (from ring.cx, F-droid, Play Store, App store, you own...). If you have built your own version of Ring, please specify the exact dring version (LibRing or Daemon) and client version (You can obtained it with `dring -v` and `gnome-ring -v`. But note that our packages are updated quite often) and the Git commit.
- network conditions: Are both devices on the same local network? Different networks? Is one or both behind NAT? Are you using LTE? Wifi?
- other elements if needed: SIP provider, hardware...
2018-05-17 05:51:14 +08:00
Writing a clear summary
-----------------------
How would you describe the bug using approximately 10 words? This is the
first part of your bug report a developer will see.
A good summary should quickly and uniquely identify a bug report. It
should explain the problem, not your suggested solution.
2018-05-17 05:53:13 +08:00
```
Good: "Cancelling a file transfer crashes Ring"
Bad: "Software crashes"
```
2018-05-17 05:51:14 +08:00
2018-05-17 05:53:13 +08:00
```
Good: "All calls hang up after 32 seconds"
Bad: "Not able to call my friends"
```
2018-05-17 05:51:14 +08:00
Writing precise steps to reproduce
----------------------------------
2018-05-18 05:31:15 +08:00
* How can a developer reproduce the bug on his or her own device?
2018-05-17 05:51:14 +08:00
Steps to reproduce are the most important part of any bug report. If a
developer is able to reproduce the bug, the bug is very likely to be
fixed. If the steps are unclear, it might not even be possible to know
whether the bug has been fixed. We are totally aware that some bugs may
look obvious to you, but they are probably related to your environment.
The more precise you are, the quicker the bug is fixed.
2018-05-18 05:31:15 +08:00
* What should you include in a bug report?
2018-05-17 05:51:14 +08:00
Indicate whether you can reproduce the bug at will, occasionally, or not
at all. Describe your method of interacting with Ring in addition to the
intent of each step. After your steps, precisely describe the observed
(actual) result and the expected result. Clearly separate facts
(observations) from speculations.
2018-05-18 05:31:15 +08:00
### Good :
I can always reproduce by following these steps:
2018-05-17 05:51:14 +08:00
2018-05-17 05:53:13 +08:00
```
1. Start Ring by clicking on the desktop icon
2. Start a new conversation with anyone
3. Click file transfer icon
2018-05-17 05:51:14 +08:00
2018-05-17 05:53:13 +08:00
Expected results: A window opens and ask me to choose a file to send.
Actual results: When I click the file transfer icon, nothing happens.
```
2018-05-17 05:51:14 +08:00
2018-05-18 05:31:15 +08:00
### Bad :
2018-05-17 05:51:14 +08:00
2018-05-17 05:53:13 +08:00
```
Try to transfer a file
It doesn't work.
```
2018-05-17 05:51:14 +08:00
2018-06-06 06:02:33 +08:00
Obtained Result
---------------
Please include:
+ The daemon (or LibRing) and client debug logs.
+ The core dump if one was produced.
Expected Result
---------------
It's a description of expected or desired behaviour.
2018-05-17 05:51:14 +08:00
Providing additional information
--------------------------------
The following information is requested for most bug reports. You can
2018-06-06 06:02:33 +08:00
save time by providing this information below the Expected results.
2018-06-06 06:03:23 +08:00
### Logs
2018-06-06 06:02:33 +08:00
2018-06-06 06:03:23 +08:00
#### On GNU/Linux
2018-06-06 06:02:33 +08:00
Since the Ring GUI and daemon are separated processes, the easiest way to get logs from both is to start them one at a time, manually.
1. Ensure that no ring client or daemon instances are running with `ps aux | grep ring`
+ Ring may still be running even if no windows are open depending on your preferences.
+ If either client or daemon are running, kill them with `kill PID`
2. On one terminal, start the daemon with `dring -d -c`
+ This executable is normally not in the PATH, and on the Ubuntu packages, it is located at `/usr/lib/x86_64-linux-gnu/dring -d -c`
3. In another terminal, start the client with (here is a Gnome example) `gnome-ring -d`
2018-06-06 06:03:23 +08:00
#### On Mac OS
2018-06-06 06:02:33 +08:00
Open the Terminal app and launch Ring with `/Applications/Ring.app/Contents/MacOS/Ring`
2018-06-06 06:03:23 +08:00
#### On Android (debug builds only)
2018-06-06 06:02:33 +08:00
+ You need to have adb setup on your computer.
+ Launch Ring on your smartphone and then execute
+ `adb logcat *:D | grep \`adb shell ps | egrep 'cx.ring' | cut -c10-15\` > logring.txt`
+ You now have a file containing the log of the client