Steps to reproduce the problem: + start ddms + create a new filter in the logcat view containg a : in the filtername such as "myfilter:" + stop ddms + restart ddms => Exception 30:40 E/ddms: shutting down due to uncaught exception 30:40 E/ddms: java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) at java.lang.Integer.parseInt(Integer.java:468) at java.lang.Integer.parseInt(Integer.java:497) at com.android.ddmuilib.logcat.LogFilter.loadFromString(LogFilter.java:134) at com.android.ddms.UIThread$FilterStorage.getFilterFromStore(UIThread.java:186) at com.android.ddmuilib.logcat.LogPanel.createFilters(LogPanel.java:1238) at com.android.ddmuilib.logcat.LogPanel.createControl(LogPanel.java:448) at com.android.ddmuilib.Panel.createPanel(Panel.java:29) at com.android.ddms.UIThread.createBottomPanel(UIThread.java:1186) at com.android.ddms.UIThread.createWidgets(UIThread.java:832) at com.android.ddms.UIThread.runUI(UIThread.java:377) at com.android.ddms.Main.main(Main.java:97) ":" should be allowed in filternames or you should block characters which are not allowed. ddms shouldn't crash. work around: change the setting "com.android.ide.eclipse.ddms.logcat.filters" in ddms.cfg this also happens using the eclipse plugin. here you have to change the file: .metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.ddms.prefs in the workspace.
刪掉com.android.ide.eclipse.ddms.logcat.filters即可。