Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 318623 - SWT crashes on unhandled exception in tree/table setdata listener
Summary: SWT crashes on unhandled exception in tree/table setdata listener
Status: RESOLVED DUPLICATE of bug 322222
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 11:05 EDT by Lakshmi P Shanmugam CLA
Modified: 2010-08-13 21:36 EDT (History)
2 users (show)

See Also:


Attachments
crash-log (62.35 KB, text/plain)
2010-07-01 11:05 EDT, Lakshmi P Shanmugam CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lakshmi P Shanmugam CLA 2010-07-01 11:05:55 EDT
Created attachment 173225 [details]
crash-log

Run the snippet below.

public class Snippet {
public static void main(String[] args) {
	int size = 100;
	Display display = new Display();
	Shell shell = new Shell(display);
	shell.setLayout(new FillLayout());
	final Table table = new Table(shell, SWT.VIRTUAL);
	table.setHeaderVisible(true);
	table.setItemCount(size);
	final TableColumn column1 = new TableColumn(table, SWT.NONE);
	column1.setText("Key");
	column1.setWidth(200);
	table.addListener(SWT.SetData, new Listener() {
		public void handleEvent(Event e) {
			throw new RuntimeException();
		}
	});
	shell.setSize(shell.computeSize(SWT.DEFAULT, SWT.DEFAULT).x, 300);
	shell.open();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch())
			display.sleep();
	}
	display.dispose();
}
}
Comment 1 Lakshmi P Shanmugam CLA 2010-07-01 11:10:45 EDT
On Windows and Mac, App doesn't crash and exception is printed on the console.
Comment 2 Praveen CLA 2010-07-01 14:24:00 EDT
This looks similar to bug#285749
Comment 3 Silenio Quarti CLA 2010-08-13 21:36:58 EDT
Marking as dup of crash in pango_layout_new() because of pending exception in callin.

*** This bug has been marked as a duplicate of bug 322222 ***