Q7

Can't create native thread exception after 1100 tests executed for Vozone.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.2.16
  • Fix Version/s: 1.2.17
  • Component/s: Runtime
  • Labels:
    None
  • Environment:
    Q7 RCP.
  • Test Mode:
    Manual

Description

After 1100 test executions, tests start to fail because of:

Failed to apply context: unable to create new native thread
  at java.lang.Thread.start0(Native Method)
  at java.lang.Thread.start(Unknown Source)
  at com.xored.q7.debug.runtime.DebugContextProcessor.cleanBreakPoints(DebugContextProcessor.java:180)
  at com.xored.q7.debug.runtime.DebugContextProcessor.apply(DebugContextProcessor.java:50)
  at com.xored.q7.core.ContextTypeManager.apply(ContextTypeManager.java:67)
  at com.xored.q7.ctx.group.impl.GroupContextProcessor.apply(GroupContextProcessor.java:34)
  at com.xored.q7.core.ContextTypeManager.apply(ContextTypeManager.java:67)
  at com.xored.q7.internal.ecl.core.commands.EnterContextService.service(EnterContextService.java:47)
  at org.eclipse.ecl.internal.core.AbstractSession.internalDoExecute(AbstractSession.java:65)
  at org.eclipse.ecl.internal.core.Session$1.run(Session.java:43)
  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Activity

Hide
Andrey Sobolev added a comment - 04/Feb/13 9:42 AM

Also see following in Vozone AUT:

eclipse.buildId=unknown
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Framework arguments:  -product org.vozone.sdt.product.ServiceDesigner -eclipse.keyring C:\develop\workspaces\runtime-q7_22\.metadata\.plugins\org.eclipse.pde.core\vozone7/secure_storage
Command-line arguments:  -product org.vozone.sdt.product.ServiceDesigner -data C:\develop\workspaces\runtime-q7_22/../aut-vozone7 -dev file:C:/develop/workspaces/runtime-q7_22/.metadata/.plugins/org.eclipse.pde.core/vozone7/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -eclipse.keyring C:\develop\workspaces\runtime-q7_22\.metadata\.plugins\org.eclipse.pde.core\vozone7/secure_storage

This is a continuation of log file C:\develop\workspaces\aut-vozone7\.metadata\.bak_6.log
Created Time: 2013-01-31 19:59:04.257

Error
Thu Jan 31 20:28:43 NOVT 2013
Failed to close editor

