Android Debugging Error Freezes Emulator

My Android emulator always freezes while trying to debug. No errors are reported in the IDE. After clicking around in the IDE (while the emulator is frozen), the IDE eventually locks up as well. This is occuring in the latest IDEA10.0 build (using community edition).

This same error used to occur in previous 9.xx builds, but only sometimes, not always. When it did occur, the IDE would at least show that red exclamation mark indicating something went seriously wrong with the editor.

The follow error is logged when this issue occurs:

2010-12-09 10:54:52,775 [2566716]  ERROR - lij.debugger.impl.InvokeThread - String index out of range: 4284161
java.lang.StringIndexOutOfBoundsException: String index out of range: 4284161
    at java.lang.String.checkBounds(String.java:401)
    at java.lang.String.<init>(String.java:442)
    at com.sun.tools.jdi.PacketStream.readString(PacketStream.java:374)
    at com.sun.tools.jdi.JDWP$VirtualMachine$AllClassesWithGeneric$ClassInfo.<init>(JDWP.java:1645)
    at com.sun.tools.jdi.JDWP$VirtualMachine$AllClassesWithGeneric$ClassInfo.<init>(JDWP.java:1606)
    at com.sun.tools.jdi.JDWP$VirtualMachine$AllClassesWithGeneric.<init>(JDWP.java:1679)
    at com.sun.tools.jdi.JDWP$VirtualMachine$AllClassesWithGeneric.waitForReply(JDWP.java:1603)
    at com.sun.tools.jdi.JDWP$VirtualMachine$AllClassesWithGeneric.process(JDWP.java:1588)
    at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:985)
    at com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:265)
    at com.sun.tools.jdi.ReferenceTypeImpl.nestedTypes(ReferenceTypeImpl.java:573)
    at com.intellij.debugger.jdi.VirtualMachineProxyImpl.nestedTypes(VirtualMachineProxyImpl.java:89)
    at com.intellij.debugger.engine.PositionManagerImpl.findNested(PositionManagerImpl.java:268)
    at com.intellij.debugger.engine.PositionManagerImpl.getAllClasses(PositionManagerImpl.java:225)
    at com.intellij.debugger.engine.CompoundPositionManager.getAllClasses(CompoundPositionManager.java:63)
    at com.intellij.debugger.engine.JVMNameUtil.getSourcePositionClassDisplayName(JVMNameUtil.java:347)
    at com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter.updateCaches(BreakpointWithHighlighter.java:129)
    at com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter.access$000(BreakpointWithHighlighter.java:66)
    at com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter$2$1$1.run(BreakpointWithHighlighter.java:344)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:760)
    at com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter$2$1.action(BreakpointWithHighlighter.java:342)
    at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:44)
    at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:135)
    at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:36)
    at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:139)
    at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:52)
    at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:382)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:130)

I'm not sure if this is relevant, but I'm having to use the Eclipse compiler to work around the issue with generics (see http://youtrack.jetbrains.net/issue/IDEA-52447#comment=27-139287 ) . I have no issues debugging in Eclipse.

2 comments
Comment actions Permalink

Could you, please, attach the sample project to reproduce this problem. Also, it would be better if you reported this to the tracker.

0
Comment actions Permalink

I put the isssue in Tracker. As for a test project... I'll see if I can put one together when I have have time.

0

Please sign in to leave a comment.