#505 ✓resolved
ronin-98500 (at lighthouseapp)

Redcar's HTML windows/tabs crash on Linux

Reported by ronin-98500 (at lighthouseapp) | April 19th, 2011 @ 09:21 AM

Everytime one wants to open a tab containing HTML content, redcar crashes with an exception saying either that xulrunner wasn't found, or, if the MOZILLA_FIVE_HOME variable is set correctly, that an XPCOM error in SWT occured.

I'm running Arch Linux, this is the xulrunner I've installed:

$ LANG=en_US.utf8 pacman -Qi xulrunner
Name           : xulrunner
Version        : 2.0-1
URL            : http://wiki.mozilla.org/XUL:Xul_Runner
Licenses       : MPL  GPL  LGPL
Groups         : None
Provides       : None
Depends On     : gtk2  gcc-libs  libidl2  mozilla-common  nss  libxt  libxrender  hunspell  startup-notification  mime-types  dbus-glib
                 alsa-lib  libevent  sqlite3>=3.7.4  libnotify
Optional Deps  : None
Required By    : firefox
Conflicts With : None
Replaces       : None
Installed Size : 90601.00 K
Packager       : Ionut Biru <ibiru@archlinux.org>
Architecture   : x86_64
Build Date     : Mon 21 Mar 2011 06:24:30 PM CET
Install Date   : Fri 25 Mar 2011 07:48:20 PM CET
Install Reason : Installed as a dependency for another package
Install Script : No
Description    : Mozilla Runtime Environment

Here's the exception caused if MOZILLA_FIVE_PATH isn't set:

$ redcar
Redcar 0.11 ( x86_64-linux )
java -client -Xbootclasspath/a:/home/quintus/.redcar/assets/jruby-complete-1.5.3.jar -Dfile.encoding=UTF8 -Xmx320m -Xss1024k -Djruby.memory.max=320m -Djruby.stack.max=1024k org.jruby.Main /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/bin/redcar --no-sub-jruby --ignore-stdin --start-time=1303061220
Redcar 0.11 ( java )

** (Redcar:3617): WARNING **: Invalid borders specified for theme pixmap:
        /home/quintus/.themes/Moomex-Revisioned/gtk-2.0/Menu/menubar-item.png,
borders don't fit within the image
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkTreeView::even-row-color' of type `GdkColor' from rc file value "((GString*) 0x7fdbf053e200)" of type `GString'
Couldnt find Setting class for textmate setting: spellchecking
Couldnt find Setting class for textmate setting: spellchecking
Error in: tree row activation
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'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/tab.rb:24:in `new_proxy'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/html_tab.rb:19:in `create_tab_widget'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/tab.rb:10:in `initialize'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/html_tab.rb:8:in `initialize'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:92:in `new'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:92:in `attach_model_listeners'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `call'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `map'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/notebook.rb:34:in `new_tab'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/window.rb:186:in `new_tab'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/runnables/lib/runnables.rb:43:in `run_process'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/runnables/lib/runnables/tree_mirror/tree_controller.rb:26:in `activated'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/tree_view_swt/lib/tree_view_swt.rb:390:in `open'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/redcar/redcar.rb:5:in `safely'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/tree_view_swt/lib/tree_view_swt.rb:389:in `open'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in `start'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:in `start'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/lib/redcar.rb:188:in `pump'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/bin/redcar:35

(Redcar:3617): Gtk-WARNING **: Error parsing gtk-icon-sizes string:
'panel-menu=24,24
panel=20,20
gtk-button=18,18
gtk-larg

And here if I set it to /usr/lib/xulrunner-2.0:

$ export MOZILLA_FIVE_HOME=/usr/lib/xulrunner-2.0/
√ quintus@hades => /usr/lib/mozilla
$ export LD_LIBRARY_PATH=$MOZILLA_FIVE_HOME
√ quintus@hades => /usr/lib/mozilla
$ redcar
Redcar 0.11 ( x86_64-linux )
java -client -Xbootclasspath/a:/home/quintus/.redcar/assets/jruby-complete-1.5.3.jar -Dfile.encoding=UTF8 -Xmx320m -Xss1024k -Djruby.memory.max=320m -Djruby.stack.max=1024k org.jruby.Main /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/bin/redcar --no-sub-jruby --ignore-stdin --start-time=1303062609
Redcar 0.11 ( java )

** (Redcar:4157): WARNING **: Invalid borders specified for theme pixmap:
        /home/quintus/.themes/Moomex-Revisioned/gtk-2.0/Menu/menubar-item.png,
borders don't fit within the image
Gtk-Message: (for origin information, set GTK_DEBUG): failed to retrieve property `GtkTreeView::even-row-color' of type `GdkColor' from rc file value "((GString*) 0x415d3e00)" of type `GString'
Couldnt find Setting class for textmate setting: spellchecking
Couldnt find Setting class for textmate setting: spellchecking
Mozilla path: /usr/lib/xulrunner-2.0/
Error in: tree row activation
NativeException: org.eclipse.swt.SWTError: XPCOM error -1041039104
org.eclipse.swt.browser.Mozilla:-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'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/tab.rb:24:in `new_proxy'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/html_tab.rb:19:in `create_tab_widget'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/tab.rb:10:in `initialize'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/html_tab.rb:8:in `initialize'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:92:in `new'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application_swt/lib/application_swt/notebook.rb:92:in `attach_model_listeners'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `call'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `map'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:103:in `observable_run_blocks'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/observable.rb:96:in `notify_listeners'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/notebook.rb:34:in `new_tab'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/application/lib/application/window.rb:186:in `new_tab'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/runnables/lib/runnables.rb:43:in `run_process'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/runnables/lib/runnables/tree_mirror/tree_controller.rb:26:in `activated'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/tree_view_swt/lib/tree_view_swt.rb:390:in `open'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/redcar/redcar.rb:5:in `safely'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/tree_view_swt/lib/tree_view_swt.rb:389:in `open'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/swt/lib/swt/event_loop.rb:13:in `start'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/plugins/core/lib/core/gui.rb:37:in `start'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/lib/redcar.rb:188:in `pump'
/opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/redcar-0.11/bin/redcar:35

