#533 ✓resolved
azzz

Crash when opening Plugin Manager, Task Manager,

Reported by azzz | June 12th, 2011 @ 01:16 PM

If I open "plugin manager" or "task manager" and switch to this tab.

Plugin manager:

Error in command Redcar::PluginManagerUi::OpenCommand
NativeException: org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
org.eclipse.swt.SWT:-1:in `error'
org.eclipse.swt.browser.Mozilla:-1:in `create'
org.eclipse.swt.browser.Browser:-1:in `<init>'
sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
sun/reflect/NativeConstructorAccessorImpl.java:39:in `newInstance'
sun/reflect/DelegatingConstructorAccessorImpl.java:27:in `newInstance'
java/lang/reflect/Constructor.java:513:in `newInstance'
org/jruby/javasupport/JavaConstructor.java:291:in `newInstanceDirect'
/usr/src/redcar/plugins/application_swt/lib/application_swt/html_tab.rb:19:in `create_tab_widget'
/usr/src/redcar/plugins/application_swt/lib/application_swt/tab.rb:10:in `initialize'
/usr/src/redcar/plugins/application_swt/lib/application_swt/html_tab.rb:8:in `initialize'
/usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:92:in `attach_model_listeners'
org/jruby/RubyProc.java:268:in `call'
org/jruby/RubyProc.java:228:in `call'
/usr/src/redcar/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
org/jruby/RubyArray.java:2336:in `collect'
/usr/src/redcar/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/usr/src/redcar/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
/usr/src/redcar/plugins/application/lib/application/notebook.rb:34:in `new_tab'
/usr/src/redcar/plugins/application/lib/application/window.rb:186:in `new_tab'
/usr/src/redcar/plugins/plugin_manager_ui/lib/plugin_manager_ui.rb:116:in `execute'
/usr/src/redcar/plugins/application/lib/application/command/executor.rb:28:in `execute'
/usr/src/redcar/plugins/application/lib/application/command.rb:84:in `run'
/usr/src/redcar/plugins/application/lib/application/menu/item.rb:45:in `selected'
/usr/src/redcar/plugins/application_swt/lib/application_swt/menu.rb:133:in `widgetSelected'
/usr/src/redcar/plugins/swt/lib/swt/event_loop.rb:13:in `start'
/usr/src/redcar/plugins/core/lib/core/gui.rb:37:in `start'
/usr/src/redcar/lib/redcar.rb:201:in `pump'
/usr/src/redcar/bin/redcar:36:in `(root)'
NoMethodError: undefined method `item' for nil:NilClass
  tab_widget_to_tab_model at /usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:129
                   detect at org/jruby/RubyEnumerable.java:552
  tab_widget_to_tab_model at /usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:129
           widgetSelected at /usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:36
                    start at /usr/src/redcar/plugins/swt/lib/swt/event_loop.rb:13
                    start at /usr/src/redcar/plugins/core/lib/core/gui.rb:37
                     pump at /usr/src/redcar/lib/redcar.rb:201
                   (root) at /usr/src/redcar/bin/redcar:36

Task manager:

