Calvin's Tech Space

成于坚忍,毁于浮躁

   :: 首页 :: 联系 :: 聚合  :: 管理
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即可。
 
posted on 2010-06-07 18:33 calvin 阅读(554) 评论(0)  编辑  收藏 所属分类: Eclipse

只有注册用户登录后才能发表评论。


网站导航: