Calvin's Tech Space

          成于堅忍,毀于浮躁

             :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
          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 閱讀(565) 評論(0)  編輯  收藏 所屬分類: Eclipse
          主站蜘蛛池模板: 承德市| 炎陵县| 博罗县| 信丰县| 宁夏| 宜都市| 射阳县| 响水县| 周口市| 青田县| 乐清市| 金秀| 长宁县| 北京市| 乳源| 临桂县| 石台县| 平昌县| 延吉市| 昌江| 修武县| 霍城县| 常山县| 泾阳县| 西乌珠穆沁旗| 会东县| 思茅市| 布尔津县| 固安县| 泉州市| 武夷山市| 广水市| 信丰县| 赤峰市| 扎鲁特旗| 翁牛特旗| 贵德县| 资中县| 漳平市| 巨野县| 阜新市|