[Spice-devel] Porting spice-xpi-2.8 to Chromium

Alon Levy alevy at redhat.com
Sun Sep 1 07:54:01 PDT 2013


> Thanks for your response Alon

No problems. I'm adding spice-devel, please keep it in the To field, you can CC me.

> 
> > You are missing NSS libraries on your raspberry.
> > The above error is the indication. Where is the plugin from?
> > You will need to copy any libraries it depends on to the raspberry, like
> libsoftokn3.so .
> > They have to be the correct ABI too.
> 
> Thanks for your hint, libsoftokn3.so had an invalid symlink.
> 
> root at raspberrypi:~# ls -alh /usr/lib/libsoftokn3.so
> lrwxrwxrwx 1 root root 27 Aug 30 02:24 /usr/lib/libsoftokn3.so ->
> /usr/lib/nss/libsoftokn3.so
> 
> the correct folder would be /usr/lib/arm-linux-gnueabihf/nss/
> 
> But now, the plugin still crashes:
> 
> pi at raspberrypi /root $ /usr/bin/chromium --user-agent="Mozilla/5.0 (X11;
> Debian; Linux armv6l; rv:21.0) Gecko/20100101 Firefox/21.0"
> [7:7:932453267:ERROR:webplugin_delegate_proxy.cc(379)] PluginMsg_Init
> returned false
> [7:7:932454807:ERROR:webplugin_impl.cc(269)] Couldn't initialize plug-in
> 
> > Where is the plugin from?
> i used http://spice-space.org/download/releases/spice-xpi-2.8.tar.bz2
> 

ok, so I assume you built it yourself. Can you perhaps break on PluginMsg_Init and see if that loads the plugin (spicexpi), which symbol it calls, maybe you can break in it? I'm not familiar with chrome to suggest anything better.

> 
> 
> 
> On Sun, Sep 1, 2013 at 2:06 PM, Alon Levy <alevy at redhat.com> wrote:
> 
> > > Hi all
> > >
> > > I tried to use spice-xpi-2.8.0 with Chromium (on a RaspPi).
> > >
> > > Now, I get this error when the UserPortal tries to connect with the
> > plugin.
> > >
> > > pi at raspberrypi ~ $ /usr/bin/chromium --user-agent="Mozilla/5.0 (X11;
> > Debian;
> > > Linux armv6l; rv:21.0) Gecko/20100101 Firefox/21.0"
> > > [1:1:3688624088:ERROR:nss_util.cc(692)] Failed to load NSS libraries.
> > > [4:4:3690695725:ERROR:nss_util.cc(452)] Error initializing NSS without a
> > > persistent database: libsoftokn3.so: cannot open shared object file:
> > > Permission denied
> >
> > You are missing NSS libraries on your raspberry. The above error is the
> > indication. Where is the plugin from? You will need to copy any libraries
> > it depends on to the raspberry, like libsoftokn3.so . They have to be the
> > correct ABI too.
> >
> > > [10964:10964:3692312655:ERROR:gl_surface_glx.cc(57)] glxQueryVersion
> > failed
> > > [10964:10964:3692313783:ERROR:gl_surface_linux.cc(58)]
> > > GLSurfaceGLX::InitializeOneOff failed.
> > > [7:7:3808190575:ERROR:webplugin_delegate_proxy.cc(311)] Plug-in crashed
> > on
> > > start
> > >
> > > (I use the --user-agent parameter because we can't patch the UserPortal
> > at
> > > the moment)
> > >
> > > root at raspberrypi:~# ls -alh /usr/lib/chromium/plugins/
> > > drwxr-xr-x 2 root root 4.0K Aug 30 02:41 .
> > > drwxr-xr-x 6 root root 4.0K Aug 29 22:33 ..
> > > -rwxr-xr-x 1 root root 322K Aug 30 01:51 nsISpicec.so
> > > -rw-r--r-- 1 root root 1.2K Aug 30 01:51 nsISpicec.xpt
> > >
> > > Has anyone an idea why the plugin crashes? I have sadly no idea how to
> > debug
> > > the plugin.
> > >
> > > Thank you very much
> > >
> > > Kind regards
> > > Ueli Banholzer
> > >
> > > _______________________________________________
> > > Spice-devel mailing list
> > > Spice-devel at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/spice-devel
> > >
> >
> 


More information about the Spice-devel mailing list