Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 69562 - Invalid Stack Frame Errors in log
Summary: Invalid Stack Frame Errors in log
Status: RESOLVED DUPLICATE of bug 70993
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 69828 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-07-07 22:54 EDT by Kevin Barnes CLA
Modified: 2004-08-10 10:34 EDT (History)
1 user (show)

See Also:


Attachments
My log file (112.71 KB, text/plain)
2004-07-07 23:02 EDT, Kevin Barnes CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Barnes CLA 2004-07-07 22:54:21 EDT
I've been getting a lot of these lately. I think they are correlated to a "drop to frame" but I can't 
reproduce them consistently.

Error Jul 07, 2004 16:51:29.595 Internal Error
org.eclipse.debug.core.DebugException: Invalid stack frame
	at 
org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingStackFrame(JDIStackFrame.java:
965)
	at 
org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingMethod(JDIStackFrame.java:226)
	at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.isOutOfSynch(JDIStackFrame.java:880)
	at 
org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.computeJDIAdornmentFlags(JDIModelPresentatio
n.java:831)
	at 
org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getDebugElementImage(JDIModelPresentation.jav
a:797)
	at org.eclipse.jdt.internal.debug.ui.JDIModelPresentation.getImage(JDIModelPresentation.java:637)
	at org.eclipse.debug.internal.ui.LazyModelPresentation.getImage(LazyModelPresentation.java:94)
	at 
org.eclipse.debug.internal.ui.DelegatingModelPresentation.getImage(DelegatingModelPresentation.java:
141)
	at 
org.eclipse.debug.internal.ui.views.DebugViewInterimLabelProvider.getImage(DebugViewInterimLabelPr
ovider.java:58)
	at org.eclipse.jface.viewers.DecoratingLabelProvider.getImage(DecoratingLabelProvider.java:74)
	at org.eclipse.debug.internal.ui.views.launch.LaunchViewer.doUpdateItem(LaunchViewer.java:92)
	at 
org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:83)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:747)
	at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:464)
	at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:
128)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:747)
	at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:1374)
	at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1358)
	at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:1286)
	at 
org.eclipse.debug.internal.ui.views.DebugViewDecoratingLabelProvider.labelsComputed(DebugViewDec
oratingLabelProvider.java:67)
	at 
org.eclipse.debug.internal.ui.views.DebugViewLabelDecorator$1.run(DebugViewLabelDecorator.java:
135)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2748)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2538)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)
Comment 1 Kevin Barnes CLA 2004-07-07 23:02:16 EDT
Created attachment 13039 [details]
My log file
Comment 2 Kevin Barnes CLA 2004-07-08 10:26:32 EDT
another stack trace. The thread that "was not suspended" never was suspended. The error occured 
when I resumed the main thread.

Error Jul 08, 2004 09:07:23.50 Internal error logged from JDI Debug: 
com.sun.jdi.IncompatibleThreadStateException: Thread was not suspended
	at org.eclipse.jdi.internal.ThreadReferenceImpl.frames(ThreadReferenceImpl.java:192)
	at org.eclipse.jdi.internal.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:140)
	at org.eclipse.jdt.internal.debug.core.model.JDIThread.getUnderlyingFrame(JDIThread.java:571)
	at 
org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingStackFrame(JDIStackFrame.java:
971)
	at 
org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.getUnderlyingMethod(JDIStackFrame.java:226)
	at org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.isNative(JDIStackFrame.java:764)
	at 
org.eclipse.jdt.internal.debug.core.model.JDIStackFrame.supportsDropToFrame(JDIStackFrame.java:552)
	at 
org.eclipse.jdt.internal.debug.ui.actions.DropToFrameButton.selectionChanged(DropToFrameButton.jav
a:62)
	at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:230)
	at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:297)
	at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:308)
	at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159)
	at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
	at org.eclipse.core.runtime.Platform.run(Platform.java:747)
	at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157)
	at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1394)
	at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1093)
	at 
org.eclipse.debug.internal.ui.views.AbstractDebugEventHandler.selectAndReveal(AbstractDebugEventHa
ndler.java:155)
	at 
org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleResumeEvent(LaunchView
EventHandler.java:148)
	at 
org.eclipse.debug.internal.ui.views.launch.LaunchViewEventHandler.doHandleDebugEvents(LaunchView
EventHandler.java:96)
	at 
org.eclipse.debug.internal.ui.views.AbstractDebugEventHandler$1.run(AbstractDebugEventHandler.java:
70)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2748)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2538)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
	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:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
	at org.eclipse.core.launcher.Main.run(Main.java:644)
	at org.eclipse.core.launcher.Main.main(Main.java:628)

Comment 3 Bob Kerns CLA 2004-07-12 03:18:12 EDT
I get a *LOT* of these. I've got one that's reproducable at the moment -- a 
ClassCastException in a callback. Here's my stack; yours looks as below. This 
is getting to be a serious pain. (One of several reasons I think 3.0 is much 
less stable than M9 was!). I'm going to have to introduce print statements or 
resort to trial and error, since this renders the debugger useless.

The DebugException happens when my program hits the ClassCastException, and 
thereafter, clicking on any of the frames in this stack trace stimulates the 
error. For comparison purposes, I suspended another thread -- it is behaving 
properly, while this one continues to display this problem.

I'm running JDK 1.4.2_05 (both for Eclispe and my app), the official 3.0 
release of Eclipse. I have the Cheetah feature disabled (because of too many 
AST errors). I'm on Windows XP.

Thread [Worker] (Suspended (exception java.lang.ClassCastException))
	com.elo.applet.editor.TabWizard$1.entryAdded
(com.elo.applet.controller.Directory, java.lang.String, java.lang.Object) 
line: 185
	com.elo.applet.controller.BasicDirectory.addEntry(java.lang.String, 
java.lang.Object) line: 83
	com.elo.applet.controller.StandardController$2.modify
(com.elo.applet.controller.Directory, java.lang.String) line: 451
	com.elo.applet.controller.StandardController$2
(com.elo.applet.controller.StandardController$PathAction).execute
(java.lang.String[]) line: 389
	com.elo.applet.controller.StandardController$2
(com.elo.applet.controller.StandardController$PathAction).execute
(java.lang.String) line: 378
	com.elo.applet.controller.StandardController.setValue
(java.lang.String, java.lang.Object) line: 455
	com.elo.applet.EloApplet$1
(com.elo.applet.controller.ProxyController).setValue(java.lang.String, 
java.lang.Object) line: 247
	com.elo.applet.editor.Wizard$2
(com.elo.applet.controller.ProxyController).setValue(java.lang.String, 
java.lang.Object) line: 247
	com.elo.applet.view.View$2
(com.elo.applet.controller.ProxyController).setValue(java.lang.String, 
java.lang.Object) line: 247
	com.elo.applet.view.SelectProjectView$4.construct() line: 375
Comment 4 Kevin Barnes CLA 2004-07-12 09:59:54 EDT
*** Bug 69828 has been marked as a duplicate of this bug. ***
Comment 5 Kevin Barnes CLA 2004-08-10 10:34:01 EDT

*** This bug has been marked as a duplicate of 70993 ***