(Redcar:4157): Gtk-WARNING **: Error parsing gtk-icon-sizes string:
'panel-menu=24,24
panel=20,20
gtk-button=18,18
gtk-large-toolbar=24,24'

Both times I opened the "runnables" tab, clicked "Custom command" and typed in "ruby -v" followed by pressing [ENTER]. Simply opening redcar's help causes a very similar error, if not the same.
Other useful information:

√ quintus@hades => ~
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
√ quintus@hades => ~
$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.7.2
  - RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-linux]
  - INSTALLATION DIRECTORY: /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: /opt/rubies/ruby-1.9.2-p180/bin/ruby
  - EXECUTABLE DIRECTORY: /opt/rubies/ruby-1.9.2-p180/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /opt/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1
     - /home/quintus/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "install" => "--format-executable"
     - "update" => "--format-executable"
     - "rdoc" => "--format=hanna"
  - REMOTE SOURCES:
     - http://rubygems.org/
√ quintus@hades => ~
$ gem list redcar

*** LOCAL GEMS ***

redcar (0.11, 0.10)
√ quintus@hades => ~
$ uname -a
Linux hades 2.6.38-ARCH #1 SMP PREEMPT Wed Mar 30 08:47:36 CEST 2011 x86_64 AMD Athlon(tm) II X4 640 Processor AuthenticAMD GNU/Linux
√ quintus@hades => ~
$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
√ quintus@hades => ~
$

