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

Bug 325288

Summary: [Browser-Mozilla] Browser.setText(s) crashes the JVM for some contents
Product: [Eclipse Project] Platform Reporter: Christopher Deckers <chrriis>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: CLOSED WONTFIX QA Contact:
Severity: critical    
Priority: P3 CC: irbull, peter
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Test case showing the crash
none
VM crash log none

Description Christopher Deckers CLA 2010-09-14 15:54:03 EDT
Build Identifier: SWT 3.6

Certain HTML (generally quite long) crash the JVM when loaded in an embedded XULRunner (Mozilla style).
I tested on Windows (1.9.0.3) and Linux (1.9.2.8), where IE and Webkit can load the content but XULRunner crashes.
See attached test case.

Reproducible: Always

Steps to Reproduce:
1. String s = some_specific_html;
2. Browser.setText(s)
Comment 1 Christopher Deckers CLA 2010-09-14 15:55:24 EDT
Created attachment 178871 [details]
Test case showing the crash
Comment 2 Christopher Deckers CLA 2010-09-14 15:58:13 EDT
In the test case, set IS_MOZILLA to true to get the crash.
Comment 3 Grant Gayed CLA 2010-09-14 17:10:52 EDT
I don't see a crash with this snippet, tried on Windows and Linux with a few different versions.  Can you think of any other factors that could be relevant?  Do you get a crash log?
Comment 4 Christopher Deckers CLA 2010-09-14 17:39:28 EDT
Created attachment 178885 [details]
VM crash log

Hi Grant,

Did you change IS_MOZILLA to true?

I do have a crash log on Windows, which I attach. The error on Linux is different (Segmentation fault if I remember correctly, I don't know where the crash log ends up on that box...)

Let me know if there is anything I can do to help.
Comment 5 Christopher Deckers CLA 2010-09-14 18:02:12 EDT
I tried again on Windows with SWT 3707 (I20100914) with same results.

On Linux, I confirm that with 3.6 I get a "Segmentation fault" in the console, with no sign of a crash log.
Comment 6 Peter Severin CLA 2011-07-22 02:48:34 EDT
Not sure if this is the same issue. I get a segmentation fault while using MPC with embedded browser. Here's the console output:

No bp log location saved, using default.
[000:001] Browser XEmbed support present: 1
[000:001] Browser toolkit is Gtk2.
[000:001] Using Gtk2 toolkit
[000:005] Warning(optionsfile.cc:22): Load: Could not open file
[000:005] No bp log location saved, using default.
[000:006] Browser XEmbed support present: 1
[000:006] Browser toolkit is Gtk2.
[000:006] Using Gtk2 toolkit
Segmentation fault


Happens with latest Eclipse Indigo. It happens for me every time. Here are the staps:

1. Launch Eclipse Marketplace
2. Choose the link "Browser for more solutions".
3. In embedded browser choose Subclipse plug-in on the left and then click "Install".
4. The MPC dialog pop's up and then Eclipse crashes

I am on Ubuntu 10.04 using the latest Eclipse for RPC Indigo fresh install.
Comment 7 Alexander Kurtakov CLA 2017-07-04 13:33:25 EDT
Mozilla is removed for 4.8.