Bug 1220899 - Firefox freeze when I try start spice plugin in RHEV or oVirt administration console.
Summary: Firefox freeze when I try start spice plugin in RHEV or oVirt administration ...
Keywords:
Status: CLOSED DUPLICATE of bug 1217076
Alias: None
Product: Fedora
Classification: Fedora
Component: spice-xpi
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Hatina
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-12 18:54 UTC by Joao Barbosa
Modified: 2016-06-01 01:33 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-05-13 20:44:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Joao Barbosa 2015-05-12 18:54:55 UTC
Description of problem:

Firefox freeze when I try start spice plugin in RHEV or oVirt administration console.
After some seconds the firefox return with error script, requesting abort or wait script processing, after this, firefox offer to user a report error option.

Version-Release number of selected component (if applicable):

Fedora release 22
spice-xpi-2.8.90-6.fc22.x86_64
firefox-37.0.2-3.fc22.x86_64

How reproducible:
Install spice-xpi and try to open a VM spice console in RHEV/oVirt administration interface

Steps to Reproduce:
1. Install spice-xpi (sudo dnf install spice-xpi)
2. Restart firefox
3. Access the RHEV/oVirt web administration console
4. Click on any VM console (that use spice)

Actual results:
After some seconds (around 45 seconds) the firefox return a error, request to abort or wait finshed script processing. After this, firefox offer to user a report error option.

Expected results:
Is expected open spice console

Additional info:
No SELinux AVC error are showing in /var/log/audit/audit.log

Logs reported during try use spice through the RHEV and oVirt

Mai 12 15:37:45 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: (plugin-container:14292): SpiceXPI-WARNING **: main client cmdline: /usr/libexec/spice-xpi-client
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: (plugin-container:14292): SpiceXPI-CRITICAL **: controller connect: Arquivo ou diretório não encontrado
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14297]: starting remote-viewer --spice-controller ...
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_VTNR=2
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XSUNTRANSPORT=shmem
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SSH_AGENT_PID=8802
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_SESSION_ID=3
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: HOSTNAME=joao-desktop.fpti.pti.org.br
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GIO_LAUNCHED_DESKTOP_FILE_PID=12161
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_MENU_PREFIX=gnome-
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SHELL=/bin/bash
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: HISTSIZE=1000
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XRE_PROFILE_NAME=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LD_PRELOAD=/usr/lib64/firefox/libmozgtk2.so
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GJS_DEBUG_OUTPUT=stderr
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: QTDIR=/usr/lib64/qt-3.3
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GJS_DEBUG_TOPICS=JS ERROR;JS LOG
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: QTINC=/usr/lib64/qt-3.3/include
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZILLA_FIVE_HOME=/usr/lib64/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: NSS_SSL_CBC_RANDOM_IV=1
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: QT_GRAPHICSSYSTEM_CHECKED=1
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XRE_PROFILE_LOCAL_PATH=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: USER=joao
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XRE_START_OFFLINE=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LD_LIBRARY_PATH=/usr/lib64/firefox:/usr/lib64/firefox:/usr/lib64/firefox/plugins:/usr/lib64/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GNOME_DISABLE_CRASH_DIALOG=1
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/8786,unix/unix:/tmp/.ICE-unix/8786
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: USERNAME=joao
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LIBPATH=/usr/lib64/firefox:/usr/lib64/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_APP_LAUNCHER=/usr/bin/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_PLUGIN_PATH=/usr/lib64/mozilla/plugins-wrapped:/usr/lib64/firefox/plugins-wrapped
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/firefox.desktop
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GNOME_SHELL_SESSION_MODE=classic
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: FONTCONFIG_PATH=/etc/fonts:/usr/lib64/firefox/res/Xft
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/home/joao/.local/bin:/home/joao/bin
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: DESKTOP_SESSION=gnome-classic
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MAIL=/var/spool/mail/joao
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: QT_IM_MODULE=ibus
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_SESSION_TYPE=x11
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: PWD=/home/joao
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XMODIFIERS=@im=ibus
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LANG=pt_BR.UTF-8
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XRE_PROFILE_PATH=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GDM_LANG=pt_BR.UTF-8
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MODULEPATH=/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LOADEDMODULES=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XSUNSMESIZE=512
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GDMSESSION=gnome-classic
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: HISTCONTROL=ignoredups
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_SEAT=seat0
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: HOME=/home/joao
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SHLVL=2
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_CRASHREPORTER_EVENTS_DIRECTORY=/home/joao/.mozilla/firefox/hn7g810c.default/crashes/events
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: GNOME_DESKTOP_SESSION_ID=this-is-deprecated
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: DYLD_LIBRARY_PATH=/usr/lib64/firefox:/usr/lib64/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LOGNAME=joao
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_SESSION_DESKTOP=gnome-classic
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_LAUNCHED_CHILD=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_GRE_CONF=/etc/gre.d/gre64.conf
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: CVS_RSH=ssh
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: QTLIB=/usr/lib64/qt-3.3/lib
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-EDoF4tgZi1,guid=9496790f8433197f0ddeab39555234ea
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SPICE_XPI_SOCKET=/tmp/spicec-dJWTrh/spice-xpi
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: NO_EM_RESTART=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MODULESHOME=/usr/share/Modules
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: LESSOPEN=||/usr/bin/lesspipe.sh %s
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_CRASHREPORTER_RESTART_ARG_1=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: SHLIB_PATH=/usr/lib64/firefox:/usr/lib64/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XRE_BINARY_PATH=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_CRASHREPORTER_RESTART_ARG_0=/usr/bin/firefox
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: WINDOWPATH=2
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_RUNTIME_DIR=/run/user/1000
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: DISPLAY=:1
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XUL_APP_FILE=
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_CRASHREPORTER_DATA_DIRECTORY=/home/joao/.mozilla/firefox/Crash Reports
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XDG_CURRENT_DESKTOP=GNOME-Classic:GNOME
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: MOZ_CRASHREPORTER_STRINGS_OVERRIDE=/usr/lib64/firefox/browser/crashreporter-override.ini
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: NO_AT_BRIDGE=1
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: XAUTHORITY=/run/user/1000/gdm/Xauthority
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: BASH_FUNC_module()=() {  eval `/usr/bin/modulecmd bash $*`
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: }
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: BASH_FUNC_scl()=() {  local CMD=$1;
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: if [ "$CMD" = "load" -o "$CMD" = "unload" ]; then
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: eval "module $@";
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: else
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: /usr/bin/scl "$@";
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: fi
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: }
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14299]: _=/usr/bin/env
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14301]: 
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br spice[14301]: (remote-viewer:14300): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br kernel: traps: remote-viewer[14300] trap int3 ip:7fa7a02dd36b sp:7ffcb024a600 error:0
Mai 12 15:37:45 joao-desktop.fpti.pti.org.br audit[14300]: <audit-1701> auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=14300 comm="remote-viewer" exe="/usr/bin/remote-viewer" sig=5
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br spice[14304]: remote-viewer execution failed
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: SpiceXPI-Message: Client with pid 0x37d7 exited
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: (plugin-container:14292): SpiceXPI-CRITICAL **: could not get browser window, when trying to call OnDisconnected
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br gdb[14325]: detected unhandled Python exception
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br abrt-server[14303]: Deleting problem directory ccpp-2015-05-12-15:37:45-14300 (dup of ccpp-2015-05-11-18:34:13-3608)
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br dbus[667]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Mai 12 15:37:46 joao-desktop.fpti.pti.org.br dbus[667]: [system] Successfully activated service 'org.freedesktop.problems'
Mai 12 15:38:30 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: (plugin-container:14292): SpiceXPI-WARNING **: error connecting
Mai 12 15:38:30 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: (plugin-container:14292): SpiceXPI-WARNING **: failed to create pipe
Mai 12 15:38:30 joao-desktop.fpti.pti.org.br firefox.desktop[12161]: (plugin-container:14292): SpiceXPI-CRITICAL **: could not connect to spice client controller

