Bug 569781 - [GTK] Widget is disposed on Link.gtk_event_after
Summary: [GTK] Widget is disposed on Link.gtk_event_after
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.19   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-17 08:30 EST by Andrey Loskutov CLA
Modified: 2020-12-17 08:30 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2020-12-17 08:30:58 EST
Was fast navigating via ctrl+click in some java code I've got this stack (using 4.19 master):

org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:4875)
	at org.eclipse.swt.SWT.error(SWT.java:4790)
	at org.eclipse.swt.SWT.error(SWT.java:4761)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:555)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:470)
	at org.eclipse.swt.widgets.Control.redraw(Control.java:4540)
	at org.eclipse.swt.widgets.Link.gtk_event_after(Link.java:446)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:2283)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:6754)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:6035)
	at org.eclipse.swt.internal.gtk.GTK.gtk_main_do_event(Native Method)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1527)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(Native Method)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4528)

I can't reproduce, I believe that was too fast dismissal of Ctrl+click popup that caused that. Probably we can check if the widget is already disposed before we redraw that?