Bug 279680 - Crash in org.eclipse.swt.browser.IE mshtml.dll when displaying javadoc tool tip
Summary: Crash in org.eclipse.swt.browser.IE mshtml.dll when displaying javadoc tool tip
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-06-09 15:26 EDT by Matt McHenry CLA
Modified: 2019-12-17 04:52 EST (History)
7 users (show)

See Also:


Attachments
JVM crash log (17.84 KB, text/plain)
2009-06-09 15:26 EDT, Matt McHenry CLA
no flags Details
JVM crash log (3.4.0) (16.20 KB, text/plain)
2009-06-09 16:19 EDT, Matt McHenry CLA
no flags Details
Screenshot of installed IE add-ons (61.05 KB, image/png)
2009-07-15 12:50 EDT, Matt McHenry CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt McHenry CLA 2009-06-09 15:26:19 EDT
Created attachment 138713 [details]
JVM crash log

Build ID: 20090605-1215

Steps To Reproduce:
1. extract eclipse-java-galileo-RC3-win32.zip
2. run eclipse.exe
3. create a new workspace
4. create a new java project
5. create a new Main class with a main method
6. type 'System.out.println("hello");' in the main method
7. hover the mouse over the 'println' method from step 6
8. JVM crash


More information:
I've recently installed Vista SP 2 and suspect something in there is the culprit.  Also happens on 3.4.0.
Comment 1 Felipe Heidrich CLA 2009-06-09 15:35:58 EDT
Works for me on Windows Vista SP1

Note: SP2 for Vista was released recently (May 26th, 2009)
Comment 2 Matt McHenry CLA 2009-06-09 16:17:36 EDT
Yep, that's it.  I used system restore to roll back to the pre-SP2 restore point, and now both 3.4.0 and 3.5rc3 are working again.
Comment 3 Matt McHenry CLA 2009-06-09 16:19:58 EDT
Created attachment 138718 [details]
JVM crash log (3.4.0)

In case it's different in any interesting way.
Build id: I20080617-2000
Comment 4 Felipe Heidrich CLA 2009-06-10 10:02:08 EDT
I had SP2 installed on a vista box in our lab and I could not reproduce the bug in there.
Comment 5 Steve Northover CLA 2009-06-10 11:49:58 EDT
Crash in org.eclipse.swt.internal.ole.win32.IPersistStreamInit.InitNew().  FH, did you not do some work in this area?
Comment 6 Felipe Heidrich CLA 2009-06-10 12:24:35 EDT
(In reply to comment #5)
> Crash in org.eclipse.swt.internal.ole.win32.IPersistStreamInit.InitNew().  FH,
> did you not do some work in this area?

Not at all. 
This bug is not in your OLE implemention, IE is just using our OLE layer to make some vtbl calls (there is no swt code in IPersistStreamInit.InitNew(), it is just one vtbl call). 
The crash happens here:

IDispatch dispatchDocument = pVarResult.getDispatch();
int /*long*/ [] ppvObject = new int /*long*/ [1];
int result = dispatchDocument.QueryInterface(COM.IIDIPersistStreamInit, ppvObject);
if (result == OS.S_OK) {
	IPersistStreamInit persistStreamInit = new IPersistStreamInit(ppvObject[0]);
	if (persistStreamInit.InitNew() == OS.S_OK) {
		persistStreamInit.Load(ppstm[0]);
	}
	persistStreamInit.Release();
}

The code looks fine (not leaks, always testing for S_OK before proceeding to the next call).

IMO this is a bug in mshtml.dll 
Comment 7 Matt McHenry CLA 2009-06-18 08:44:08 EDT
(In reply to comment #6)
> IMO this is a bug in mshtml.dll 

So what are the next steps?  I poked around a bit on microsoft.com and did some googling, and there's no obvious way to submit a bug report that doesn't involve US$35 or snail mail (seriously).
Comment 8 Grant Gayed CLA 2009-07-15 12:25:18 EDT
Sorry for the late response, but I wanted to try installing SP2 on my Vista.  I don't see the problem (installed SP2, tested, installed subsequent updates, tested, installed IE8, tested).

One thing worth trying on your end is disabling all of IE's plug-ins since one of them could be interfering.  In IE8 this is done in Tools > Manage Add-ons.  Please update here whether this makes any difference for you.
Comment 9 Matt McHenry CLA 2009-07-15 12:50:54 EDT
Created attachment 141668 [details]
Screenshot of installed IE add-ons

Since installing and uninstalling SP2 takes a couple of hours, and I don't have a spare machine to test on, I'm not sure when I'll have time to do that.  In the mean time, here's a list of the add-ons that I have installed, in case that helps.
Comment 10 Grant Gayed CLA 2010-05-27 11:22:52 EDT
Adjusting importance, as it appears to not be an swt bug, and is not widespread.
Comment 11 Felipe Heidrich CLA 2010-12-02 10:00:52 EST
*** Bug 331263 has been marked as a duplicate of this bug. ***
Comment 12 Eclipse Genie CLA 2019-12-16 14:59:48 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.