Comments and changes to this ticket

  • nuclearsandwich

    nuclearsandwich April 30th, 2011 @ 07:22 PM

    I am experiencing this as well. I'd really like to try Redcar again. Can any of the devs offer a nudge in the right direction and I'll see what I can do toward fixing this?

  • ronin-98500 (at lighthouseapp)

    ronin-98500 (at lighthouseapp) April 30th, 2011 @ 09:02 PM

    Before I reported this bug, I've annoyed the Redcar devs with this problem in their IRC channel for some days :-)

    The result was that this is to be considered as a bug; however it's irrelevant because the next version of Redcar won't use Firefox's Gecko engine as exposed by xulrunner, but rather switch over to Apple's WekKit engine.

    Vale,
    Marvin

  • ahmy

    ahmy May 3rd, 2011 @ 01:54 PM

    I just upgraded to natty and found this same bugs. install xulrunner 1.9.2 seems to work.
    I tried to install libswt-gnome-gtk-3.6-jni and webkit that depend on xulrunner 1.9.2.
    Now i can do search in project again

  • Daniel Lucraft

    Daniel Lucraft May 5th, 2011 @ 10:34 PM

    ahmy, can you tell me the exact name of the package you had to install in Ubuntu to make this work please? I will add it as a dependency in the README.

    Thanks

  • Daniel Lucraft

    Daniel Lucraft May 5th, 2011 @ 11:04 PM

    • State changed from “new” to “hold”
  • Throlkim

    Throlkim May 12th, 2011 @ 03:13 PM

    I'm experiencing this same problem - is there a solution that I can implement now, or will I have to wait for the next version using the webkit engine?

  • Daniel Lucraft

    Daniel Lucraft May 12th, 2011 @ 03:17 PM

    @Throlkim did installing the packages that ahmy recommended not help?

  • Throlkim

    Throlkim May 12th, 2011 @ 03:23 PM

    I've tried both xulrunner and xulrunner-oss, are there any others I should try? :)

  • Throlkim

    Throlkim May 12th, 2011 @ 03:23 PM

    • no changes were found...
  • Throlkim

    Throlkim May 12th, 2011 @ 03:29 PM

    I'm running Arch like the OP, by the way - not Ubuntu.

  • Declan Williams

    Declan Williams June 10th, 2011 @ 02:24 PM

    I have it working nicely;

    Machine:
    D.Williams@Wolven:~> cat /proc/version
    Linux version 2.6.37.6-0.5-desktop (geeko@buildhost) (gcc version 4.5.1 20101208 [gcc-4_5-branch revision 167585] (SUSE Linux) ) #1 SMP PREEMPT 2011-04-25 21:48:33 +0200
    D.Williams@Wolven:~> cat /etc/SuSE-release
    openSUSE 11.4 (x86_64)
    VERSION = 11.4
    CODENAME = Celadon

    By installing the following:
    D.Williams@Wolven:~> sudo zypper install mozilla-xulrunner192 mozilla-xulrunner192-gnome

    Package-Info:
    Repository: @System
    Name: mozilla-xulrunner192
    Version: 1.9.2.17-2.2
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 28.4 MiB
    Summary: Mozilla Runtime Environment 1.9.2
    Description:
    XULRunner is a single installable package that can be used to bootstrap
    multiple XUL+XPCOM applications that are as rich as Firefox and
    Thunderbird.

    Information for package mozilla-xulrunner192-gnome:

    Repository: @System
    Name: mozilla-xulrunner192-gnome
    Version: 1.9.2.17-2.2
    Arch: x86_64
    Vendor: obs://build.opensuse.org/mozilla
    Installed: Yes
    Status: up-to-date
    Installed Size: 114.0 KiB
    Summary: XULRunner components depending on gnome-vfs
    Description:
    This subpackage contains the Necko Gnome-VFS and Gnome components which
    rely on the gnome-vfs subsystem to be installed. They are recommended
    for full desktop integration but not mandatory for small disk footprint
    KDE installations for example.

    Program Output:
    D.Williams@Wolven:~> redcar
    Redcar 0.11 ( x86_64-linux )
    java -client -Xbootclasspath/a:/home/D.Williams/.redcar/assets/jruby-complete-1.5.3.jar -Dfile.encoding=UTF8 -Xmx320m -Xss1024k -Djruby.memory.max=320m -Djruby.stack.max=1024k org.jruby.Main /usr/lib64/ruby/gems/1.9.1/gems/redcar-0.11/bin/redcar --no-sub-jruby --ignore-stdin --start-time=1307712198
    Redcar 0.11 ( java )
    XULRunner path: /usr/lib64/xulrunner-1.9.2.17/libxpcom.so
    *** nss-shared-helper: Shared database disabled (set NSS_USE_SHARED_DB to enable).

    Thankyou for your hard work on this program.

  • Jason Ronallo

    Jason Ronallo June 11th, 2011 @ 05:47 PM

    On Ubuntu Natty 11.04 this solved it for me:
    sudo apt-get install xulrunner-1.9.2

  • Daniel Lucraft

    Daniel Lucraft June 12th, 2011 @ 05:01 PM

    Thanks Jason, that works for me too.

  • Daniel Lucraft

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

    • State changed from “hold” to “resolved”

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.

People watching this ticket

Pages