blob: 3cca08df41968a5a17f1417c764ce724491f6c65 [file] [log] [blame] [view]
Skyler Kaufman991ae4d2011-04-07 12:30:41 -07001# Report Bugs #
2
3Thanks for your interest in Android! One of the best ways you can help us
4improve Android is to let us know about any problems you find with it.
5
6First, though: if you think you've found a security vulnerability,
7*please don't use the forms below*. Using the public forms below may
8allow anyone to see your report, which may put users at risk until the bug is
9fixed. Instead, please report security bugs to our security team by emailing
10<a href="mailto:security@android.com">security@android.com</a>. We believe in
11responsible disclosure of security vulnerabilities, and will give you proper
12attribution for any issues you report.
13
14Here's how to report non-security bugs:
15
16- [Search for your bug](http://code.google.com/p/android/issues/advsearch) to see if anyone has already reported it.
17
18- If you find your issue and it's important to you, star it! That's how we know which bugs are most important to fix.
19
20- If no one's reported your bug, file the bug. You can use one of these templates:
21
22 - [Bug in your Device](http://code.google.com/p/android/issues/entry?template=User%20bug%20report) - use this if you are a user reporting a bug in a device you own
23
24 - [Bug in the Software](http://code.google.com/p/android/issues/entry?template=Developer%20bug%20report) - use this if you found a bug in the course of developing an app
25
26 - [Feature Request](http://code.google.com/p/android/issues/entry?template=Feature%20request) - use this for a feature you'd like to see in a future verison
27
28Please note that we can't guarantee that any particular bug can be fixed in
29any particular release. To see what happens to your bug once you report it,
30read [Life of a Bug](life-of-a-bug.html).
31
32In general, please put as much info in bugs as you can. Just a one liner
33telling us something isn't working is usually useless, and will probably be
34closed without any action. The more detail you provide, the more likely your
35issue is to be resolved. Below, there are some examples of a good bug report
36and a poor bug report.
37
38## A Poor Bug Report ##
39 Title: Error message
40
41 When running Eclipse I get an "Internal Error" that says "See the .log file for more details".
42
43 Steps to reproduce:
44 Happens when "Object o = null". Doesn't happen when changed to "Object o".
45
46 Expected results:
47 I wouldn't get the error message--would work with Object o = null.
48
49 Observed results:
50 See above.
51
52This is a poor bug report because it doesn't provide any context for the
53issue; is it a problem in the Dalvik virtual machine, the core framework, or
54something else? It also doesn't provide any code or hint on how to reproduce
55it. In other words, this bug report doesn't provide enough information for
56anyone to take action on, so it would be ignored.
57
58## A Good Bug Report ##
59
60 Title: Stepping over "Object o = null" causes Eclipse "Internal Error"
61
62 Interesting bug, while using Eclipse 3.3.1.1 with m37a of android and the following code:
63
64 package com.saville.android;
65
66 import android.app.Activity;
67 import android.os.Bundle;
68 import android.util.Log;
69
70 public class TestObjectNull extends Activity {
71 /** Called when the activity is first created. */
72 @Override
73 public void onCreate(Bundle icicle) {
74 super.onCreate(icicle);
75 setContentView(R.layout.main);
76
77 Object o = null;
78
79 o = "hi";
80
81 Log.v(TAG, "o=" + o);
82 }
83
84 static final String TAG = "TestObjectNull";
85 }
86
87 Eclipse indicates an "Internal Error" with "See the .log file for more
88 details" and then asks if I want to exit the workbench. This occurs when I
89 place a break point on "setContentView(R.layout.main);" and then single
90 step over "Object o = null;"
91
92 If I change "Object o = null;" to "Object o" all is well.
93
94 The last lines of the .log file are:
95
96 !ENTRY org.eclipse.core.jobs 4 2 2008-01-01 13:04:15.825
97 !MESSAGE An internal error occurred during: "has children update".
98 !STACK 0
99 java.lang.InternalError: Invalid signature: "<null>"
100 at
101 org.eclipse.jdi.internal.TypeImpl.signatureToTag(TypeImpl.java:307)
102 at
103 org.eclipse.jdi.internal.LocalVariableImpl.tag(LocalVariableImpl.java:185)
104 at
105 org.eclipse.jdi.internal.StackFrameImpl.getValues(StackFrameImpl.java:128)
106 at
107 org.eclipse.jdi.internal.StackFrameImpl.getValue(StackFrameImpl.java:73)
108 at
109 org.eclipse.jdt.internal.debug.core.model.JDILocalVariable.retrieveValue(JDILocalVariable.java:57)
110 at
111 org.eclipse.jdt.internal.debug.core.model.JDIVariable.getCurrentValue(JDIVariable.java:66)
112 at
113 org.eclipse.jdt.internal.debug.core.model.JDIVariable.getValue(JDIVariable.java:88)
114 at
115 org.eclipse.debug.internal.ui.model.elements.VariableContentProvider.hasChildren(VariableContentProvider.java:62)
116 at
117 org.eclipse.jdt.internal.debug.ui.variables.JavaVariableContentProvider.hasChildren(JavaVariableContentProvider.java:73)
118 at
119 org.eclipse.debug.internal.ui.model.elements.ElementContentProvider.updateHasChildren(ElementContentProvider.java:223)
120 at
121 org.eclipse.debug.internal.ui.model.elements.ElementContentProvider$3.run(ElementContentProvider.java:200)
122 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
123