Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » JVM Crash on xulrunner org.eclipse.swt.browser(JVM Crash on xulrunner org.eclipse.swt.browser!)
JVM Crash on xulrunner org.eclipse.swt.browser [message #947929] Wed, 17 October 2012 15:32 Go to next message
attilio olivieri is currently offline attilio olivieriFriend
Messages: 7
Registered: August 2012
Junior Member
Hi all,
I have a problem about "org.eclipse.swt.browser." on windows.
The problem appears on all windows and with all jvm relaises or
all swt.jar libraries. I used the last relaises.
I have a program that show my email, and I use "swt.bowser".
With some html files I have a "jvm" crash .
To view better the problem I did a test program with Snippet128.
The "test class" pilots the Snippet128 class.
After launch I show the first file.
I show the second file after 10 seconds (offerte_tiscali.htm, has the problem).
I show the first file again after 10 seconds, and so on.

To prove the program, we have to:
1) Have 32bit jvm on the windows machine.
2) Unzip the directory any where we wants (pen drive also).
3) Put into the unzipped directory the 32bit "swt.jar" library.
4) Put into the unzipped directory the 32bit "xulrunner-10.0.2" files.
5) Open the dos prompt and go to the unzipped directory (test).
6) launch the batch file with "Launch.bat".
If you want to do in another way we have to change the java classes and the batch file.

To view the problem we have to:
1) Launch the program.
2) View the first file, wait.
3) After 10 second view the second file.
4) Push the window X button to close it.
5) Push the window X button another time to close it.
6) We have jvm crash and log file.

The problem appear after view the second file, and then after.
I tested the program on windows xp but it is possible to test the program on windows 7 too.
It is sufficient to change the 32bit java path into the batch file.
With the "file" flag (on test class) it is possible change the browser
load: from String (file=false), from File (file=true).

My tests:
1) swt.MOZILLA->(file=false)->load from string html file
(browser.setText(html);)->problem.
2) swt.NONE->as (1) point->no problem. Impossible to close the file.
We have to use Ctrl-C key.
3) swt.MOZILLA->(file=true)->load from html file
(browser.setUrl("file://"+html+"/");)->problem.
4) swt.NONE->as (3) point-> no problem. Impossible to close the file.
We have to use Ctrl-C key.
5) Used the program on notebook windows 7, same result.

Conclusions:

It is possible that "Snippet128" object has not completely closed
and after rebuilding we have the jvm crash.
It is also possible that the file (offerte_tiscali.htm) needs
amount of memory about its pictures and this triggers the crash.
I hope that you have the solution about this, or my program helps
you to go to the solution.

I hope to have an answer.
Thanks at all.
  • Attachment: Test.zip
    (Size: 22.05KB, Downloaded 248 times)
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #948182 is a reply to message #947929] Wed, 17 October 2012 20:48 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi, thanks for the report,

I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=392229 for
this. It seems to only crash for me with the IBM JRE, and only with
XULRunner 10. So if you're able to use a non-IBM JRE or a XULRunner
release earlier than 4.0 then the crash should go away for you.

I plan to investigate the problem shortly. You can CC yourself to the
report to follow its progress.

Grant


