Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
austinfrance
Posts: 65
Registered: ‎01-05-2010
My Device: Not Specified
Accepted Solution

Eclipse + Java SDK 5.0.14 - single step broken

[ Edited ]

Since some point yesterday debugging stopped working in that breakpoints would stop execution but eclipse could not show the display stack for some threads.

 

I fixed that particular issue by running clean.bat as suggested in a reply to my original post.

 

Breakpoints are now working again, however single stepping is not.

 

Now when I click Step Over or step into, the thread in the debug pane shows (Stepping) then eclipse goes away for a long time (several minutes can be 10 or more minutes), it eventually suspends the thread again, though not usually on the expected statement.

 

Whilst it's doing this its not generating any page faults or using any CPU, its just asleep.

 

On exiting eclipse (aborting a stuck stepping attempt) I get the following errors in eclipse workspace log

 

 

!ENTRY org.eclipse.jdt.debug 4 125 2010-02-04 13:21:37.593
!MESSAGE Internal error logged from JDI Debug: 
!STACK 1
org.eclipse.debug.core.DebugException: Invalid stack frame
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingStackFrame(JDIStackFrame.java:1010)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingThisObject(JDIStackFrame.java:700)
at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getThis(JDIStackFrame.java:1058)
at org.eclipse.jdt.internal.debug.ui.JavaDebugHover.getHoverInfo2(JavaDebugHover.java:328)
at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:129)
at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:82)
at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)
!SUBENTRY 1 org.eclipse.jdt.debug 4 100 2010-02-04 13:21:37.625
!MESSAGE Invalid stack frame
!ENTRY org.eclipse.debug.core 4 2 2010-02-04 13:22:19.250
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Display.error(Display.java:1187)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:655)
at org.eclipse.debug.internal.ui.contexts.DebugModelContextBindingManager.launchesTerminated(DebugModelContextBindingManager.java:341)
at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.run(LaunchManager.java:303)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.notify(LaunchManager.java:256)
at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:991)
at org.eclipse.debug.core.Launch.fireTerminate(Launch.java:401)
at org.eclipse.debug.core.Launch.handleDebugEvents(Launch.java:571)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1076)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1110)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:381)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!ENTRY org.eclipse.debug.core 4 120 2010-02-04 13:22:19.250
!MESSAGE An exception occurred during launch change notification.
!STACK 0
org.eclipse.swt.SWTException: Device is disposed
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Display.error(Display.java:1187)
at org.eclipse.swt.widgets.Display.asyncExec(Display.java:655)
at org.eclipse.debug.internal.ui.contexts.DebugModelContextBindingManager.launchesTerminated(DebugModelContextBindingManager.java:341)
at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.run(LaunchManager.java:303)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.notify(LaunchManager.java:256)
at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:991)
at org.eclipse.debug.core.Launch.fireTerminate(Launch.java:401)
at org.eclipse.debug.core.Launch.handleDebugEvents(Launch.java:571)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1076)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1110)
at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:381)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 

!ENTRY org.eclipse.jdt.debug 4 125 2010-02-04 13:21:37.593!MESSAGE Internal error logged from JDI Debug: !STACK 1org.eclipse.debug.core.DebugException: Invalid stack frame at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingStackFrame(JDIStackFrame.java:1010) at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingThisObject(JDIStackFrame.java:700) at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getThis(JDIStackFrame.java:1058) at org.eclipse.jdt.internal.debug.ui.JavaDebugHover.getHoverInfo2(JavaDebugHover.java:328) at org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover.getHoverInfo2(BestMatchHover.java:129) at org.eclipse.jdt.internal.ui.text.java.hover.JavaEditorTextHoverProxy.getHoverInfo2(JavaEditorTextHoverProxy.java:82) at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:166)!SUBENTRY 1 org.eclipse.jdt.debug 4 100 2010-02-04 13:21:37.625!MESSAGE Invalid stack frame


!ENTRY org.eclipse.debug.core 4 2 2010-02-04 13:22:19.250!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".!STACK 0org.eclipse.swt.SWTException: Device is disposed at org.eclipse.swt.SWT.error(SWT.java:3884) at org.eclipse.swt.SWT.error(SWT.java:3799) at org.eclipse.swt.SWT.error(SWT.java:3770) at org.eclipse.swt.widgets.Display.error(Display.java:1187) at org.eclipse.swt.widgets.Display.asyncExec(Display.java:655) at org.eclipse.debug.internal.ui.contexts.DebugModelContextBindingManager.launchesTerminated(DebugModelContextBindingManager.java:341) at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.run(LaunchManager.java:303) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.notify(LaunchManager.java:256) at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:991) at org.eclipse.debug.core.Launch.fireTerminate(Launch.java:401) at org.eclipse.debug.core.Launch.handleDebugEvents(Launch.java:571) at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1076) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1110) at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:381) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

!ENTRY org.eclipse.debug.core 4 120 2010-02-04 13:22:19.250!MESSAGE An exception occurred during launch change notification.!STACK 0org.eclipse.swt.SWTException: Device is disposed at org.eclipse.swt.SWT.error(SWT.java:3884) at org.eclipse.swt.SWT.error(SWT.java:3799) at org.eclipse.swt.SWT.error(SWT.java:3770) at org.eclipse.swt.widgets.Display.error(Display.java:1187) at org.eclipse.swt.widgets.Display.asyncExec(Display.java:655) at org.eclipse.debug.internal.ui.contexts.DebugModelContextBindingManager.launchesTerminated(DebugModelContextBindingManager.java:341) at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.run(LaunchManager.java:303) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.internal.core.LaunchManager$LaunchesNotifier.notify(LaunchManager.java:256) at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:991) at org.eclipse.debug.core.Launch.fireTerminate(Launch.java:401) at org.eclipse.debug.core.Launch.handleDebugEvents(Launch.java:571) at org.eclipse.debug.core.DebugPlugin$EventNotifier.run(DebugPlugin.java:1076) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.debug.core.DebugPlugin$EventNotifier.dispatch(DebugPlugin.java:1110) at org.eclipse.debug.core.DebugPlugin$EventDispatchJob.run(DebugPlugin.java:381) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Developer
austinfrance
Posts: 65
Registered: ‎01-05-2010
My Device: Not Specified

Re: Eclipse + Java SDK 5.0.14 - single step broken

Deleting the workspace and creating a new one seems to have fixed single step.