Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346533 - Java crashes when on two consecutive calls of setText method in the same Browser
Summary: Java crashes when on two consecutive calls of setText method in the same Browser
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 15:43 EDT by Samir CLA
Modified: 2016-12-20 11:36 EST (History)
2 users (show)

See Also:


Attachments
error log (64.89 KB, text/x-log)
2011-05-19 15:43 EDT, Samir CLA
no flags Details

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