2012-11-19 59 views
6

今天我用DDMS像往常一樣打開,但有一個錯誤幾天前。我的Android版本是4.0.3,蝕3.7,ADT 21的Mac OSX 10.7.5,任何人有相同的錯誤Traceview不能從DDMS在Eclipse

enter image description here

enter image description here

無法創建編輯器ID com.android.ide .eclipse.traceview.editors.TraceviewEditor:方法退出(安卓/ OS/Debug.isMethodTracingActive()Z)不符合當前的方法(Dalvik的/系統/ VMDebug.isMethodTracingActive()Z)

java.lang.RuntimeException: Method exit (android/os/Debug.isMethodTracingActive()Z) does not match current method (dalvik/system/VMDebug.isMethodTracingActive()Z) 
    at com.android.traceview.ThreadData.exit(ThreadData.java:106) 
    at com.android.traceview.DmTraceReader.parseData(DmTraceReader.java:323) 
    at com.android.traceview.DmTraceReader.generateTrees(DmTraceReader.java:92) 
    at com.android.traceview.DmTraceReader.<init>(DmTraceReader.java:87) 
    at com.android.ide.eclipse.traceview.editors.TraceviewEditor.createPartControl(TraceviewEditor.java:258) 
    at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) 
    at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) 
    at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) 
    at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) 
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) 
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) 
    at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) 
    at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) 
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) 
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) 
    at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2756) 
    at org.eclipse.ui.ide.IDE.openEditorOnFileStore(IDE.java:1155) 
    at com.android.ide.eclipse.traceview.TraceviewLauncher$1.run(TraceviewLauncher.java:65) 
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) 
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135) 
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3938) 
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3615) 
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) 
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) 
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) 
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) 
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
    at java.lang.reflect.Method.invoke(Method.java:597) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410) 
+0

嘗試更新您的ADT插件和相關工具... –

+0

是的,我試過了,更新ADT從18到21,但錯誤仍然是 –

+4

我得到了同樣的錯誤,在Win 7上,Eclipse Indigo,Android版本4.0.3 ..會很高興,如果有人能回答 –

回答

2

你運行您的應用程序在英特爾x86模擬器內圖片?

如果是的話,這可能是原因。至少我只是被這個錯誤咬傷,但是當我試圖重複一個基於ARM仿真器圖像一切順利的內部分析,一切正常那裏!

希望這會有所幫助。

+0

謝謝你,也許這是我在一個設備上運行的原因 –

+0

,而不是模擬器。試圖更新ADT插件,還是沒用:( –

+0

我想這是與設備問題,而不是Eclipse或DDMS。我改變了設備和traceview運行完美。 –