| Summary: | SWT crashes on unhandled exception in tree/table setdata listener | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lakshmi P Shanmugam <lshanmug> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | RESOLVED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | pinnamur, Silenio_Quarti | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux-GTK | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
On Windows and Mac, App doesn't crash and exception is printed on the console. This looks similar to bug#285749 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 *** |
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(); } }