Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344849 - A BrowserFunction returning an array crashes when using IE9
Summary: A BrowserFunction returning an array crashes when using IE9
Status: CLOSED DUPLICATE of bug 343932
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.0   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-05 10:43 EDT by ChristophK CLA
Modified: 2011-06-14 10:44 EDT (History)
3 users (show)

See Also:


Attachments
Test Case (901 bytes, text/plain)
2011-05-05 10:44 EDT, ChristophK CLA
no flags Details
Error report generated by the jvm (14.92 KB, text/plain)
2011-05-05 10:48 EDT, ChristophK CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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?