org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4387)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.SWT.error(SWT.java:4247)
	at org.eclipse.swt.internal.ImageList.copyWithAlpha(ImageList.java:179)
	at org.eclipse.swt.internal.ImageList.set(ImageList.java:409)
	at org.eclipse.swt.internal.ImageList.add(ImageList.java:70)
	at org.eclipse.swt.widgets.ToolItem.updateImages(ToolItem.java:942)
	at org.eclipse.swt.widgets.ToolItem.setImage(ToolItem.java:708)
	at org.eclipse.jface.action.ActionContributionItem.updateImages(ActionContributionItem.java:1045)
	at org.eclipse.jface.action.ActionContributionItem.update(ActionContributionItem.java:783)
	at org.eclipse.jface.action.ActionContributionItem.fill(ActionContributionItem.java:342)
	at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:353)
	at org.eclipse.ui.internal.forms.widgets.FormHeading.updateToolBar(FormHeading.java:800)
	at org.eclipse.ui.forms.widgets.Form.updateToolBar(Form.java:399)
	at org.eclipse.ui.forms.widgets.ScrolledForm.updateToolBar(ScrolledForm.java:202)
	at org.eclipse.ui.forms.MasterDetailsBlock.createContent(MasterDetailsBlock.java:165)
	at org.vozone.sdt.ui.sal.internal.ServiceAtomEditor$AtomEditor.createPartControl(ServiceAtomEditor.java:145)
	at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:241)
	at org.vozone.sdt.ui.commons.editors.ResourceMultipageEditor.addPage(ResourceMultipageEditor.java:393)
	at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:211)
	at org.vozone.sdt.ui.controls.ProcessEditorSupport.doCreateContent(ProcessEditorSupport.java:343)
	at org.vozone.sdt.ui.controls.ProcessEditorSupport.createContent(ProcessEditorSupport.java:331)
	at org.vozone.sdt.ui.sal.internal.ServiceAtomEditor.createContent(ServiceAtomEditor.java:177)
	at org.vozone.sdt.ui.commons.editors.ResourceMultipageEditor.createPages(ResourceMultipageEditor.java:472)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:315)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
	at org.eclipse.ui.internal.PartStack.handleDeferredEvents(PartStack.java:1213)
	at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400)
	at org.eclipse.ui.internal.PartSashContainer.handleDeferredEvents(PartSashContainer.java:1409)
	at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400)
	at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1499)
	at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1489)
	at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1463)
	at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1527)
	at com.xored.q7.ctx.resources.WorkspaceContextProcessor$4.closeEditor(WorkspaceContextProcessor.java:651)
	at com.xored.q7.ctx.resources.WorkspaceContextProcessor$4.run(WorkspaceContextProcessor.java:630)
	at com.xored.q7.internal.runtime.ui.UIRunnable$1.doProcessing(UIRunnable.java:62)
	at com.xored.tesla.swt.events.TeslaEventManager.doProcessing(TeslaEventManager.java:94)
	at com.xored.tesla.swt.aspects.DisplayAspect.ajc$around$com_xored_tesla_swt_aspects_DisplayAspect$1$e269b158(DisplayAspect.aj:71)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:4650)
	at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2702)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.vozone.sdt.product.VozoneApplication.start(VozoneApplication.java:81)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Show
Andrey Sobolev added a comment - 04/Feb/13 9:42 AM Also see following in Vozone AUT:
eclipse.buildId=unknown
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Framework arguments:  -product org.vozone.sdt.product.ServiceDesigner -eclipse.keyring C:\develop\workspaces\runtime-q7_22\.metadata\.plugins\org.eclipse.pde.core\vozone7/secure_storage
Command-line arguments:  -product org.vozone.sdt.product.ServiceDesigner -data C:\develop\workspaces\runtime-q7_22/../aut-vozone7 -dev file:C:/develop/workspaces/runtime-q7_22/.metadata/.plugins/org.eclipse.pde.core/vozone7/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -eclipse.keyring C:\develop\workspaces\runtime-q7_22\.metadata\.plugins\org.eclipse.pde.core\vozone7/secure_storage

This is a continuation of log file C:\develop\workspaces\aut-vozone7\.metadata\.bak_6.log
Created Time: 2013-01-31 19:59:04.257

Error
Thu Jan 31 20:28:43 NOVT 2013
Failed to close editor

