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

Bug 344381

Summary: [SWT_AWT] VM crash when disposing a native control on UI with multiple controls
Product: [Eclipse Project] Platform Reporter: Christopher Deckers <chrriis>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: lshanmug
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Tesrt case showing the crash none

Description Christopher Deckers CLA 2011-04-30 13:57:53 EDT
Build Identifier: SWT 3.7M7

When more than one native control is present on the UI, disposing them crashes the VM. The native controls I am using are Browser widgets with default runtime (Safari).

Result in console: Invalid memory access of location 0x20 eip=0x98843ed7

VM options: -XstartOnFirstThread -d32


Reproducible: Always

Steps to Reproduce:
See attached test case.
Comment 1 Christopher Deckers CLA 2011-04-30 14:01:04 EDT
Created attachment 194427 [details]
Tesrt case showing the crash

There is a constant that allows to test with other number of component. With 1, a component can be added/disposed/added/etc without any issues.
Comment 2 Lakshmi P Shanmugam CLA 2013-07-22 06:46:02 EDT
I tried this with 4.3 build and do not see any crash. The snippet works fine, though a NPE is printed in the console.
Can you pls. try this with the 4.3 build and see if it crashes?
Comment 3 Lakshmi P Shanmugam CLA 2013-08-19 06:43:23 EDT
Closing report as it is not reproducible with 4.3. Please reopen if you can reproduce the crash.