GNOME Bugzilla – Bug 785227
Ubuntu 17.04 will not run with Gnome-Flashback on 3 out of 4 computers.
Last modified: 2017-07-23 11:17:53 UTC
Created attachment 356111 [details] Log Files With four brands of computers, three of the four exhibit this bug exactly the same way. None of them have this problem with Ubuntu 16.04. Proceedure: 1) Install Ubuntu 17.04 from live .iso image. Then: sudo apt-get install gnome-session-flashback gnome-flashback gnome-flashback-common. (There are also many other packages that are installed automatically. See the file: ____Flashback_install.log) 2) Then reboot (logging out and back in has the same effect), selecting GNOME-Flashback (Metacity) from the login menu. Results: The first time logging into Gnome-Flashback after installation, Gnome-Flashback works correctly. However, the second and subsequent times logging into Gnome-Flashback, the desktop is visible for a few milliseconds, and then the screen reverts back to the login screen. Re-selecting Unity at the login screen produces a working system, but Gnome-Flashback (either with Metacity or with Compiz) fails to function. Un-installing Gnome-Flashback, and then re-installing it does not change anything. It will not function even on the first login. Attached is the /var/log folder copied by another system after Gnome-Flashback failed and was shutdown. U1704_var_log.tar.gz From the syslog: Line 1: Jul 21 12:27:51 First run after installation of Ubuntu Desktop 64bit 17.04. During the first run, gnome-session-flashback, gnome-flashback, gnome-flashback-common were installed. The file, ____Flashback_install.log, details what was installed. This file was placed within the /var/log folder attachment to keep all records together. Line 3638: Jul 21 12:33:36 Rebooted into Gnome-Flashback Metacity. Gnome-Flashback worked as it should. Line 5315: Jul 21 12:37:37 Rebooted into Gnome-Flashback Metacity, displayed desktop for 1/2 second, and then returned to login screen. Line 7085: Jul 21 12:38:03 Shutdown
gnome-flashback segfaults, it is required application. gnome-session tries to restart it, but again it segfaults and you are logged out... First remove "gnome-flashback;" from /usr/share/gnome-session/sessions/gnome-flashback-metacity.session file. Before you do that create backup file for it. This should allow you to login. Open terminal and install gdb and gnome-flashback-dbgsym. You might need to read this first - https://wiki.ubuntu.com/Debug%20Symbol%20Packages. When you have installed gdb and gnome-flashback-dbgsym then run this command in your terminal: echo -e "r\nbt full" | gdb gnome-flashback It should produce stacktrace of your crash, please attach it here.
(In reply to Alberts Muktupāvels from comment #1) > gnome-flashback segfaults, it is required application. gnome-session tries > to restart it, but again it segfaults and you are logged out... > > First remove "gnome-flashback;" from > /usr/share/gnome-session/sessions/gnome-flashback-metacity.session file. > Before you do that create backup file for it. This should allow you to login. > > Open terminal and install gdb and gnome-flashback-dbgsym. You might need to > read this first - https://wiki.ubuntu.com/Debug%20Symbol%20Packages. > > When you have installed gdb and gnome-flashback-dbgsym then run this command > in your terminal: echo -e "r\nbt full" | gdb gnome-flashback > > It should produce stacktrace of your crash, please attach it here. Followed the instructions above. Could not log into Gnome-Flashback. Logged into Unity and installed gdb and gnome-flashback-dbgsym. Then, in a terminal within Unity, executed: echo -e "r\nbt full" | gdb gnome-flashback, as user and also as root. As root, some text was displayed, and then nothing, so I ctrl-c'd after 30 seconds. The results, as root, follow below. Thanks for your help! gary@x360d:~$ sudo -i [sudo] password for gary: root@x360d:~# echo -e "r\nbt full" | gdb gnome-flashback GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from gnome-flashback...Reading symbols from /usr/lib/debug/.build-id/58/bac083924208a0d4f2e793e8e988566631c2cd.debug...done. done. (gdb) Starting program: /usr/bin/gnome-flashback [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe7d81700 (LWP 2972)] [New Thread 0x7fffe7580700 (LWP 2978)] [New Thread 0x7fffe6d7f700 (LWP 2979)] [New Thread 0x7fffe657e700 (LWP 2980)] ** (gnome-flashback:2968): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files ** (gnome-flashback:2968): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject ** (gnome-flashback:2968): WARNING **: Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for the given subject [Thread 0x7fffe7580700 (LWP 2978) exited] ^C Thread 1 "gnome-flashback" received signal SIGINT, Interrupt. 0x00007ffff31ea18d in poll () at ../sysdeps/unix/syscall-template.S:84 84 ../sysdeps/unix/syscall-template.S: No such file or directory. (gdb) #0 0x00007ffff31ea18d in poll () at ../sysdeps/unix/syscall-template.S:84 No locals.
+ Trace 237683
A debugging session is active. Inferior 1 [process 2968] will be killed. Quit anyway? (y or n) [answered Y; input not from terminal] root@x360d:~#
(In reply to gary from comment #2) > (In reply to Alberts Muktupāvels from comment #1) > > gnome-flashback segfaults, it is required application. gnome-session tries > > to restart it, but again it segfaults and you are logged out... > > > > First remove "gnome-flashback;" from > > /usr/share/gnome-session/sessions/gnome-flashback-metacity.session file. > > Before you do that create backup file for it. This should allow you to login. > > > > Open terminal and install gdb and gnome-flashback-dbgsym. You might need to > > read this first - https://wiki.ubuntu.com/Debug%20Symbol%20Packages. > > > > When you have installed gdb and gnome-flashback-dbgsym then run this command > > in your terminal: echo -e "r\nbt full" | gdb gnome-flashback > > > > It should produce stacktrace of your crash, please attach it here. > > Followed the instructions above. Could not log into Gnome-Flashback. Logged > into Unity and installed gdb and gnome-flashback-dbgsym. Did you really remove gnome-flashback from *.session file? Did you try to login in Metacity session? If you tried to loggin in Compiz session then you need to do same with gnome-flashback-compiz.session file. If you did that and still cannot login then please attach /var/log/syslog again, maybe something else is crashing... :( > Then, in a terminal within Unity, executed: echo -e "r\nbt full" | gdb > gnome-flashback, as user and also as root. As root, some text was displayed, > and then nothing, so I ctrl-c'd after 30 seconds. The results, as root, > follow below. You should not do that as root! And also you should not try this from Unity session, there will be unrelated problems... > Thanks for your help! > > gary@x360d:~$ sudo -i > [sudo] password for gary: > root@x360d:~# echo -e "r\nbt full" | gdb gnome-flashback > GNU gdb (Ubuntu 7.12.50.20170314-0ubuntu1) 7.12.50.20170314-git > Copyright (C) 2017 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>. > Find the GDB manual and other documentation resources online at: > <http://www.gnu.org/software/gdb/documentation/>. > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from gnome-flashback...Reading symbols from > /usr/lib/debug/.build-id/58/bac083924208a0d4f2e793e8e988566631c2cd.debug... > done. > done. > (gdb) Starting program: /usr/bin/gnome-flashback > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7fffe7d81700 (LWP 2972)] > [New Thread 0x7fffe7580700 (LWP 2978)] > [New Thread 0x7fffe6d7f700 (LWP 2979)] > [New Thread 0x7fffe657e700 (LWP 2980)] > > ** (gnome-flashback:2968): WARNING **: Failed to register client: > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name > org.gnome.SessionManager was not provided by any .service files > > ** (gnome-flashback:2968): WARNING **: Unable to register authentication > agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An > authentication agent already exists for the given subject > > ** (gnome-flashback:2968): WARNING **: Cannot register authentication agent: > GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: An authentication agent > already exists for the given subject > [Thread 0x7fffe7580700 (LWP 2978) exited] > > ^C > Thread 1 "gnome-flashback" received signal SIGINT, Interrupt. > 0x00007ffff31ea18d in poll () at ../sysdeps/unix/syscall-template.S:84 > 84 ../sysdeps/unix/syscall-template.S: No such file or directory. > (gdb) #0 0x00007ffff31ea18d in poll () at > ../sysdeps/unix/syscall-template.S:84 > No locals.
Post output of: gsettings get org.gnome.gnome-flashback display-config
Created attachment 356126 [details] Logs after gdb test gsettings get org.gnome.gnome-flashback display-config returned true However, the above was executed in Unity, since it is only possible to log in via Unity. It is confirmed that the file, /usr/share/gnome-session/sessions/gnome-flashback-metacity.session, was first disabled by adding _bak to the filename, and now completed deleted. Have not tried to log in via Compiz, as it never worked before. The complete logs from /var/log are attached. This is from after running the gdb tests.
(In reply to gary from comment #5) > Created attachment 356126 [details] > Logs after gdb test > > gsettings get org.gnome.gnome-flashback display-config returned true > However, the above was executed in Unity, since it is only possible to log > in via Unity. Ok, setting should not be affected by running session. :) > It is confirmed that the file, > /usr/share/gnome-session/sessions/gnome-flashback-metacity.session, was > first disabled by adding _bak to the filename, and now completed deleted. > Have not tried to log in via Compiz, as it never worked before. > The complete logs from /var/log are attached. This is from after running the > gdb tests. You deleted that file? You should not delete it, you need to edit. Restore that file and open for editing. Then remove "gnome-flashback;" part from "RequiredComponents=" line. From Test_within_Unity_as_User.txt file I got in mail I found two possible sources for crashes, but not sure if that is your real problem. So still might be good to try to get in GNOME Flashback (Metacity) session and get stacktrace from crash. If you know how to rebuild debian packages with patches then you can try to do that with patches from last two commits from here: https://git.gnome.org/browse/gnome-flashback/log/?h=gnome-3-22
Created attachment 356129 [details] Log of gdb test from within Flashback gnome-flashback-metacity.session: [GNOME Session] Name=GNOME Flashback (Metacity) RequiredComponents=gnome-flashback-init;gnome-panel;metacity;org.gnome.SettingsDaemon.A11yKeyboard;org.gnome.SettingsDaemon.A11ySettings;org.gnome.SettingsDaemon.Clipboard;org.gnome.SettingsDaemon.Color;org.gnome.SettingsDaemon.Datetime;org.gnome.SettingsDaemon.Housekeeping;org.gnome.SettingsDaemon.Keyboard;org.gnome.SettingsDaemon.MediaKeys;org.gnome.SettingsDaemon.Mouse;org.gnome.SettingsDaemon.Orientation;org.gnome.SettingsDaemon.Power;org.gnome.SettingsDaemon.PrintNotifications;org.gnome.SettingsDaemon.Rfkill;org.gnome.SettingsDaemon.ScreensaverProxy;org.gnome.SettingsDaemon.Sharing;org.gnome.SettingsDaemon.Smartcard;org.gnome.SettingsDaemon.Sound;org.gnome.SettingsDaemon.Wacom;org.gnome.SettingsDaemon.XRANDR;org.gnome.SettingsDaemon.XSettings;nautilus-classic; With the removal of gnome-flashback from gnome-flashback-metacity.session, logging into Gnome-Flashback (Metacity) now works (at least twice now). (I had not deleted the file, I just moved it elsewhere.) I do not have much experience compiling or patching.
Please do same, but without running as root.
Created attachment 356136 [details] GDB test results executed by user I have confirmed that removing gnome-flashback from the sessions file works on two computers by different manufacturers. Attached is the gdb test run as a user, instead of by root.
Stacktrace looks same so I might have fixed this bug. :) Do you have touchscreen? Or maybe you have connected something other then mouse and/or keyboard? You will have to open bug in launchpad.net to get this fix in ubuntu. When you are opening bug please use SRU template: https://wiki.ubuntu.com/StableReleaseUpdates#SRU_Bug_Template I can try to create PPA for you to test fix if you want, do you need it?
My computer has a touch-screen, which I don't use. Is there more to the fix than just removing gnome-flashback from gnome-flashback-metacity.session? If not, then I can make that change in my own computers. If it is more complicated than that, then perhaps the PPA is a good idea. I will open the bug in launchpad.net and use the template.
(In reply to gary from comment #11) > My computer has a touch-screen, which I don't use. That explains your crashes. :) > Is there more to the fix than just removing gnome-flashback from > gnome-flashback-metacity.session? If not, then I can make that change in my > own computers. If it is more complicated than that, then perhaps the PPA is > a good idea. Well you need gnome-flashback started so it is not option to remove it from required components. We did it only to allow you login and get stacktrace. https://launchpad.net/~muktupavels/+archive/ubuntu/bug785227 PPA created, it builds now and patched packages should be available soon. Please test and report if that fixes your problem. Make sure that gnome-flashback is added back to that file. > I will open the bug in launchpad.net and use the template. Ok, thanks.
Performed a fresh install of Ubuntu 17.04 Desktop 64bit. 1) In Unity System Settings, un-set "Tap to Click" for touchpad (mouse) and confirmed that "Natural Scrolling" was set and working. 2) sudo add-apt-repository ppa:muktupavels/bug785227 && sudo apt-get update 3) sudo apt-get install gnome-session-flashback gnome-flashback gnome-flashback-common 4) reboot and login with Gnome-Flashback (Metacity) selection. 5) System Settings: Mouse: set "Natural Scrolling". There is no selection to turn off "Tap to Click". Results: Natural scrolling is selected but not working. Cannot find any settings in gconf or dconf that have any effect on the touchpad. In Ubuntu 16.04 Gnome-Flashback, the System Settings were the same as with Unity, and worked correctly. In this 17.04 version, System Settings for the touchpad are less than in Unity, and the "Natural Scrolling" setting does not work. I have not done any further testing of the PPA Gnome-Flashback because of the touchpad limitations. (My whole purpose of using Gnome-Flashback was to get back the customization features that Unity took away.) How can I get back the more complete System Settings that Gnome-Flashback had in 16.04?
(In reply to gary from comment #13) > Performed a fresh install of Ubuntu 17.04 Desktop 64bit. > 1) In Unity System Settings, un-set "Tap to Click" for touchpad (mouse) and > confirmed that "Natural Scrolling" was set and working. > 2) sudo add-apt-repository ppa:muktupavels/bug785227 && sudo apt-get update > 3) sudo apt-get install gnome-session-flashback gnome-flashback > gnome-flashback-common > 4) reboot and login with Gnome-Flashback (Metacity) selection. > 5) System Settings: Mouse: set "Natural Scrolling". There is no selection to > turn off "Tap to Click". First, does PPA fixes your first problem - gnome-flashback crash on session start? Next, please open new bugs for new problems. Lets leave this bug report for gnome-flashback segfault. > Results: > Natural scrolling is selected but not working. > Cannot find any settings in gconf or dconf that have any effect on the > touchpad. Does natural scrolling work for mouse? Or it does not work completely? I will turn on my laptop later to try reproduce your problem. > In Ubuntu 16.04 Gnome-Flashback, the System Settings were the same as with > Unity, and worked correctly. In this 17.04 version, System Settings for the > touchpad are less than in Unity, and the "Natural Scrolling" setting does > not work. In 16.04 GNOME Flashback was using same settings daemon and control center that was used by Unity, but in 17.04 we switched back it to use GNOME settings daemon and control center. > I have not done any further testing of the PPA Gnome-Flashback because of > the touchpad limitations. (My whole purpose of using Gnome-Flashback was to > get back the customization features that Unity took away.) PPA only included two patches that are supposed to fix crash/segfault. Otherwise it is same version that is available in Ubuntu. You wont be able to get everything you had in Unity in GNOME Flashback, depends on features you want. > How can I get back the more complete System Settings that Gnome-Flashback > had in 16.04? You can not. Upstream GNOME Flashback is developed to work with upstream GNOME Settings Daemon & Control Center... Using Unity things in GNOME Flashback was just hack to get that session working in Ubuntu when upstream session more or less had become unusable. Things has changed since then.
Ok, found the problem. Ubuntu use synaptics driver that is not supported by GNOME. I just purged it and reboot and now there are touchpad settings in GNOME Control Center. I used this command to remove synaptics: sudo apt-get purge synaptics* I don't use Unity, but pretty sure that it will cause problems in Unity session...
(In reply to Alberts Muktupāvels from comment #14) > (In reply to gary from comment #13) > > Performed a fresh install of Ubuntu 17.04 Desktop 64bit. > > 1) In Unity System Settings, un-set "Tap to Click" for touchpad (mouse) and > > confirmed that "Natural Scrolling" was set and working. > > 2) sudo add-apt-repository ppa:muktupavels/bug785227 && sudo apt-get update > > 3) sudo apt-get install gnome-session-flashback gnome-flashback > > gnome-flashback-common > > 4) reboot and login with Gnome-Flashback (Metacity) selection. > > 5) System Settings: Mouse: set "Natural Scrolling". There is no selection to > > turn off "Tap to Click". > > First, does PPA fixes your first problem - gnome-flashback crash on session > start? Next, please open new bugs for new problems. Lets leave this bug > report for gnome-flashback segfault. Yes, the PPA does fix the crash on session start. Thank you for that! > > > Results: > > Natural scrolling is selected but not working. > > Cannot find any settings in gconf or dconf that have any effect on the > > touchpad. > > Does natural scrolling work for mouse? Or it does not work completely? I > will turn on my laptop later to try reproduce your problem. Yes, the scroll direction can be controlled for the mouse wheel, but not the touchpad. I received Comment 15 while writing this reply and followed the instructions to purge synaptic*, rebooted, and now the touchpad is supported. Thank again!!! > > > In Ubuntu 16.04 Gnome-Flashback, the System Settings were the same as with > > Unity, and worked correctly. In this 17.04 version, System Settings for the > > touchpad are less than in Unity, and the "Natural Scrolling" setting does > > not work. > > In 16.04 GNOME Flashback was using same settings daemon and control center > that was used by Unity, but in 17.04 we switched back it to use GNOME > settings daemon and control center. > > > I have not done any further testing of the PPA Gnome-Flashback because of > > the touchpad limitations. (My whole purpose of using Gnome-Flashback was to > > get back the customization features that Unity took away.) > > PPA only included two patches that are supposed to fix crash/segfault. > Otherwise it is same version that is available in Ubuntu. > > You wont be able to get everything you had in Unity in GNOME Flashback, > depends on features you want. > > > How can I get back the more complete System Settings that Gnome-Flashback > > had in 16.04? > > You can not. Upstream GNOME Flashback is developed to work with upstream > GNOME Settings Daemon & Control Center... Using Unity things in GNOME > Flashback was just hack to get that session working in Ubuntu when upstream > session more or less had become unusable. Things has changed since then. Now that the touchpad has settings, I will proceed further in my evaluation/use of Ubuntu 17.04 with Gnome-Flashback. I don't use Unity, because I want the features that Gnome 2 offered, which is why I use Flashback. With Ubuntu dropping Unity and going to Ubuntu Gnome as the new standard, will Gnome-Flashback be offered for Ubuntu-Gnome?
(In reply to gary from comment #16) > (In reply to Alberts Muktupāvels from comment #14) > > (In reply to gary from comment #13) > > > Performed a fresh install of Ubuntu 17.04 Desktop 64bit. > > > 1) In Unity System Settings, un-set "Tap to Click" for touchpad (mouse) and > > > confirmed that "Natural Scrolling" was set and working. > > > 2) sudo add-apt-repository ppa:muktupavels/bug785227 && sudo apt-get update > > > 3) sudo apt-get install gnome-session-flashback gnome-flashback > > > gnome-flashback-common > > > 4) reboot and login with Gnome-Flashback (Metacity) selection. > > > 5) System Settings: Mouse: set "Natural Scrolling". There is no selection to > > > turn off "Tap to Click". > > > > First, does PPA fixes your first problem - gnome-flashback crash on session > > start? Next, please open new bugs for new problems. Lets leave this bug > > report for gnome-flashback segfault. > > Yes, the PPA does fix the crash on session start. Thank you for that! Nice. :) Now please open/create bug report in launchpad.net for gnome-flashback. First fix will be uploaded for 17.10 and only then for 17.04. I will delete PPA when fix will be available in 17.10 & 17.04. > > > Results: > > > Natural scrolling is selected but not working. > > > Cannot find any settings in gconf or dconf that have any effect on the > > > touchpad. > > > > Does natural scrolling work for mouse? Or it does not work completely? I > > will turn on my laptop later to try reproduce your problem. > > Yes, the scroll direction can be controlled for the mouse wheel, but not the > touchpad. I received Comment 15 while writing this reply and followed the > instructions to purge synaptic*, rebooted, and now the touchpad is > supported. Thank again!!! > > > > > > In Ubuntu 16.04 Gnome-Flashback, the System Settings were the same as with > > > Unity, and worked correctly. In this 17.04 version, System Settings for the > > > touchpad are less than in Unity, and the "Natural Scrolling" setting does > > > not work. > > > > In 16.04 GNOME Flashback was using same settings daemon and control center > > that was used by Unity, but in 17.04 we switched back it to use GNOME > > settings daemon and control center. > > > > > I have not done any further testing of the PPA Gnome-Flashback because of > > > the touchpad limitations. (My whole purpose of using Gnome-Flashback was to > > > get back the customization features that Unity took away.) > > > > PPA only included two patches that are supposed to fix crash/segfault. > > Otherwise it is same version that is available in Ubuntu. > > > > You wont be able to get everything you had in Unity in GNOME Flashback, > > depends on features you want. > > > > > How can I get back the more complete System Settings that Gnome-Flashback > > > had in 16.04? > > > > You can not. Upstream GNOME Flashback is developed to work with upstream > > GNOME Settings Daemon & Control Center... Using Unity things in GNOME > > Flashback was just hack to get that session working in Ubuntu when upstream > > session more or less had become unusable. Things has changed since then. > > Now that the touchpad has settings, I will proceed further in my > evaluation/use of Ubuntu 17.04 with Gnome-Flashback. > > I don't use Unity, because I want the features that Gnome 2 offered, which > is why I use Flashback. With Ubuntu dropping Unity and going to Ubuntu Gnome > as the new standard, will Gnome-Flashback be offered for Ubuntu-Gnome? GNOME Flashback will be available and you will have to install it same way as you do it now.