On 10/17/2012 11:32 AM, attilio olivieri wrote:
> Hi all,
> I have a problem about "org.eclipse.swt.browser." on windows.
> The problem appears on all windows and with all jvm relaises or
> all swt.jar libraries. I used the last relaises.
> I have a program that show my email, and I use "swt.bowser".
> With some html files I have a "jvm" crash .
> To view better the problem I did a test program with Snippet128.
> The "test class" pilots the Snippet128 class.
> After launch I show the first file.
> I show the second file after 10 seconds (offerte_tiscali.htm, has the problem).
> I show the first file again after 10 seconds, and so on.
>
> To prove the program, we have to:
> 1) Have 32bit jvm on the windows machine.
> 2) Unzip the directory any where we wants (pen drive also).
> 3) Put into the unzipped directory the 32bit "swt.jar" library.
> 4) Put into the unzipped directory the 32bit "xulrunner-10.0.2" files.
> 5) Open the dos prompt and go to the unzipped directory (test).
> 6) launch the batch file with "Launch.bat".
> If you want to do in another way we have to change the java classes and the batch file.
>
> To view the problem we have to:
> 1) Launch the program.
> 2) View the first file, wait.
> 3) After 10 second view the second file.
> 4) Push the window X button to close it.
> 5) Push the window X button another time to close it.
> 6) We have jvm crash and log file.
>
> The problem appear after view the second file, and then after.
> I tested the program on windows xp but it is possible to test the program on windows 7 too.
> It is sufficient to change the 32bit java path into the batch file.
> With the "file" flag (on test class) it is possible change the browser
> load: from String (file=false), from File (file=true).
>
> My tests:
> 1) swt.MOZILLA->(file=false)->load from string html file
> (browser.setText(html);)->problem.
> 2) swt.NONE->as (1) point->no problem. Impossible to close the file.
> We have to use Ctrl-C key.
> 3) swt.MOZILLA->(file=true)->load from html file
> (browser.setUrl("file://"+html+"/");)->problem.
> 4) swt.NONE->as (3) point-> no problem. Impossible to close the file.
> We have to use Ctrl-C key.
> 5) Used the program on notebook windows 7, same result.
>
> Conclusions:
>
> It is possible that "Snippet128" object has not completely closed
> and after rebuilding we have the jvm crash.
> It is also possible that the file (offerte_tiscali.htm) needs
> amount of memory about its pictures and this triggers the crash.
> I hope that you have the solution about this, or my program helps
> you to go to the solution.
>
> I hope to have an answer.
> Thanks at all.
>
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #948679 is a reply to message #948182] Thu, 18 October 2012 09:00 Go to previous messageGo to next message
attilio olivieri is currently offline attilio olivieriFriend
Messages: 7
Registered: August 2012
Junior Member
Hi Grant, thanks for the answer.
I'll change swt.browser from xulrunner to 64bit IE, for the moment (I have windows 7 too).
I have xulrunner for an eventual virus into my html emails.
If you are gentle, do you know if it is possible to use firefox of my machine directly?
If you don't know this, it is not important for the moment.
Thanks for the answer, Grant.
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #950236 is a reply to message #948679] Fri, 19 October 2012 18:50 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I've fixed the crash in the streams for the 3.8.2, 4.2.2 and 4.3 releases.

Pointing org.eclipse.swt.browser.XULRunnerPath at a Firefox should work
for you on Windows, but of course is bound by the same version
restrictions as embedding of XULRunner (Firefox 3.x.x or 10, no other
versions).

Grant


On 10/18/2012 5:00 AM, attilio olivieri wrote:
> Hi Grant, thanks for the answer.
> I'll change swt.browser from xulrunner to 64bit IE, for the moment (I
> have windows 7 too).
> I have xulrunner for an eventual virus into my html emails.
> If you are gentle, do you know if it is possible to use firefox of my
> machine directly? If you don't know this, it is not important for the
> moment.
> Thanks for the answer, Grant.
>
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #952293 is a reply to message #950236] Sun, 21 October 2012 10:22 Go to previous messageGo to next message
attilio olivieri is currently offline attilio olivieriFriend
Messages: 7
Registered: August 2012
Junior Member
Hi Grant, thanks for the answer.
I knew what you said about Firefox, but had hope in a difference way.
About "fae0ba19d5d8c79b2ee07f39c1ec76bf664a479c Mon Sep 17 00:00:00 2001"
Patch I put it into Mozilla.java, but I had the same situation.
1) I put the patch into Mozilla.java
2) I Create "workspace_Mozilla" with package "org.eclipse.swt.browser" and bit 32 eclipse on windows xp.
3) I build all project and put the bin files into swt.jar library.
4) I test the program again with the new library into winxp, no resolution of my problem->hs_err_pid3864.log
5) I test the program on my win7 with new graphic drives, no resolution of my problem->hs_err_pid3992.log
6) I test the program again with the new library into win7 notebook, no resolution of my problem->hs_err_pid5564.log.
I added my dates for a better understanding of the problem.
Thanks for the answer, Grant.
  • Attachment: dati.zip
    (Size: 158.58KB, Downloaded 211 times)
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #953977 is a reply to message #952293] Mon, 22 October 2012 17:37 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I've re-tried the latest SWT content with your example and it works for
me with Firefox 10, so perhaps the patch was not applied correctly in
your case. Regardless, please try with an Eclipse/SWT build that
contains the fix, such as
http://download.eclipse.org/eclipse/downloads/drops4/N20121022-0010/ .

As a side note: Although pointing org.eclipse.swt.browser.XULRunnerPath
at a Firefox install seems to generally work, this is not considered to
be supported. So a problem that only happens when pointing at Firefox,
but does not happen when pointing at the corresponding stand-alone
XULRunner, will not be investigated.

Grant


