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

Bug 327711

Summary: [LTTng] SWTException (widget is disposed) problem
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch for asyncExec problems
fchouinard: iplog+
patch for asyncExec problems fchouinard: iplog+

Description Francois Chouinard CLA 2010-10-13 16:15:07 EDT
The various calls to asyncExec() don't always check if the widget is disposed before performing their update.

This results in SWT exceptions when the widget is canned before the UI request could be serviced.
Comment 1 Bernd Hufmann CLA 2010-10-13 16:24:50 EDT
Created attachment 180825 [details]
patch for asyncExec problems

This patch fixes all occurrences of org.eclipse.swt.SWTException caused by missing checks before using asyncExec() and within asyncExec() on a given display.

This patch is for the Helios branch.
Comment 2 Bernd Hufmann CLA 2010-10-13 16:26:53 EDT
Created attachment 180826 [details]
patch for asyncExec problems

This patch is based on the patch provided for the Helios branch. It fixes additional asyncExec() problems that only exist in the Indigo branch.
Comment 3 Francois Chouinard CLA 2010-10-13 17:35:56 EDT
Comment on attachment 180825 [details]
patch for asyncExec problems

Patch committed
Comment 4 Francois Chouinard CLA 2010-10-13 17:36:14 EDT
Comment on attachment 180826 [details]
patch for asyncExec problems

Patch committed
Comment 5 Francois Chouinard CLA 2010-10-13 17:36:44 EDT
Patches committed in Helios and Indigo.

Thanks Bernd,
/fc
Comment 6 Francois Chouinard CLA 2011-07-22 14:51:11 EDT
Delivered with 0.7