Reporting
|
Size: 8755
Comment:
|
Size: 6936
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| ||<tablestyle="float:right; font-size: 0.9em; background:#F1F1ED;margin: 0 0 1em 1em;" style="padding:2.0em;"><<TableOfContents(2)>>|| | #title Writing a Good X Bug <<Include(X/MenuBar)>> ||<tablestyle="float:right; font-size: 0.9em; width:30%; background:#F1F1ED; background-image: url('https://librarian.launchpad.net/1812570/bugsquad.png'); background-repeat: no-repeat; background-position: 98% 0.5ex; margin: 0 0 1em 1em; padding: 0.5em;">'''Contents'''<<BR>><<TableOfContents>>|| The official way to report defects against Ubuntu's Xorg is: ||||<bgcolor="#f1f1DD;"style="width:100%;border-radius: 15px 15px 15px 15px;font-size: 2em; text-align: center;">'''ubuntu-bug xorg'''|||| This lets you attach a lot of common debugging data. But it's not enough!! Include a '''detailed description''' of the problem. * A '''good description''' * '''Step-by-step directions''' for how you reproduced it * When was your system '''last working''' properly? * '''photo''' of the screen If your report doesn't have a good description, and there's no relevant errors in your log files, your bug will be closed as not actionable and you'll be referred here. Don't be upset - the always-busy X package maintainers get a LOT of bug reports and need to focus their limited time on well-described problems. Instead, read this page and try again, making your new bug report a well-described problem. Keep in mind that the Launchpad bug tracker is a development tool, not for technical support - Ubuntu does have [[http://www.ubuntu.com/support|volunteer and paid technical support staff]] but none of them frequent the bug tracker. In particular, if you're using a released version of Ubuntu, you probably should start with the technical support channels. == Be Specific, Especially in the Title == X symptoms are often generic things like "booted with black screen", or "crashed", or "sluggish performance". Two distinct bugs can have the same symptoms but different causes. The more specific you are, the less likely some other confused reporter will spam your bug report with irrelevant messages. == Focus on One Issue == The rule is "One defect, per person, per hardware, per report". Don't amalgamate every issue and hardware you find a problem in after an update. Otherwise, the maintainer will just pick one at random and all others will be ignored. Instead, do a separate report for each distinct issue, on each hardware. This is how different hardware can have similar problematic symptoms (ex. computer won't boot), but different root causes, and patches that fix the different causes. It's cheap and easy for the maintainers to dupe your reports together if it can be proven they all have the same cause. == Banish 'Random' from Your Vocabulary == Many times it's unclear what is causing the X problem. But words like "randomly", "unexpectedly", "intermittently", etc. just gives the impression you haven't given your problem much thought or study. If you simply can't characterize it, consider holding off on filing a bug report until you have a better understanding and can describe it more specifically. == Use !!Science!! == Treat writing your bug report like you would writing a chemistry lab report. Write down the '''procedure''' for producing the issue. Specify '''expected''' results and '''actual''' results. '''Identify variables''' - what has changed recently about your system, what makes your system unique, what you're doing when the problem occurs. Take lots of '''measurements''' - how many times a day did it happen? Does it happen only when you're on the computer, or also (only?) when idle? Make a '''hypothesis''' and attempt to disprove it. Repeat the '''experiment''' and see if you get the same results. == Keep Calm and Carry On == Bugs can be frustrating, and X bugs particularly so, especially when it feels like no one is paying attention to your bug reports. But don't give in to the dark side. Losing your cool and ranting can be quite unproductive, and just makes you look bad for all posterity. Instead keep discussions civil, and follow the [[http://www.ubuntu.com/community/conduct|Ubuntu Code of Conduct]]. There are millions of Ubuntu users, and thousands of bug reports and just a handful of people to work on fixes -- it simply is not humanly possible to give a personal reply to every bug report. == Be Prepared to Roll Up Your Sleeves == Bug reports are a way to engage with the developers. It's not a support request, it's a way to participate in the development process itself. It may be limited to just testing the fix and verifying it works, or it could be extensively technical. Be ready to do some work, and be clear if you have time or technical limits you want to have honored. Often, the more involved the reporter is at following up with new info, chasing down leads, locating patches or work arounds to test, and trying out variants, the more likely the bug will catch someone's interest and lend a hand. == Reporting Bugs from a Different Machine == Apport does a good job of collecting information on certain kinds of bugs. By default, it tries to launch your web browser to complete the bug filing. But sometimes you can't do this. You can make apport capture bug data manually like this: {{{ apport-bug --save /tmp/foo.apport }}} Then copy that {{{foo.apport}}} file to the machine you want to file the bug from (using scp, rsync, a usb drive, or whatever), and then file it like this: {{{ apport-bug ~/foo.apport }}} |
| Line 4: | Line 70: |
| = Bug Reporting = | For the situation where apport automatically captured a crash dump from a crash or X lockup, but you can't file it from the sick machine, you will find the file in your {{{/var/crash}}} directory on the sick machine. Copy that over to another machine and file it from there, like above: |
| Line 6: | Line 72: |
| The lifecycle of a bug report begins, unsurprisingly, with the preliminary report. How a bug is initially reported can have a huge effect on how it's handled and how quickly it gets fixed. Indeed, your bug may be closed as invalid if it doesn't at least include the basics! If you do nothing else, at least remember: <<BR>> '''Always include /var/log/Xorg.0.log when reporting X bugs!''' == Troubleshooting == If you'd like to do some investigation beyond just reporting the bug, please see the page: [[X/Troubleshooting]] == Choosing a Good Title == Your title should communicate two things: The symptom you're seeing, and whatever is unique or unusual about your system. Otherwise, your bug may not get proper attention. ''' Examples: ''' ||<style="background-color: #FF8080;"> '''BAD''':|| Crashes randomly || ||<style="background-color: #FF8080;"> '''BAD''':|| Crazy screen issues on boot || ||<style="background-color: #FF8080;"> '''BAD''':|| Multiple problems with CD today || ||<style="background-color: #FF8080;"> '''BAD''':|| Not able to login or start X after updating || ||<style="background-color: lightgreen;"> '''GOOD''':|| Screen briefly corrupts during boot with -nv (NVidia 6100) || ||<style="background-color: lightgreen;"> '''GOOD''':|| [fglrx] atieventsd crashed with SIGSEGV in XextAddDisplay() || ||<style="background-color: lightgreen;"> '''GOOD''':|| [Hardy Alpha-3] Alt-CD (only) selected wrong driver (Matrox / BenQ FP91+) || ||<style="background-color: lightgreen;"> '''GOOD''':|| [Gutsy] Periodic crashes w/ high CPU on Dell Latitude D505 (-intel 855GM) || ||<style="background-color: lightgreen;"> '''GOOD''':|| [Dapper,Edgy] Wrong default refresh rates on 16:10 LCD panels || ||<style="background-color: lightgreen;"> '''GOOD''':|| After update to -intel 2.0-0ubuntu3, X fails with 'Invalid mode' error || == Do's and Don't's == ||<tablestyle="width: 80%;" style="background-color: #FF8080;"> DON'T: || Assume "they must already know about this" and skip reporting || ||<style="background-color: lightgreen;"> DO: || Look for existing bug reports that exactly matches your problem, and if not file a new bug || |||||| ||<style="background-color: #FF8080;"> DON'T: || Assume a "similar" bug is exactly what you're seeing || ||<style="background-color: lightgreen;"> DO: || File a new bug, but mention the ID's of all bugs that sound similar. Someone can easily dupe them together later. || |||||| ||<style="background-color: #FF8080;"> DON'T: || Add "me too" responses to an existing bug. Wastes everyone's time. || ||<style="background-color: lightgreen;"> DO: || Add missing data (photos, logs) to add to an existing bug's "knowledge base" and to provide ample evidence that you indeed have the exact same issue. Or if you just wish to be notified, then Subscribe yourself to the bug. If in doubt, file a new bug, and reference the one you think might be a dupe, and let the experts decide. || |||||| ||<style="background-color: #FF8080;"> DON'T: || Post bugs with only a brief description of the problem || ||<style="background-color: lightgreen;"> DO: || Post steps to reproduce, relevant logs, config files, and data (see table below) '''For Xorg issues, ALWAYS ATTACH YOUR /var/log/Xorg.0.log''' || |||||| ||<style="background-color: #FF8080;"> DON'T: || Assume "everyone" is seeing this same bug || ||<style="background-color: lightgreen;"> DO: || 90% of the time you are seeing something abnormal that others aren't. Consider what is unique about your system, any recent changes made, and so on. || |||||| ||<style="background-color: #FF8080;"> DON'T: || Assume others will "just know" how the bug occurs || ||<style="background-color: lightgreen;"> DO: || Itemize the exact steps that result in the issue. Can you reproduce it at will? || |||||| ||<style="background-color: #FF8080;"> DON'T: || Fire and forget. Abandoned bugs rarely get fixed. || ||<style="background-color: lightgreen;"> DO: || Follow up on your bug from time to time, even if it seems ignored. Report if the issue goes away or remains when new Ubuntu's come out. || |||||| ||<style="background-color: #FF8080;"> DON'T: || Rant about the bug "driving away new users", threaten to "go back to windows or some other distro" unless the bug is fixed, or complain the bug is not getting enough attention. None of this helps get the bug fixed; it just makes people sad. || ||<style="background-color: lightgreen;"> DO: || Follow the [[http://www.ubuntu.com/community/conduct|Ubuntu Code of Conduct]] and keep discussions civil, even if you're frustrated. There are thousands of bugs and just a handful of people to work on them, and we can't fix everything overnight. If you're not getting fast enough response on a bug, then in addition to improving the report, you can try reporting it upstream, make mention of the bug directly to developers via mailing lists or irc, or even undertaking troubleshooting and analysis procedures yourself. Half the work of solving a bug is reproducing it, so if you have the bug, you're already halfway to a solution! ;-) Many, many of Ubuntu's bugs are solved through the work of community members, who didn't know the underlying technology but were patient and diligent at asking questions and testing things out until they found a solution. || |
{{{ apport-bug /path/to/file.crash }}} |
| Line 61: | Line 77: |
| == What to Include in Bug Reports == | The crash files can be unpacked (like if you only want certain files): |
| Line 63: | Line 79: |
| || '''Problem class:''' || '''Things to Include:''' || ||<|3(^> '''General X bug''' || Description of problem || || Paste in output of {{{lspci -nn | grep VGA}}} || || Attach /var/log/Xorg.0.log || ||<|7(^> '''Wrong resolutions, refresh rates, or monitor specs''' || Resolution, rate, or other parameter expected || || Resolutions, rates, or other parameters actually obtained || || /etc/X11/xorg.conf || || /var/log/Xorg.0.log || || Paste in output of {{{lspci -nn | grep VGA}}} || || output of `sudo ddcprobe` || || output of `xrandr` || ||<|5(^> '''Wrong font dpi or size''' || Are you running GNOME, KDE, XFCE, or ...? || || Affected (and unaffected) applications || || /var/log/Xorg.0.log || || output of `sudo ddcprobe` || || Screenshot showing font differences || ||<|8(^> '''X crash, lockup, freeze, exit, or doesn't start/shutdown''' || Detailed description of problem || || Get a full backtrace ([[X/Backtracing]]) || || List any versions you tried that did not have this issue || || Steps to reproduce || || How complete is the X failure? <<BR>> + Does ctrl+alt+f1 take you to a console? <<BR>> + Does ctrl+alt+backspace restart X? <<BR>> + Does mouse pointer still move? <<BR>> + Does the keyboard LED come on when hitting the CAPSLOCK key? + Can you ssh into the system from another computer? || || /var/log/Xorg.0.log || || /var/log/Xorg.0.log.old || || ~/.xsession-errors || ||<|4(^> '''Keyboard, touchpad, and mouse issues''' || Description of the problem || || /var/log/Xorg.0.log || || output of `xprop -root` || || output of `gconftool-2 -R /desktop/gnome/peripherals` || ||<|4(^> '''Screen display corruption''' || Photo of the screen || || Description of the problem || || Does it also occur if DRI is disabled? || || /var/log/Xorg.0.log || ||<|3(^> '''Bad video playback''' || /etc/X11/xorg.conf || || /var/log/Xorg.0.log || || output of `lspci -vvnn` || |
{{{ mkdir ~/tmp apport-unpack /path/to/file.crash ~/tmp/ }}} |
| Line 101: | Line 86: |
| Once your X bug is reported, it will be reviewed and triaged. The triager may mark it Incomplete and ask some questions or request additional information (if you're curious, or would like to participate in triaging, see [[X/Triaging]]). | Once your X bug is reported, a triager may mark it Incomplete with questions or request some info, or mark as a dupe of a known issue, file it upstream, or determine it's not actually an X bug and move it somewhere else. Due to the volume of reports, automated scripts are used to help with triage; please be patient, these bots are not very smart. |
| Line 103: | Line 88: |
| If there is no reply from you within a month or two, the bug report may be closed as out of date / invalid (otherwise the tracker fills up with inactive bugs and gets confusing). You should feel free to reopen it once you have the needed information. | If there is no reply from you within a month or two, the bug report may be closed as expired. You should feel free to reopen it once you have the needed information. |
| Line 105: | Line 90: |
| Once you've submitted your replies, a second round of triaging takes place to evaluate if the bug is a Duplicate of another bug or not an issue requiring a fix. If neither of those apply, the bug will be marked Triaged, which marks it ready for the research step. | If your bug is forwarded upstream, you should participate in the discussions there. You may need to register an account on bugs.freedesktop.org to do so. If upstream finds a fix, it will be evaluated for possible inclusion in Ubuntu, if the fix is straightforward and seems safe. |
| Line 107: | Line 92: |
| In the research step, the bug may be assigned to a developer or forwarded to an upstream bug tracker. If it is forwarded upstream, you should also subscribe to that bug report so you can answer questions or run tests for those developers. Once a fix is found either in Ubuntu or upstream, the Ubuntu developers will take the fix and package it for Ubuntu. They may ask for people to test and verify the fix before uploading it. |
If a fix is found and backported, you'll be asked to test and verify that it solves the issue. Often the fix can't be rolled out until someone validates it. |
Contents |
The official way to report defects against Ubuntu's Xorg is:
ubuntu-bug xorg |
||
This lets you attach a lot of common debugging data. But it's not enough!!
Include a detailed description of the problem.
A good description
Step-by-step directions for how you reproduced it
When was your system last working properly?
photo of the screen
If your report doesn't have a good description, and there's no relevant errors in your log files, your bug will be closed as not actionable and you'll be referred here. Don't be upset - the always-busy X package maintainers get a LOT of bug reports and need to focus their limited time on well-described problems. Instead, read this page and try again, making your new bug report a well-described problem.
Keep in mind that the Launchpad bug tracker is a development tool, not for technical support - Ubuntu does have volunteer and paid technical support staff but none of them frequent the bug tracker. In particular, if you're using a released version of Ubuntu, you probably should start with the technical support channels.
Be Specific, Especially in the Title
X symptoms are often generic things like "booted with black screen", or "crashed", or "sluggish performance". Two distinct bugs can have the same symptoms but different causes. The more specific you are, the less likely some other confused reporter will spam your bug report with irrelevant messages.
Focus on One Issue
The rule is "One defect, per person, per hardware, per report". Don't amalgamate every issue and hardware you find a problem in after an update. Otherwise, the maintainer will just pick one at random and all others will be ignored. Instead, do a separate report for each distinct issue, on each hardware. This is how different hardware can have similar problematic symptoms (ex. computer won't boot), but different root causes, and patches that fix the different causes.
It's cheap and easy for the maintainers to dupe your reports together if it can be proven they all have the same cause.
Banish 'Random' from Your Vocabulary
Many times it's unclear what is causing the X problem. But words like "randomly", "unexpectedly", "intermittently", etc. just gives the impression you haven't given your problem much thought or study.
If you simply can't characterize it, consider holding off on filing a bug report until you have a better understanding and can describe it more specifically.
Use !!Science!!
Treat writing your bug report like you would writing a chemistry lab report.
Write down the procedure for producing the issue. Specify expected results and actual results. Identify variables - what has changed recently about your system, what makes your system unique, what you're doing when the problem occurs. Take lots of measurements - how many times a day did it happen? Does it happen only when you're on the computer, or also (only?) when idle? Make a hypothesis and attempt to disprove it. Repeat the experiment and see if you get the same results.
Keep Calm and Carry On
Bugs can be frustrating, and X bugs particularly so, especially when it feels like no one is paying attention to your bug reports.
But don't give in to the dark side. Losing your cool and ranting can be quite unproductive, and just makes you look bad for all posterity. Instead keep discussions civil, and follow the Ubuntu Code of Conduct. There are millions of Ubuntu users, and thousands of bug reports and just a handful of people to work on fixes -- it simply is not humanly possible to give a personal reply to every bug report.
Be Prepared to Roll Up Your Sleeves
Bug reports are a way to engage with the developers. It's not a support request, it's a way to participate in the development process itself. It may be limited to just testing the fix and verifying it works, or it could be extensively technical. Be ready to do some work, and be clear if you have time or technical limits you want to have honored.
Often, the more involved the reporter is at following up with new info, chasing down leads, locating patches or work arounds to test, and trying out variants, the more likely the bug will catch someone's interest and lend a hand.
Reporting Bugs from a Different Machine
Apport does a good job of collecting information on certain kinds of bugs. By default, it tries to launch your web browser to complete the bug filing. But sometimes you can't do this. You can make apport capture bug data manually like this:
apport-bug --save /tmp/foo.apport
Then copy that foo.apport file to the machine you want to file the bug from (using scp, rsync, a usb drive, or whatever), and then file it like this:
apport-bug ~/foo.apport
For the situation where apport automatically captured a crash dump from a crash or X lockup, but you can't file it from the sick machine, you will find the file in your /var/crash directory on the sick machine. Copy that over to another machine and file it from there, like above:
apport-bug /path/to/file.crash
The crash files can be unpacked (like if you only want certain files):
mkdir ~/tmp apport-unpack /path/to/file.crash ~/tmp/
What Next?
Once your X bug is reported, a triager may mark it Incomplete with questions or request some info, or mark as a dupe of a known issue, file it upstream, or determine it's not actually an X bug and move it somewhere else. Due to the volume of reports, automated scripts are used to help with triage; please be patient, these bots are not very smart.
If there is no reply from you within a month or two, the bug report may be closed as expired. You should feel free to reopen it once you have the needed information.
If your bug is forwarded upstream, you should participate in the discussions there. You may need to register an account on bugs.freedesktop.org to do so. If upstream finds a fix, it will be evaluated for possible inclusion in Ubuntu, if the fix is straightforward and seems safe.
If a fix is found and backported, you'll be asked to test and verify that it solves the issue. Often the fix can't be rolled out until someone validates it.
X/Reporting (last edited 2016-01-10 21:36:02 by penalvch)