Error in command Redcar::TaskManager::OpenCommand
NativeException: org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
org.eclipse.swt.SWT:-1:in `error'
org.eclipse.swt.browser.Mozilla:-1:in `create'
org.eclipse.swt.browser.Browser:-1:in `<init>'
sun/reflect/NativeConstructorAccessorImpl.java:-2:in `newInstance0'
sun/reflect/NativeConstructorAccessorImpl.java:39:in `newInstance'
sun/reflect/DelegatingConstructorAccessorImpl.java:27:in `newInstance'
java/lang/reflect/Constructor.java:513:in `newInstance'
org/jruby/javasupport/JavaConstructor.java:291:in `newInstanceDirect'
/usr/src/redcar/plugins/application_swt/lib/application_swt/html_tab.rb:19:in `create_tab_widget'
/usr/src/redcar/plugins/application_swt/lib/application_swt/tab.rb:10:in `initialize'
/usr/src/redcar/plugins/application_swt/lib/application_swt/html_tab.rb:8:in `initialize'
/usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:92:in `attach_model_listeners'
org/jruby/RubyProc.java:268:in `call'
org/jruby/RubyProc.java:228:in `call'
/usr/src/redcar/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
org/jruby/RubyArray.java:2336:in `collect'
/usr/src/redcar/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/usr/src/redcar/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
/usr/src/redcar/plugins/application/lib/application/notebook.rb:34:in `new_tab'
/usr/src/redcar/plugins/application/lib/application/window.rb:186:in `new_tab'
/usr/src/redcar/plugins/task_manager/lib/task_manager.rb:11:in `execute'
/usr/src/redcar/plugins/application/lib/application/command/executor.rb:28:in `execute'
/usr/src/redcar/plugins/application/lib/application/command.rb:84:in `run'
/usr/src/redcar/plugins/application/lib/application/menu/item.rb:45:in `selected'
/usr/src/redcar/plugins/application_swt/lib/application_swt/menu.rb:133:in `widgetSelected'
/usr/src/redcar/plugins/swt/lib/swt/event_loop.rb:13:in `start'
/usr/src/redcar/plugins/core/lib/core/gui.rb:37:in `start'
/usr/src/redcar/lib/redcar.rb:201:in `pump'
/usr/src/redcar/bin/redcar:36:in `(root)'
NoMethodError: undefined method `item' for nil:NilClass
  tab_widget_to_tab_model at /usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:129
                   detect at org/jruby/RubyEnumerable.java:552
  tab_widget_to_tab_model at /usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:129
           widgetSelected at /usr/src/redcar/plugins/application_swt/lib/application_swt/notebook.rb:36
                    start at /usr/src/redcar/plugins/swt/lib/swt/event_loop.rb:13
                    start at /usr/src/redcar/plugins/core/lib/core/gui.rb:37
                     pump at /usr/src/redcar/lib/redcar.rb:201
                   (root) at /usr/src/redcar/bin/redcar:36

System: Ubuntu 11.04 i686, 2.6.38-8-generic-pae
Redcar 0.12.0dev, commit: a4ecabd3fb537465a5aa303acf584a73023248c5
jruby 1.5.1 (ruby 1.8.7 patchlevel 249)
java version "1.6.0_24"

Comments and changes to this ticket

  • diegoocampo

    diegoocampo June 12th, 2011 @ 06:55 PM

    The same here, also with ubuntu 11.04 but x64:

    Mozilla path: /usr/lib/xulrunner-1.9.0.10
    Error in command Redcar::PluginManagerUi::OpenCommand
    NativeException: org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-1.9.0.10'] (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3555 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)
    org.eclipse.swt.SWT:-1:in error' org.eclipse.swt.browser.Mozilla:-1:increate'
    org.eclipse.swt.browser.Browser:-1:in <init>' sun/reflect/NativeConstructorAccessorImpl.java:-2:innewInstance0'
    sun/reflect/NativeConstructorAccessorImpl.java:57:in newInstance' sun/reflect/DelegatingConstructorAccessorImpl.java:45:innewInstance'
    java/lang/reflect/Constructor.java:532:in newInstance' org/jruby/javasupport/JavaConstructor.java:291:innewInstanceDirect'
    /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/tab.rb:24:in new_proxy' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/html_tab.rb:19:increate_tab_widget' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/tab.rb:10:in initialize' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/html_tab.rb:8:ininitialize' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:92:in new' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:92:inattach_model_listeners' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in call' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:inobservable_run_blocks' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in map' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:inobservable_run_blocks' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/observable.rb:96:in notify_listeners' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application/lib/application/notebook.rb:34:innew_tab' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application/lib/application/window.rb:186:in new_tab' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/plugin_manager_ui/lib/plugin_manager_ui.rb:117:inexecute' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application/lib/application/command/executor.rb:28:in execute' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application/lib/application/command.rb:84:inrun' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application/lib/application/menu/item.rb:45:in selected' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/menu.rb:133:inwidgetSelected' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in start' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:instart' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/lib/redcar.rb:188:in pump' /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/bin/redcar:35 /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:129:intab_widget_to_tab_model': undefined method `item' for nil:NilClass (NoMethodError)

    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:129:in `detect'
    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:129:in `tab_widget_to_tab_model'
    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:36:in `widgetSelected'
    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in `start'
    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:in `start'
    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/lib/redcar.rb:188:in `pump'
    from /home/diego/.rvm/gems/ruby-1.9.2-p180/gems/redcar-0.11/bin/redcar:35
    
  • Michael Wittke

    Michael Wittke July 27th, 2011 @ 07:18 AM

    I have the same issues in case of trying to open and click on:
    - todo list (see error below) - task manager etc.

    Any feature which opens a tab. After clicking on the tab -> crash

    Regards
    Michael

    /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:129:in tab_widget_to_tab_model': undefined methoditem' for nil:NilClass (NoMethodError)

    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:129:in `detect'
    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:129:in `tab_widget_to_tab_model'
    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:36:in `widgetSelected'
    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in `start'
    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:in `start'
    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/lib/redcar.rb:188:in `pump'
    from /home/wittke/.rvm/gems/ruby-1.9.2-p290/gems/redcar-0.11/bin/redcar:35
    
  • Michael Wittke

    Michael Wittke July 27th, 2011 @ 07:34 AM

    ... I am also running Ubuntu 11.04 x64.

    Tried to open the Debug/Command History to add the command history after opening a tab of todo list etc.
    Nevertheless, this opens a tab and here we go -> crash :)

    R
    M

  • delisa

    delisa August 15th, 2011 @ 06:04 PM

    This is probably caused by Xulrunner (https://developer.mozilla.org/en/xulrunner) not being installed. Without it, the browser-based views in Redcar fail to load. This should be fixed in 0.12, as Redcar will more or less bundle its browser dependency. Would you mind testing this out by installing Xulrunner?

    On Ubuntu Natty, this is probably the command:

    sudo apt-get install xulrunner-1.9.2
    

    or

    sudo apt-get install xulrunner-2.0
    
  • Michael Wittke

    Michael Wittke August 16th, 2011 @ 01:17 PM

    Thank you very much. This solves the problem.

    This has also been explained in this
    post

    Regards and thanks
    Michael

  • Daniel Lucraft

    Daniel Lucraft August 16th, 2011 @ 02:00 PM

    • State changed from “new” to “resolved”
  • Robin Pedersen

    Robin Pedersen September 8th, 2011 @ 10:28 AM

    I think this ticket should be reopened:

    • It should handle the error, instead of crashing and losing data
    • It doesn't seem to work with xulrunner-6.0.1
    Error in command Redcar::Help::ViewShortcutsCommand
    NativeException: org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-1.9.2'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
            no swt-mozilla-gtk-3735 in java.library.path
            no swt-mozilla-gtk in java.library.path
            /home/robinp/.swt/lib/linux/x86_64/libswt-mozilla-gtk-3735.so: /usr/lib/xulrunner-6.0.1/libxul.so: undefined symbol: gtk_major_version
            Can't load library: /home/robinp/.swt/lib/linux/x86_64/libswt-mozilla-gtk.so
    )
    
    About: Redcar
    Version: 0.12.16dev
    Ruby Version: 1.8.7
    Jruby version: 1.6.4
    Redcar.environment: user
    
  • Robin Pedersen

    Robin Pedersen September 8th, 2011 @ 10:30 AM

    Please ignore [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-1.9.2'] in the above post, xulrunner-6.0.1 was installed, not 1.9.2

  • Massao Saito

    Massao Saito July 12th, 2012 @ 04:58 AM

    +1 @Robin, i'm getting the same error =/

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A programmer's text editor for Gnome.

Pages