Bug 368758 - Eclipse crashes when displaying Javadoc with non-existent image tag
Summary: Eclipse crashes when displaying Javadoc with non-existent image tag
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2012-01-16 14:02 EST by Alexandre Brasil CLA
Modified: 2013-05-08 15:16 EDT (History)
3 users (show)

See Also:


Attachments
hs_err_pidXXXX.log file (27.57 KB, text/plain)
2012-01-16 14:04 EST, Alexandre Brasil CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Brasil CLA 2012-01-16 14:02:59 EST
Build Identifier: Version: Indigo Service Release 1 Build id: 20110916-0149

When a Javadoc comment has an "<img />" tag in it that points to an image that doesn't exist, Eclipse crashes. Nothing is written on the log, but an hs_err_pidXXXXX.log file is created on the executing directory, stating that the error ocurred inside native code (gdiplus.dll), on what seems to be a method to discover the image dimensions (GdipImageGetFrameDimensionsList).

I've tried executing Eclipse under several JVM and on three different machines, all leading to the same result (Eclipse crashing).

I discovered this bug when I updated the Mockito library of one of my projects. Apparently since version 1.8.0 this library has a logo image on its javadocs, which makes my Eclipse crash everytime I accidentaly hover said classes or try to make a static import. I was able to work around this situation setting maven to download the javadocs as well, but so far I have no workaround for local classes that might use an image on their javadocs.

Reproducible: Always

Steps to Reproduce:
1. On a Java project, add a JavaDoc comment to a class or method, adding the following tag on the text: "<img src='anythinggoes.jpg'/>"
2. Hover the annotated method/class to display its JavaDoc
3. Eclipse crashes.
Comment 1 Alexandre Brasil CLA 2012-01-16 14:04:24 EST
Created attachment 209582 [details]
hs_err_pidXXXX.log file

One of the several hs_err_pidXXXX.log files created when Eclipse crashes from this bug.
Comment 2 Ayushman Jain CLA 2012-01-16 16:07:59 EST
Looks like an SWT issue. Moving to SWT for investigation.
Comment 3 Felipe Heidrich CLA 2012-01-16 16:27:25 EST
it seems like a bug in Windows itself. Grant, have you seen this before ?
Comment 4 Grant Gayed CLA 2012-01-18 15:02:09 EST
The steps to reproduce the problem are quite clear, but they don't crash for me.  The Browser shows the expected image of the red-X where the missing image would appear.

Which IE version do you have installed?  Also, I notice that you have many non-typical .dll's loaded (the ClearCase ones, and others).  Can you see if this problem still happens for you in a basic eclipse install that has no additional plug-ins, etc.?
Comment 5 Grant Gayed CLA 2013-05-08 15:16:32 EDT
Timed out, closing report.  Please reopen if you have additional info.