org.eclipse.swt.SWTError: No more handles
	at org.eclipse.swt.SWT.error(SWT.java:4387)
	at org.eclipse.swt.SWT.error(SWT.java:4276)
	at org.eclipse.swt.SWT.error(SWT.java:4247)
	at org.eclipse.swt.internal.ImageList.copyWithAlpha(ImageList.java:179)
	at org.eclipse.swt.internal.ImageList.set(ImageList.java:409)
	at org.eclipse.swt.internal.ImageList.add(ImageList.java:70)
	at org.eclipse.swt.widgets.ToolItem.updateImages(ToolItem.java:942)
	at org.eclipse.swt.widgets.ToolItem.setImage(ToolItem.java:708)
	at org.eclipse.jface.action.ActionContributionItem.updateImages(ActionContributionItem.java:1045)
	at org.eclipse.jface.action.ActionContributionItem.update(ActionContributionItem.java:783)
	at org.eclipse.jface.action.ActionContributionItem.fill(ActionContributionItem.java:342)
	at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:353)
	at org.eclipse.ui.internal.forms.widgets.FormHeading.updateToolBar(FormHeading.java:800)
	at org.eclipse.ui.forms.widgets.Form.updateToolBar(Form.java:399)
	at org.eclipse.ui.forms.widgets.ScrolledForm.updateToolBar(ScrolledForm.java:202)
	at org.eclipse.ui.forms.MasterDetailsBlock.createContent(MasterDetailsBlock.java:165)
	at org.vozone.sdt.ui.sal.internal.ServiceAtomEditor$AtomEditor.createPartControl(ServiceAtomEditor.java:145)
	at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:241)
	at org.vozone.sdt.ui.commons.editors.ResourceMultipageEditor.addPage(ResourceMultipageEditor.java:393)
	at org.eclipse.ui.part.MultiPageEditorPart.addPage(MultiPageEditorPart.java:211)
	at org.vozone.sdt.ui.controls.ProcessEditorSupport.doCreateContent(ProcessEditorSupport.java:343)
	at org.vozone.sdt.ui.controls.ProcessEditorSupport.createContent(ProcessEditorSupport.java:331)
	at org.vozone.sdt.ui.sal.internal.ServiceAtomEditor.createContent(ServiceAtomEditor.java:177)
	at org.vozone.sdt.ui.commons.editors.ResourceMultipageEditor.createPages(ResourceMultipageEditor.java:472)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:348)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:315)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
	at org.eclipse.ui.internal.PartStack.handleDeferredEvents(PartStack.java:1213)
	at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400)
	at org.eclipse.ui.internal.PartSashContainer.handleDeferredEvents(PartSashContainer.java:1409)
	at org.eclipse.ui.internal.LayoutPart.deferUpdates(LayoutPart.java:400)
	at org.eclipse.ui.internal.WorkbenchPage.handleDeferredEvents(WorkbenchPage.java:1499)
	at org.eclipse.ui.internal.WorkbenchPage.deferUpdates(WorkbenchPage.java:1489)
	at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1463)
	at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1527)
	at com.xored.q7.ctx.resources.WorkspaceContextProcessor$4.closeEditor(WorkspaceContextProcessor.java:651)
	at com.xored.q7.ctx.resources.WorkspaceContextProcessor$4.run(WorkspaceContextProcessor.java:630)
	at com.xored.q7.internal.runtime.ui.UIRunnable$1.doProcessing(UIRunnable.java:62)
	at com.xored.tesla.swt.events.TeslaEventManager.doProcessing(TeslaEventManager.java:94)
	at com.xored.tesla.swt.aspects.DisplayAspect.ajc$around$com_xored_tesla_swt_aspects_DisplayAspect$1$e269b158(DisplayAspect.aj:71)
	at org.eclipse.swt.widgets.Display.sleep(Display.java:4650)
	at org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle(WorkbenchAdvisor.java:364)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2702)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.vozone.sdt.product.VozoneApplication.start(VozoneApplication.java:81)
	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:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

Hide
Andrey Sobolev added a comment - 04/Feb/13 9:43 AM

Issue should be relevant only to Q7 RCP, since runner and Agent are aware of such situations and support AUT restart.

Show
Andrey Sobolev added a comment - 04/Feb/13 9:43 AM Issue should be relevant only to Q7 RCP, since runner and Agent are aware of such situations and support AUT restart.
Hide
Andrey Sobolev added a comment - 14/Feb/13 2:10 PM

Looks like a SWT widget leak in Vozone.

Show
Andrey Sobolev added a comment - 14/Feb/13 2:10 PM Looks like a SWT widget leak in Vozone.
Hide
Andrey Sobolev added a comment - 18/Feb/13 8:42 PM

Based on profiling sessions, it looks like Vozone has SWT widgets leak.

Since a lot of SWT widgets are leaked without Q7 then using Master Detail pages in vozone.

Show
Andrey Sobolev added a comment - 18/Feb/13 8:42 PM Based on profiling sessions, it looks like Vozone has SWT widgets leak. Since a lot of SWT widgets are leaked without Q7 then using Master Detail pages in vozone.

People

Vote (0)
Watch (0)

Dates

  • Created:
    04/Feb/13 9:42 AM
    Updated:
    18/Feb/13 8:42 PM
    Resolved:
    18/Feb/13 8:42 PM