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

Bug 346533

Summary: Java crashes when on two consecutive calls of setText method in the same Browser
Product: [Eclipse Project] Platform Reporter: Samir <samirbr>
Component: SWTAssignee: Grant Gayed <grant_gayed>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, ericwill
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
error log none

Description Samir CLA 2011-05-19 15:43:31 EDT
Created attachment 196164 [details]
error log

Hello,

When I set an html text to browser the first time by calling setText method it works as expected, but crashes if invoked again.

#  SIGSEGV (0xb) at pc=0xb3ce22f2, pid=4429, tid=3066522480
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode, sharing linux-x86 )
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x162f2]

The crash happens only if called in sequence of the previous browser window. I'm setting an embedded flash file as follow:

<html>
<body style="margin: 38px 0 0; overflow: hidden; background: black;">
<embed width="1280" height="724" allowScriptAccess="sameDomain" name="plugin" scale="default" wmode="transparent" src="/opt/app/loader.swf" FlashVars="base=/opt/4yousee&template=/opt/app/1.swf&duration=10&text=novosparceiros&image=/opt/app/7.png" type="application/x-shockwave-flash">
</body>
</html>

If I set a regular text it works fine.

<html>
<body style="margin: 38px 0 0; overflow: hidden; background: white;">hello world</body>
</html>

Thanks in advance 

Samir
Comment 1 Grant Gayed CLA 2011-05-26 16:40:17 EDT
I'm not able to reproduce your problem, but I'm probably doing something different.  Can you do the following:

1. Try a recent Eclipse 3.7-stream build such as http://download.eclipse.org/eclipse/downloads/drops/S-3.7RC2-201105191138/index.php .  I suggest trying this because it contains a fix for a Browser.setText() crash that was happening with WebKitGTK-backed Browsers, which I see is the case for you.

2. If #1 does not help then please provide a stand-alone snippet that reproduces the crash.  There are many example snippets available at http://www.eclipse.org/swt/snippets/#browser , so you can probably just take one of them and add a few lines to get it to match your case.
Comment 2 Eric Williams CLA 2016-12-20 11:36:13 EST
No response from original reporter in a while. If this issue re-occurs, please file a new bug.