ddms crashes

edited June 2012 in General Discussion
I have no idea why and for sure I don't know how to solve it. - It worked before!

I created a new application and wanted to make the screenshots.

I start ddms on my Linux machine and it finds my HTC phone.
I select it and it crashes. In the window I opened ddms i can see:


$ ddms

(DDMS:20502): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17

(DDMS:20502): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 17
08:28:09 E/ddms: shutting down due to uncaught exception
08:28:09 E/ddms: Failed to execute runnable (java.lang.ArrayIndexOutOfBoundsException: -1)
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ArrayIndexOutOfBoundsException: -1)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at com.android.ddms.UIThread.runUI(UIThread.java:535)
    at com.android.ddms.Main.main(Main.java:117)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
    at org.eclipse.jface.viewers.AbstractTableViewer$VirtualManager.resolveElement(AbstractTableViewer.java:100)
    at org.eclipse.jface.viewers.AbstractTableViewer$1.handleEvent(AbstractTableViewer.java:70)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Table.checkData(Unknown Source)
    at org.eclipse.swt.widgets.Table.cellDataProc(Unknown Source)
    at org.eclipse.swt.widgets.Display.cellDataProc(Unknown Source)
    at org.eclipse.swt.internal.gtk.OS._gtk_list_store_append(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_list_store_append(Unknown Source)
    at org.eclipse.swt.widgets.Table.setItemCount(Unknown Source)
    at org.eclipse.jface.viewers.TableViewer.doSetItemCount(TableViewer.java:217)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalVirtualRefreshAll(AbstractTableViewer.java:661)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:635)
    at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
    at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1430)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1365)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1328)
    at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1428)
    at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:537)
    at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1387)
    at com.android.ddmuilib.logcat.LogCatPanel$LogCatTableRefresherTask.run(LogCatPanel.java:1093)
    at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
    ... 5 more



What do I need to do?

Comments

  • I haven't run into that before...were you launching DDMS from Eclipse?

    (Some of those Java class names reference the Logcat panel within eclipse.)
  • I did some search and I came across a message with the same problem. Google answered to install the new AP20 and that did work for me ONLY in Eclipse, but not from the command line. ... at least I could make the screen shots, that I need.

    BTW, would it be possible to build all screen shots into the build process? I know that you can scroll and select other parts of the screen, but some of us would be happy to choose from the directory of screenshots of all Activities ...
Sign In or Register to comment.