Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Browser + XULRunner + jvm fatal error - need help on what to do
icon5.gif  SWT Browser + XULRunner + jvm fatal error - need help on what to do [message #973297] Tue, 06 November 2012 08:06 Go to next message
János Gerevich is currently offline János GerevichFriend
Messages: 4
Registered: May 2012
Junior Member
We have a client who runs our program that uses an SWT Browser component.
We have some pages where unpredictabally, about every 10. time, the JVM crashes with a fatal error. These pages seemingly only differ from other pages in that they use a javascript function created in SWT. To make matters worse, we cannot reproduce it in our development environment, but at our client it occurs on more than one computer.

We have the fatal error log (see attachment). I never debugged such a log before, could someone help me and give me a hint on what the log says, what can we try?

Thank you,
John
Re: SWT Browser + XULRunner + jvm fatal error - need help on what to do [message #985671 is a reply to message #973297] Thu, 15 November 2012 16:16 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi John,

I can take a guess, though without more context that's all it is. The
top-listed native frame is JVM_FindSignal, so the crash actually looks
like it's happening in the JRE (it's not just being trapped there). I
also notice in the loaded libraries list that there are Java libraries
loaded from both C:\Woodpecker\WoodpeckerVIR\Java\... and
C:\PROGRA~1\Java\jre6\... , which is generally not a good thing to do.
The C:\PROGRA~1\Java\jre6\... libraries are being loaded by the
"-Xbootclasspath/a:..." JVM startup arg, which I assume is there in
order to make applets work. The JRE at C:\Woodpecker\WoodpeckerVIR\Java
is presumably being used to launch your app (?).

So the first thing to try is to get rid of the "-Xbootclasspath/a:..."
JVM startup arg and see if it makes the crashes go away. If it does
then the fix is likely to just ensure that the JRE at
C:\PROGRA~1\Java\jre6\... is used to launch your app, since this MUST be
the same JRE that is used by native browsers to render applets AND be
pointed at by "-Xbootclasspath/a:...". If it does not help then look at
the new error log and at least confirm that Java libraries only being
loaded from C:\PROGRA~1\Java\jre6\... and nowhere else.

HTH,
Grant


On 11/6/2012 3:06 AM, János Gerevich wrote:
> We have a client who runs our program that uses an SWT Browser component.
> We have some pages where unpredictabally, about every 10. time, the JVM crashes with a fatal error. These pages seemingly only differ from other pages in that they use a javascript function created in SWT. To make matters worse, we cannot reproduce it in our development environment, but at our client it occurs on more than one computer.
>
> We have the fatal error log (see attachment). I never debugged such a log before, could someone help me and give me a hint on what the log says, what can we try?
>
> Thank you,
> John
>
Re: SWT Browser + XULRunner + jvm fatal error - need help on what to do [message #985887 is a reply to message #985671] Fri, 16 November 2012 15:00 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Re-reading my response, the "get rid of '-Xbootclasspath/a:...' part
misses the point by a bit. Just skip this and ensure that your app is
being launched with the JRE at C:\PROGRA~1\Java\jre6\..., so that the
the JRE at C:\Woodpecker\WoodpeckerVIR\Java\... is not involved in any way.

Grant


On 11/15/2012 11:16 AM, Grant Gayed wrote:
> Hi John,
>
> I can take a guess, though without more context that's all it is. The
> top-listed native frame is JVM_FindSignal, so the crash actually looks
> like it's happening in the JRE (it's not just being trapped there). I
> also notice in the loaded libraries list that there are Java libraries
> loaded from both C:\Woodpecker\WoodpeckerVIR\Java\... and
> C:\PROGRA~1\Java\jre6\... , which is generally not a good thing to do.
> The C:\PROGRA~1\Java\jre6\... libraries are being loaded by the
> "-Xbootclasspath/a:..." JVM startup arg, which I assume is there in
> order to make applets work. The JRE at C:\Woodpecker\WoodpeckerVIR\Java
> is presumably being used to launch your app (?).
>
> So the first thing to try is to get rid of the "-Xbootclasspath/a:..."
> JVM startup arg and see if it makes the crashes go away. If it does
> then the fix is likely to just ensure that the JRE at
> C:\PROGRA~1\Java\jre6\... is used to launch your app, since this MUST be
> the same JRE that is used by native browsers to render applets AND be
> pointed at by "-Xbootclasspath/a:...". If it does not help then look at
> the new error log and at least confirm that Java libraries only being
> loaded from C:\PROGRA~1\Java\jre6\... and nowhere else.
>
> HTH,
> Grant
>
>
> On 11/6/2012 3:06 AM, János Gerevich wrote:
>> We have a client who runs our program that uses an SWT Browser component.
>> We have some pages where unpredictabally, about every 10. time, the
>> JVM crashes with a fatal error. These pages seemingly only differ from
>> other pages in that they use a javascript function created in SWT. To
>> make matters worse, we cannot reproduce it in our development
>> environment, but at our client it occurs on more than one computer.
>>
>> We have the fatal error log (see attachment). I never debugged such a
>> log before, could someone help me and give me a hint on what the log
>> says, what can we try?
>>
>> Thank you,
>> John
>>
>
Re: SWT Browser + XULRunner + jvm fatal error - need help on what to do [message #986657 is a reply to message #985887] Wed, 21 November 2012 10:12 Go to previous message
János Gerevich is currently offline János GerevichFriend
Messages: 4
Registered: May 2012
Junior Member
Grant, I'm very grateful for your answer, you have put us on a track where we see a problem which we are currently checking. I will write the details when we get there. Thank you again,
János
Previous Topic:SWT Designer throwing error
Next Topic:SWT Tools Update Sites
Goto Forum:
  


Current Time: Wed Apr 24 13:53:07 GMT 2024

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

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

Back to the top