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

Bug 344849

Summary: A BrowserFunction returning an array crashes when using IE9
Product: [Eclipse Project] Platform Reporter: ChristophK <kaser>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: darshan.rajd, grant_gayed, kaser
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Test Case
none
Error report generated by the jvm none

Description ChristophK CLA 2011-05-05 10:43:08 EDT
Build Identifier: 20110301-1815

After upgrading my Internet Explorer to version 9, I can no longer use BrowserFunctions within a SWT Browser that return an Object array. When I do, the jvm crashes with the message:
    EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fef783a2fb, pid=1208, tid=4048
and claims the problematic frame is "jscript9.dll+0xa2fb"

I also built a small test case and tried it with the SWT nightly build (swt-N20110503-2000-win32-win32-x86_64), which resulted in the same problem.

I used the 64-bit version and the Hotspot JRE 1.6.0_23-b05, if that makes any difference.

The crash seems to happen in this line:
    int rc = arrayTypeDispatch.QueryInterface (COM.IIDIDispatchEx, result);
of the method 
    Variant convertToJS (Object value)
of the class
    org.eclipse.swt.browser.WebSite

Reproducible: Always

Steps to Reproduce:
1. Create a BrowserFunction that returns an Object[]-Array in its execute-method
2. Call the function in html-code within a swt browser
3. watch it crash
Comment 1 ChristophK CLA 2011-05-05 10:44:47 EDT
Created attachment 194834 [details]
Test Case

SWT snippet to reproduce the problem
Comment 2 ChristophK CLA 2011-05-05 10:48:01 EDT
Created attachment 194835 [details]
Error report generated by the jvm
Comment 3 Grant Gayed CLA 2011-05-05 17:19:28 EDT
This is fixed in the latest integration build.

*** This bug has been marked as a duplicate of bug 343932 ***
Comment 4 Darshan CLA 2011-06-14 10:44:38 EDT
When will the fixed build be available?