Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » DSDP - Real-Time Software Components (RTSC) » crash when using the CDOC reference help system
crash when using the CDOC reference help system [message #519252] Mon, 08 March 2010 09:45 Go to next message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
I am able to start the documentation by running xs xdc.tools.cdoc.sg (MOZILLA_FIVE_HOME variable is as directed).
But when I double-click an item in the left hand window, the window closes and I get the following error message.
Any ideas?

[font=courier]
Exception in thread "main" org.eclipse.swt.SWTError: No more handles [Mozilla GTK2 required (GTK1.2 detected)]
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java: 179)
at org.mozilla.javascript.NativeJavaClass.constructSpecific(Nat iveJavaClass.java:274)
at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaC lass.java:193)
at org.mozilla.javascript.NativeJavaClass.call(NativeJavaClass. java:174)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter .java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.jav a:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedF unction.java:162)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(Interface Adapter.java:147)
at org.mozilla.javascript.InterfaceAdapter$1.run(InterfaceAdapt er.java:122)
at org.mozilla.javascript.Context.call(Context.java:568)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.ja va:503)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdap ter.java:125)
at org.mozilla.javascript.jdk13.VMBridge_jdk13$1.invoke(VMBridg e_jdk13.java:136)
at $Proxy0.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:243)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter .java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.jav a:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedF unction.java:162)
at xdc.services.intern.xsr.Invoke.call(Invoke.java:89)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter .java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.jav a:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedF unction.java:162)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2834)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedF unction.java:173)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1 227)
at config.Shell.evaluateReader(Shell.java:825)
at config.Shell.processReader(Shell.java:491)
at config.Shell.processFile(Shell.java:553)
at config.Shell.exec(Shell.java:765)
at config.Shell.main(Shell.java:1376)

[1] Exit 1 xs xdc.tools.cdoc.sg
[/color]
Re: crash when using the CDOC reference help system [message #519723 is a reply to message #519252] Tue, 09 March 2010 19:08 Go to previous messageGo to next message
Amit Mookerjee is currently offline Amit MookerjeeFriend
Messages: 47
Registered: July 2009
Member
Hi Patrick,
The stack trace suggests that you are using a version of GTK that is incompatible with the the SWT 'browser' widget used by the cdoc scriptographics application. What Linux distribution are you using? XDCtools is validated using Redhat Enterprise Linux 3. I would recommend migrating to a newer version of GTK -the latest version is 2.18.

Thanks
Amit
Re: crash when using the CDOC reference help system [message #519750 is a reply to message #519723] Tue, 09 March 2010 20:43 Go to previous messageGo to next message
Patrick Geremia is currently offline Patrick GeremiaFriend
Messages: 79
Registered: July 2009
Member
I was pointing to some networked version of mozilla. I am now pointing my distro default settings. I use RHEL4.7. Seamonkey replaces mozilla.
MOZILLA_FIVE_HOME is set to /usr/lib64/mozilla-seamonkey-1.0.9
and the LD_LIBRARY_PATH to /usr/lib64/mozilla-seamonkey-1.0.9:/usr/lib64/mozilla-seamon key-1.0.9/plugins/lib:/usr/lib:/usr/X11R6/lib:/usr/local/lib

It still crashes with the following message

**** warning: package xdc.tools.sg.linux_swt depends on the
Mozilla browser for some functionality. Your environment doesn't
currently point to Mozilla, so some XDC graphical tools may fail.
To prevent this, please set up the following in your environment:

- include $MOZILLA_FIVE_HOME and $MOZILLA_FIVE_HOME/plugins on
the LD_LIBARARY_PATH, for example using bash syntax:
export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="$MOZILLA_FIVE_HOME/plugins:$LD_LIBRARY_PATH "

Exception in thread "main" org.eclipse.swt.SWTError: No more handles (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3346 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.browser.Mozilla.create(Unknown Source)
at org.eclipse.swt.browser.Browser.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java: 179)
at org.mozilla.javascript.NativeJavaClass.constructSpecific(Nat iveJavaClass.java:274)
at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaC lass.java:193)
at org.mozilla.javascript.NativeJavaClass.call(NativeJavaClass. java:174)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter .java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.jav a:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedF unction.java:162)
at org.mozilla.javascript.InterfaceAdapter.invokeImpl(Interface Adapter.java:147)
at org.mozilla.javascript.InterfaceAdapter$1.run(InterfaceAdapt er.java:122)
at org.mozilla.javascript.Context.call(Context.java:568)
at org.mozilla.javascript.ContextFactory.call(ContextFactory.ja va:503)
at org.mozilla.javascript.InterfaceAdapter.invoke(InterfaceAdap ter.java:125)
at org.mozilla.javascript.jdk13.VMBridge_jdk13$1.invoke(VMBridg e_jdk13.java:136)
at $Proxy0.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMetho d.java:243)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter .java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.jav a:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedF unction.java:162)
at xdc.services.intern.xsr.Invoke.call(Invoke.java:89)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter .java:3237)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.jav a:2394)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedF unction.java:162)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:393)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2834)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedF unction.java:173)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1 227)
at config.Shell.evaluateReader(Shell.java:825)
at config.Shell.processReader(Shell.java:491)
at config.Shell.processFile(Shell.java:553)
at config.Shell.exec(Shell.java:765)
at config.Shell.main(Shell.java:1376)
Caused by: java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3346 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
... 45 more

[1] Exit 1 xs xdc.tools.cdoc.sg
Re: crash when using the CDOC reference help system [message #519997 is a reply to message #519750] Wed, 10 March 2010 17:55 Go to previous message
Amit Mookerjee is currently offline Amit MookerjeeFriend
Messages: 47
Registered: July 2009
Member
Hi Patrick,
The stack trace suggests that LD_LIBRARY_PATH is set incorrectly.
If the mozilla installation is
/usr/lib64/mozilla-seamonkey-1.0.9 then /usr/lib64/mozilla-seamonkey-1.0.9/plugins should be included in LD_LIBRARY_PATH. From your message I see that /usr/lib64/mozilla-seamonkey-1.0.9/plugins/lib is included but not /usr/lib64/mozilla-seamonkey-1.0.9/plugins.

Regards
Amit
Previous Topic:changing suffixes for ArchiveGoal and archives
Next Topic:Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Goto Forum:
  


Current Time: Sat Apr 20 01:59:42 GMT 2024

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

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

Back to the top