On 10/21/2012 6:22 AM, attilio olivieri wrote:
> Hi Grant, thanks for the answer.
> I knew what you said about Firefox, but had hope in a difference way.
> About "fae0ba19d5d8c79b2ee07f39c1ec76bf664a479c Mon Sep 17 00:00:00 2001"
> Patch I put it into Mozilla.java, but I had the same situation.
> 1) I put the patch into Mozilla.java
> 2) I Create "workspace_Mozilla" with package "org.eclipse.swt.browser" and bit 32 eclipse on windows xp.
> 3) I build all project and put the bin files into swt.jar library.
> 4) I test the program again with the new library into winxp, no resolution of my problem->hs_err_pid3864.log
> 5) I test the program on my win7 with new graphic drives, no resolution of my problem->hs_err_pid3992.log
> 6) I test the program again with the new library into win7 notebook, no resolution of my problem->hs_err_pid5564.log.
> I added my dates for a better understanding of the problem.
> Thanks for the answer, Grant.
>
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #954760 is a reply to message #953977] Tue, 23 October 2012 08:16 Go to previous messageGo to next message
attilio olivieri is currently offline attilio olivieriFriend
Messages: 7
Registered: August 2012
Junior Member
Thanks for the answer Grant.
Now I have a problem with myself (I am sick).
When the problem will disappears, I'll test what you said.
Thanks for the answer Grant.
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #958830 is a reply to message #954760] Fri, 26 October 2012 08:47 Go to previous messageGo to next message
attilio olivieri is currently offline attilio olivieriFriend
Messages: 7
Registered: August 2012
Junior Member
Hi Grant,
I did what you said but with the new library I have the same result (jvm crash).
I proved to do the automatic program (to close browser window by the timer),
but I am not sure to obtain the same result (I have to rewrite the method and this can lead to the error). Other thing is that when appear jvm crash we have no OpenWindowListener event. and that is why I stopped to rewrite the software..
I proved with all html web files of "offerte_tiscali.htm" into my hard disk, but in this case I have no crash.
I don't know if you did exactly what I did say, but I try again to say you how is it possible obtain the jvm crash.
1) launch the test program with Launch.bat.
2) When the second browser window appears you close it by mouse click on (X) of the browser window. Then it appears the second time, and you close again in same way.
3) At this point you have the crash of jvm and the program exit, if this doesn't happen we have the same alternating for ever..
For me is two times (to close the window), but I don't know how much time are for you. Other thing is that if the web site removed the pictures, this is not important because the problem is of the internet connection.
For this reason I investigate on "offerte_tiscali.htm" file and I found:
If we put the last instruction in the comment, I have no problem,.
I put the instruction into "attachment.txt" file, because I have the problem to insert it in my message.
This is the best that I can do, I'll hope the good news.
Thanks for your time, Grant.
Re: JVM Crash on xulrunner org.eclipse.swt.browser [message #958841 is a reply to message #954760] Fri, 26 October 2012 08:54 Go to previous message
attilio olivieri is currently offline attilio olivieriFriend
Messages: 7
Registered: August 2012
Junior Member
Hi Grant,
I did what you said but with the new library I have the same result (jvm crash).
I proved to do the automatic program (to close browser window by the timer),
but I am not sure to obtain the same result (I have to rewrite the method and this can lead to the error). Other thing is that when appear jvm crash we have no OpenWindowListener event. and that is why I stopped to rewrite the software..
I proved with all html web files of "offerte_tiscali.htm" into my hard disk, but in this case I have no crash.
I don't know if you did exactly what I did say, but I try again to say you how is it possible obtain the jvm crash.
1) launch the test program with Launch.bat.
2) When the second browser window appears you close it by mouse click on (X) of the browser window. Then it appears the second time, and you close again in same way.
3) At this point you have the crash of jvm and the program exit, if this doesn't happen we have the same alternating for ever..
For me is two times (to close the window), but I don't know how much time are for you. Other thing is that if the web site removed the pictures, this is not important because the problem is of the internet connection.
For this reason I investigate on "offerte_tiscali.htm" file and I found:
If we put the last instruction in the comment, I have no problem,.
I put the instruction into "attachment.txt" file, because I have the problem to insert it in my message.
This is the best that I can do, I'll hope the good news.
Thanks for your time, Grant.
Previous Topic:Text hint support on Windows 7
Next Topic:SWT_AWT Bridge or Albireo
Goto Forum:
  


Current Time: Tue Apr 23 13:34:25 GMT 2024

Powered by FUDForum. Page generated in 0.03281 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top