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

Bug 443312

Summary: [GTK/Linux] IllegalArgumentException in ToolBar.indexOf
Product: [Eclipse Project] Platform Reporter: Thomas Singer <eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, ericwill
Version: 4.3.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Thomas Singer CLA 2014-09-04 09:15:17 EDT
3 different users of SmartGit running on an amd64 architecture reported following exception:

java.lang.IllegalArgumentException
	at org.eclipse.swt.SWT.error(SWT.java:4378)
	at org.eclipse.swt.SWT.error(SWT.java:4312)
	at org.eclipse.swt.SWT.error(SWT.java:4283)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:481)
	at org.eclipse.swt.widgets.ToolBar.indexOf(ToolBar.java:437)
	at org.eclipse.swt.widgets.ToolBar.computeTabGroup(ToolBar.java:189)
	at org.eclipse.swt.widgets.Control.traverseGroup(Control.java:5306)
	at org.eclipse.swt.widgets.Control.traverse(Control.java:5289)
	at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:5260)
	at org.eclipse.swt.widgets.Composite.translateTraversal(Composite.java:1579)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3233)
	at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:758)
	at org.eclipse.swt.widgets.ToolBar.gtk_key_press_event(ToolBar.java:404)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2096)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:5467)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4569)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8742)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1243)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2288)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3361)

It is the first exception during the application run and I have no further information.
Comment 1 Alexander Kurtakov CLA 2014-09-10 13:24:10 EDT
Can we get a pure swt code to reproduce the problem?
Comment 2 Thomas Singer CLA 2014-09-10 16:15:28 EDT
I guess not, because I can't reproduce it myself. I just report exceptions that we get reported by SmartGit's automatic bug reporter. Maybe you could add more assertions to limit the possibilities?
Comment 3 Alexander Kurtakov CLA 2016-07-01 05:43:56 EDT
Is this reproducible with Neon?
Comment 4 Thomas Singer CLA 2016-07-01 11:27:42 EDT
If this problem would be reproducible, I would have provided a sample code.
Comment 5 Alexander Kurtakov CLA 2016-07-01 11:33:33 EDT
Ok, let me rephrase. Do you still get such reports with SWT from Neon?
Comment 6 Thomas Singer CLA 2016-07-01 12:14:08 EDT
The latest stacktrace I have is for SWT 4.610:

java.lang.IllegalArgumentException
	at org.eclipse.swt.SWT.error(SWT.java:4484)
	at org.eclipse.swt.SWT.error(SWT.java:4418)
	at org.eclipse.swt.SWT.error(SWT.java:4389)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
	at org.eclipse.swt.widgets.ToolBar.indexOf(ToolBar.java:460)
	at org.eclipse.swt.widgets.ToolBar.computeTabGroup(ToolBar.java:202)
	at org.eclipse.swt.widgets.Control.traverseGroup(Control.java:5476)
	at org.eclipse.swt.widgets.Control.traverse(Control.java:5459)
	at org.eclipse.swt.widgets.Control.translateTraversal(Control.java:5430)
	at org.eclipse.swt.widgets.Composite.translateTraversal(Composite.java:1636)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3350)
	at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:778)
	at org.eclipse.swt.widgets.ToolBar.gtk_key_press_event(ToolBar.java:425)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1980)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:5631)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:4730)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9439)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1225)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2468)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3441)
	at com.syntevo.q.gui.QSwt.dispatchEvents(SourceFile:343)
	at com.syntevo.smartgit.SaApplicationStarter.openGui(SourceFile:327)
	at com.syntevo.smartgit.SaApplicationStarter.parse(SourceFile:214)
	at com.syntevo.sc.application.ScParsingApplicationStarter.start(SourceFile:61)
	at SmartGit.main(SourceFile:11)
Comment 7 Eric Williams CLA 2018-05-11 09:34:06 EDT
Do you continue to see these reports from 4.7 or 4.8?
Comment 8 Thomas Singer CLA 2018-05-11 11:51:39 EDT
No, because of these problems we are not using ToolBar any more, except of for macOS.
Comment 9 Eric Williams CLA 2018-05-11 12:05:52 EDT
(In reply to Thomas Singer from comment #8)
> No, because of these problems we are not using ToolBar any more, except of
> for macOS.

Okay, closing as WORKSFORME.