Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Infinite loop
icon9.gif  Infinite loop [message #556271] Tue, 31 August 2010 14:44 Go to next message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
My application is freezing when switching between the screens often enough. After finally managing to get a thread dump, the stack looks like this:

"main" prio=10 tid=0x080fd000 nid=0x6dd3 runnable [0xb6cda000]
   java.lang.Thread.State: RUNNABLE
    at org.eclipse.swt.internal.gtk.OS._gtk_widget_size_allocate(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_widget_size_allocate(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.custom.ScrolledComposite$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.custom.ScrolledComposite$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.custom.ScrolledComposite$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.custom.ScrolledComposite$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.custom.ScrolledComposite$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.ScrolledCompositeLayout.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.updateLayout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.widgets.Composite.layout(Unknown Source)
    at org.eclipse.swt.custom.ScrolledComposite$3.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setSize(Unknown Source)
    at org.eclipse.swt.widgets.Control.pack(Unknown Source)
    at org.eclipse.swt.widgets.Control.pack(Unknown Source)
    at xscalawt.XScalaWT$$anon$2.controlResized(XScalaWT.scala:148)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Composite.setBounds(Unknown Source)
    at org.eclipse.swt.widgets.Control.setBounds(Unknown Source)
    at org.eclipse.swt.custom.CTabFolder.setSelection(Unknown Source)
    at org.eclipse.swt.custom.CTabFolder.setSelection(Unknown Source)
    at scsadmin.DetailsViewPresenterManager.selectNewTab(DetailsPresenterManager.scala:205)
    at scsadmin.DetailsViewPresenterManager.initialize(DetailsPresenterManager.scala:219)
    at scsadmin.DetailsViewPresenterManager.initialize(DetailsPresenterManager.scala:211)
    at scsadmin.AppConductor.selectNode(AppConductor.scala:41)
    at scsadmin.NodesTreeScreen.selectNewNode(NodesTreeScreen.scala:193)
    at scsadmin.NodesTreeScreen.selectedNodeChanged(NodesTreeScreen.scala:181)
    at scsadmin.NodesTreeScreen$$anonfun$6$$anonfun$apply$1.apply(NodesTreeScreen.scala:33)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at xscalawt.XScalaWTX$$anon$1.selectionChanged(XScalaWTX.scala:52)
    at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
    at org.eclipse.jface.util.SafeRunnable$1.run(SafeRunnable.java:128)
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
    at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160)
    at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2132)
    at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1160)
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)
    at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
    at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at scsadmin.BootStrapper$.main(BootStrapper.scala:115)
    at scsadmin.BootStrapper.main(BootStrapper.scala)
    at scsadmin.JavaMain.main(JavaMain.java:9)
    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:597)
    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)

   Locked ownable synchronizers:
    - None


It looks like there is an infinite loop in the SWT library. Or possibly only in GTK 3.6 version, since I can't reproduce the problem on Windows or Mac OS X. Searching in bugs.eclipse.org doesn't find anything suitable. Any ideas for a workaround?

[Updated on: Tue, 31 August 2010 14:48]

Report message to a moderator

Re: Infinite loop [message #556438 is a reply to message #556271] Wed, 01 September 2010 11:01 Go to previous messageGo to next message
Lakshmi ShanmugamFriend
Messages: 276
Registered: July 2009
Location: India
Senior Member
Hi,

This could be a bug in SWT. Can you extract a testcase from your application to reproduce this behavior? Please open a bug report with swt ( https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=SWT ) so that this can be investigated.

Thanks,


Lakshmi P Shanmugam
Re: Infinite loop [message #556452 is a reply to message #556438] Wed, 01 September 2010 11:58 Go to previous message
Alexey Romanov is currently offline Alexey RomanovFriend
Messages: 263
Registered: May 2010
Senior Member
Lakshmi Shanmugam wrote on Wed, 01 September 2010 07:01
Can you extract a testcase from your application to reproduce this behavior?

That will be difficult, since the GUI is automatically generated (based on classes which depend on a third-party framework). But I'll try to.
Previous Topic:SWT/JFace performance gotchas?
Next Topic:Clipboard problem on Windows
Goto Forum:
  


Current Time: Sun Sep 15 05:33:34 GMT 2019

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

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

Back to the top