nspluginwrapper weirdness

Anton Shterenlikht mexas at bris.ac.uk
Wed May 13 16:05:46 UTC 2015


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



More information about the freebsd-ports mailing list