Comment 1 Christophe Fergeau 2015-05-12 19:10:36 UTC
There's a known crash which looks like it could be what you are hitting. Could you try the workaround suggested in https://bugzilla.redhat.com/show_bug.cgi?id=1217076#c26 ?

Comment 2 Douglas Schilling Landgraf 2015-05-12 19:37:06 UTC
(In reply to Christophe Fergeau from comment #1)
> There's a known crash which looks like it could be what you are hitting.
> Could you try the workaround suggested in
> https://bugzilla.redhat.com/show_bug.cgi?id=1217076#c26 ?

I have faced the same report and the workaround of editing /usr/libexec/spice-xpi-client and adding on top unset LD_PRELOAD worked. Just to mention, was required to close and re-open firefox. Joao, please confirm if it worked for you as well.

Comment 3 Joao Barbosa 2015-05-12 20:01:43 UTC
Hi Christophe,

Really, it's the same problem.
With your small hack, now are working

"unset LD_PRELOAD"  in /usr/libexec/spice-xpi-client

But that's still a bug, and from what I understand the issue is with the plugin-container firefox.

Finally, where should leave the patch, spice or firefox?

Thanks

Comment 4 Christophe Fergeau 2015-05-13 20:44:09 UTC
(In reply to Joao Barbosa from comment #3)
> But that's still a bug, and from what I understand the issue is with the
> plugin-container firefox.

Yes of course it's still a bug, but since this workaround works for you, we are pretty sure what exactly the bug is about.

> Finally, where should leave the patch, spice or firefox?

Not 100% sure yet, the right fix probably belongs in firefox, but getting a workaround in the virt-viewer package for now will probably be easier.

Comment 5 Christophe Fergeau 2015-05-13 20:44:54 UTC

*** This bug has been marked as a duplicate of bug 1217076 ***

Comment 6 Anatoly Litovsky 2015-06-09 05:38:54 UTC
kudos for the workaround


Note You need to log in before you can comment on or make changes to this bug.