Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2015 17:05:35 +0100 (BST)
From:      Anton Shterenlikht <mexas@bris.ac.uk>
To:        freebsd-ports@freebsd.org
Subject:   nspluginwrapper weirdness
Message-ID:  <201505131605.t4DG5ZZS024662@mech-as222.men.bris.ac.uk>

next in thread | raw e-mail | index | archive | help
Seems nspluginwrapper -v -a -i is harmful rather than helpful.

Two laptops, both with 10.1-stable.

Running nspluginwrapper -v -a -i on one laptop I get:

$ nspluginwrapper -v -a -i
Auto-install plugins from /usr/local/lib/browser_plugins
Looking for plugins in /usr/local/lib/browser_plugins
Auto-install plugins from /usr/local/lib/browser_plugins/linux-c6-flashplugin
Looking for plugins in /usr/local/lib/browser_plugins/linux-c6-flashplugin
ELF binary type "0" not known.
exec: /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: Exec format error
ELF binary type "0" not known.
exec: /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: Exec format error
Auto-install plugins from /usr/local/lib/browser_plugins/symlinks/linux-firefox
Looking for plugins in /usr/local/lib/browser_plugins/symlinks/linux-firefox
ELF binary type "0" not known.
exec: /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: Exec format error
ELF binary type "0" not known.
exec: /usr/local/lib/nspluginwrapper/i386/linux/npviewer.bin: Exec format error
Auto-install plugins from /home/mexas/.mozilla/plugins
Looking for plugins in /home/mexas/.mozilla/plugins

Note the errors.
Nothing gets installed under ~/.mozilla/plugins:

$ls -a .mozilla/
.               ..              extensions      firefox

$ nspluginwrapper -l
$

about:plugins shows:

Installed plugins
Find updates for installed plugins at mozilla.com/plugincheck
OpenH264 Video Codec provided by Cisco Systems, Inc.

    File: 
    Path: 
    Version: null
    State: Enabled
    Play back web video and use video chats.

and flash works fine!



On another laptop nspluginwrapper -v -a -i gives:

$ nspluginwrapper -v -a -i
Auto-install plugins from /usr/local/lib/browser_plugins
Looking for plugins in /usr/local/lib/browser_plugins
Auto-install plugins from /usr/local/lib/browser_plugins/linux-c6-flashplugin
Looking for plugins in /usr/local/lib/browser_plugins/linux-c6-flashplugin
Install plugin /usr/local/lib/browser_plugins/linux-c6-flashplugin/libflashplayer.so
  into /home/mexas/.mozilla/plugins/npwrapper.libflashplayer.so
Auto-install plugins from /usr/local/lib/browser_plugins/symlinks/linux-firefox
Looking for plugins in /usr/local/lib/browser_plugins/symlinks/linux-firefox
Install plugin /usr/local/lib/browser_plugins/symlinks/linux-firefox/libflashplayer.so
  into /home/mexas/.mozilla/plugins/npwrapper.libflashplayer.so
Auto-install plugins from /home/mexas/.mozilla/plugins
Looking for plugins in /home/mexas/.mozilla/plugins

Note that here there are no errors.
plugins dir is now created:

$ ls -a .mozilla/plugins/
.                               ..                              npwrapper.libflashplayer.so

$ nspluginwrapper -l
/home/mexas/.mozilla/plugins/npwrapper.libflashplayer.so
  Original plugin: /usr/local/lib/browser_plugins/symlinks/linux-firefox/libflashplayer.so
  Plugin viewer: /usr/local/lib/nspluginwrapper/i386/linux/npviewer
  Wrapper version string: 1.4.4-1


about:plugins shows:

Installed plugins
Find updates for installed plugins at mozilla.com/plugincheck
OpenH264 Video Codec provided by Cisco Systems, Inc.

    File: 
    Path: 
    Version: null
    State: Enabled
    Play back web video and use video chats.

MIME Type	Description	Suffixes
Shockwave Flash

    File: npwrapper.libflashplayer.so
    Path: /usr/home/mexas/.mozilla/plugins/npwrapper.libflashplayer.so
    Version: 
    State: Enabled
    Shockwave Flash 11.2 r202

MIME Type	Description	Suffixes
application/x-shockwave-flash	Shockwave Flash	swf
application/futuresplash	FutureSplash Player	spl

and flash does *not* work!
Insted I get these errors:

(npviewer.bin:5519): Gtk-CRITICAL **: IA__gtk_widget_get_visual: assertion `GTK_IS_WIDGET (widget)' failed

(npviewer.bin:5519): Gdk-CRITICAL **: IA__gdk_colormap_new: assertion `GDK_IS_VISUAL (visual)' failed

(npviewer.bin:5519): Gdk-CRITICAL **: IA__gdk_colormap_alloc_colors: assertion `GDK_IS_COLORMAP (colormap)' failed

(npviewer.bin:5519): Gtk-CRITICAL **: IA__gtk_widget_modify_bg: assertion `GTK_IS_WIDGET (widget)' failed

(npviewer.bin:5519): Gtk-CRITICAL **: IA__gtk_widget_get_visual: assertion `GTK_IS_WIDGET (widget)' failed

(npviewer.bin:5519): Gdk-CRITICAL **: IA__gdk_colormap_new: assertion `GDK_IS_VISUAL (visual)' failed

(npviewer.bin:5519): Gdk-CRITICAL **: IA__gdk_colormap_alloc_colors: assertion `GDK_IS_COLORMAP (colormap)' failed

(npviewer.bin:5519): Gtk-CRITICAL **: IA__gtk_widget_modify_bg: assertion `GTK_IS_WIDGET (widget)' failed


If I do rm -rf ~/.mozilla/plugins, then flash does work.

It's the exact opposite of the handbook and of what's expected.

What's going on?

Anton




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505131605.t4DG5ZZS024662>