Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334989

Summary: XDebug - AssertionFailedException: release was requested on a model that was not being managed
Product: z_Archived Reporter: ludovic danigo <ludovic>
Component: PDTAssignee: PHP Debug <php.debug-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3 CC: brobie, dave, dkingofpa, forums, jon.lennryd, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description ludovic danigo CLA 2011-01-21 05:12:48 EST
What steps will reproduce the problem?
1. Will debugging
2. Hopping through a same script if fine
3. Bug happens when calling a method on another class in a different file


-- Error Details --
Date: Fri Jan 21 11:03:16 CET 2011
Message: An internal error has occurred.
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Plugin: org.eclipse.ui
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.php.product


Exception Stack Trace:
org.eclipse.wst.sse.core.internal.util.Assert$AssertionFailedException: release was requested on a model that was not being managed
	at org.eclipse.wst.sse.core.internal.util.Assert.isNotNull(Assert.java:124)
	at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.releaseFromEdit(ModelManagerImpl.java:1799)
	at org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.releaseFromEdit(ModelManagerImpl.java:1761)
	at org.eclipse.wst.sse.core.internal.model.AbstractStructuredModel.releaseFromEdit(AbstractStructuredModel.java:1044)
	at org.eclipse.wst.xml.core.internal.document.DOMModelImpl.releaseFromEdit(DOMModelImpl.java:804)
	at org.eclipse.wst.html.core.internal.document.DOMStyleModelImpl.releaseFromEdit(DOMStyleModelImpl.java:37)
	at org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(StructuredTextEditor.java:1848)
	at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.doSetInput(PHPStructuredEditor.java:2338)
	at org.eclipse.ui.texteditor.AbstractTextEditor.setInputWithNotify(AbstractTextEditor.java:4120)
	at org.eclipse.ui.texteditor.AbstractTextEditor.setInput(AbstractTextEditor.java:4142)
	at org.eclipse.ui.internal.EditorReference.setInput(EditorReference.java:522)
	at org.eclipse.ui.internal.WorkbenchPage.reuseEditor(WorkbenchPage.java:2662)
	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(SourceLookupFacility.java:280)
	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.display(SourceLookupFacility.java:219)
	at org.eclipse.debug.ui.DebugUITools.displaySource(DebugUITools.java:792)
	at org.eclipse.debug.internal.ui.elements.adapters.StackFrameSourceDisplayAdapter$SourceDisplayJob.runInUIThread(StackFrameSourceDisplayAdapter.java:155)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3515)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3164)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
	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:369)
	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:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:616)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
Comment 1 David King CLA 2011-01-25 11:39:23 EST
I get this a lot as well.  I work around it by just manually opening the other file.
Comment 2 ludovic danigo CLA 2011-01-25 11:44:43 EST
Well I do that too ... until it stops working at all. That is three/four files hops. But not surprising given the second class citizenship of Xdebug in PDT ...
Comment 3 Dave CLA 2011-02-03 16:34:09 EST
I am getting this error - is there any fix?
Comment 4 Ben Robie CLA 2011-02-04 10:13:21 EST
Upgrade to the milestone release, that solved the problem for me:
The update site: http://download.eclipse.org/tools/pdt/updates/2.2/milestones
Comment 5 ludovic danigo CLA 2011-02-11 06:23:27 EST
I confirm it indeed works correctly with the latest milestone.
I take the liberty to mark it as solved.

Many thanks to the devs for fixing that.
Comment 6 Jon Lennryd CLA 2011-03-03 04:30:06 EST
(In reply to comment #5)
> I confirm it indeed works correctly with the latest milestone.
> I take the liberty to mark it as solved.
> 
> Many thanks to the devs for fixing that.

I have the same problem, please tell me how I install/update with the latest milestone, I am new to this! Running Eclipse PHP on windows 7.
 
Odd thing is that my Eclipse-xDebug configuration ran smoothly until today, and the only thing I know has changed since last time is an updated version of firefox. However, the same problem appears if I choose internet explorer as web browser for eclipse, so it is not related. Any clues?

Thanks for any help,
Jon
Comment 7 Ventzy Mising name CLA 2011-06-06 05:45:27 EDT
Milestone fixes my problem too.

To update PDT choose Help -> Install new software... then click Add button to add repository with url "http://download.eclipse.org/tools/pdt/updates/2.2/milestones". After that follow the update procedure.
Comment 8 Kalin CLA 2011-08-01 10:15:39 EDT
No longer reproducible.
Please, update pdt first.
Closing...