Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problem when closing MPart in RAP e4 the whole application crash(Closing of RAP e4 MPart crash the instance of the application)
Problem when closing MPart in RAP e4 the whole application crash [message #1731690] Mon, 09 May 2016 10:07 Go to next message
Eclipse UserFriend
Hello, I have a problem when closing MPart in Eclipse RAP e4.

From an MPart named InitView, I open MyView using either
partService.showPart(MyView.ID, PartState.ACTIVATE);
or
String id = MyMultiView.ID +Math.random();		

ResourceManager.openView(partService,MyMultiView.ID,id);


But when closing MyView I have this error:
2016-05-09 11:55:47.502:WARN:oejs.ServletHandler:qtp220570133-48: ERROR:  /Bacnet
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3658)
	at org.eclipse.swt.SWT.error(SWT.java:3581)
	at org.eclipse.swt.SWT.error(SWT.java:3552)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:1038)
	at org.eclipse.swt.widgets.Widget.getDisplay(Widget.java:416)
	at org.eclipse.swt.widgets.Widget.isValidThread(Widget.java:993)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:976)
	at org.eclipse.swt.widgets.Control.getParent(Control.java:218)
	at org.eclipse.rap.rwt.internal.lifecycle.ControlLCAUtil.renderParent(ControlLCAUtil.java:142)
	at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.renderReparentControls(DisplayLCA.java:175)
	at org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.render(DisplayLCA.java:92)
	at org.eclipse.rap.rwt.internal.lifecycle.Render.execute(Render.java:29)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.continueLifeCycle(RWTLifeCycle.java:149)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.sleep(RWTLifeCycle.java:223)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:1257)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4$1.eventLoopIdle(PartRenderingEngine.java:1091)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1117)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:994)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)
	at org.eclipse.rap.e4.E4EntryPointFactory.createWorkbench(E4EntryPointFactory.java:85)
	at org.eclipse.rap.e4.E4EntryPointFactory.access$0(E4EntryPointFactory.java:58)
	at org.eclipse.rap.e4.E4EntryPointFactory$1.createUI(E4EntryPointFactory.java:49)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:171)
	at org.eclipse.rap.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:283)
	at java.lang.Thread.run(Thread.java:745)
	at org.eclipse.rap.rwt.internal.lifecycle.UIThread.run(UIThread.java:104)


It crashes the whole RAP application... With no information in the error log on which widget is disposed.
By using:
@Focus
void grantFocus() {
	System.out.println("Set focus init");
        scrolledComposite.setFocus();
	System.out.println("post focus");
}

I can see that the focus is performed on the parent MPart = InitView, but then it crashes!
Any idea ?

[Updated on: Mon, 09 May 2016 10:09] by Moderator

Report message to a moderator

Re: Problem when closing MPart in RAP e4 the whole application crash [message #1731693 is a reply to message #1731690] Mon, 09 May 2016 10:27 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
please file a bugzilla with a simple snippet to reproduce the issue and
we will address it as soon as possible.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem when closing MPart in RAP e4 the whole application crash [message #1731694 is a reply to message #1731690] Mon, 09 May 2016 10:39 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
.... ok. I can reproduce the error with a simple JUint test case by calling:
------
child.setParent( parent );
child.dispose();
------
Will be fixed in RAP 3.1RC1.
Best,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem when closing MPart in RAP e4 the whole application crash [message #1731699 is a reply to message #1731694] Mon, 09 May 2016 11:23 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the reply.
So there is some kind of dependency between the MPart ?
Even if the way I open MyView seems independent of InitView (only the partService is involved).

Did you fill out a bugzilla ? as you find a way to reproduce the error. Or you want me to do it.
When will be released RC1 ? Is there a way to avoid this bug easily ?

Re: Problem when closing MPart in RAP e4 the whole application crash [message #1731701 is a reply to message #1731699] Mon, 09 May 2016 11:27 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
RAP 3.1RC1 will be released in 10 days (May 20). There is no easy way to
fix the crash meantime. You don't need to open a bugzilla.
Regards,
Ivan

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Problem when closing MPart in RAP e4 the whole application crash [message #1731702 is a reply to message #1731701] Mon, 09 May 2016 11:33 Go to previous message
Eclipse UserFriend
Ok perfect!
Previous Topic:Sash badget
Next Topic:[RAP E4]Image can't be seen in a treeviewer
Goto Forum:
  


Current Time: Tue Sep 24 18:35:09 GMT 2024

Powered by FUDForum. Page generated in 0.05451 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top