facebook

3.8-b1/Linux: Problem with internal Webbrowser [Closed]

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #207988 Reply

    Hi,

    after switching to ME’s “Web Browser”-View my M9-RC1 workbench crashed with following exception:

    
    org.eclipse.swt.SWTError: No more handles [Unknown mozilla path]
            at org.eclipse.swt.SWT.error(SWT.java:2717)
            at org.eclipse.swt.browser.Browser.<init>(Browser.java:128)
            at com.genuitec.eclipse.browser.HTMLViewer.<C4><81>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLViewer.<init>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLViewer.<init>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLViewer.<init>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLView.createPartControl(Unknown Source)
            at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:131)
            at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:615)
            at org.eclipse.core.runtime.Platform.run(Platform.java:758)
    ...
    

    What operating system and version are you running?
    Linux 2.2.24, Debian 3.0 (including parts from “unstable”)

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.0.0
    Build id: 200405290105

    – Was Eclipse freshly installed for MyEclipse?
    Yes.

    – Are any other external plugins installed?
    No.

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    8

    What MyEclipse version are you using?
    3.8 beta1 (labled as 3.7.101 in About Eclipse Platform > Features)

    What JDK version are you using to run Eclipse? (java -version)
    java version “1.4.2_01”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)
    Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)

    What JDK version are you using to launch your application server?
    dito (guess it doesn’t matter since I hadn’t launched an appserver while
    the crash occured …)

    What steps did you take that resulted in the issue?
    I can reproduce this problem by selecting
    Window -> Show View -> MyEclipse Enterprise Workbench -> Web Browser

    Are there any errors in the Eclipse log? (<workspace>/.metadata/.log)

    
    eclipse.buildId=I200405290105
    java.version=1.4.2_01
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
    Command-line arguments: -showlocation vmargs -Xmx512m 2
    !ENTRY org.eclipse.osgi Jun 04, 2004 19:27:39.708
    !MESSAGE Application error
    !STACK 1
    org.eclipse.swt.SWTError: No more handles [Unknown mozilla path]
            at org.eclipse.swt.SWT.error(SWT.java:2717)
            at org.eclipse.swt.browser.Browser.<init>(Browser.java:128)
            at com.genuitec.eclipse.browser.HTMLViewer.<C4><81>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLViewer.<init>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLViewer.<init>(Unknown Source)
            at com.genuitec.eclipse.browser.HTMLViewer.<init>(Unknown Source)
    ...
    

    Any hints how to solve this problem?

    Thanks,
    Nils

    #207989

    Riyad Kalla
    Member

    Nils,
    The SWT component is fairly new and will be buggy for a while until the Eclipse team stabalizes it. However, your exception suggests that an abusive amount of UI handles are being created and not being cleaned up. This does seem to be a known bug in Eclipse:
    https://bugs.eclipse.org/bugs/buglist.cgi?short_desc_type=allwordssubstr&short_desc=No+more+handles&version=3.0&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&emailtype1=substring&email1=&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&namedcmd=Open+3.0+Bugs&newqueryname=&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=

    Note that 2 of those bugs are specifically against the browser component.

    #207991

    snpe
    Member

    eclipse html widget (I think that myeclipse web browser use it) don’t work with standard binary mozilla from mozilla.org – mozilla must be compiled with gtk2 – there is link for compiled version mozilla on internet – I compile mozilla from source with -enable-gtk2 and web browser work fine – eclipse crash with standard mozilla (it isn’t compiled with gtk2)

    regards

    #207992

    Riyad Kalla
    Member

    snpe,
    Thanks for the great tip! I’ll add it to the FAQ with proper credits.

    nilsha,
    Did this help you?

    #207993

    Riyad Kalla
    Member

    nilsha,
    I just noticed the message “Unknown mozilla path” in your exception… do you have mozilla in your path so SWT can find it? Have you tried dropping to a console and typeing “mozilla” and seeing if anything loads up? This might be the problem.

    #208010

    snpe
    Member

    mozilla executable isn’t necessary, but mozilla path yes
    You must set like
    export MOZILLA_FIVE_HOME=/usr/local/mozilla

    or home path for mozilla

    html widget don’t use mozilla executable, only mozilla gtk libraries

    regards

    #208012

    Riyad Kalla
    Member

    html widget don’t use mozilla executable, only mozilla gtk libraries

    Thank you for the clarification snpe.

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: 3.8-b1/Linux: Problem with internal Webbrowser [Closed]

You must be logged in to post in the forum log in