Crash on Edit Profile

Bug #778676 reported by Ryan Miller
66
This bug affects 11 people
Affects Status Importance Assigned to Milestone
sabayon (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: sabayon

Ubuntu 11.04 x86

After installing it via "sudo apt-get install sabayon", I am able to open it via "sudo sabayon". I create a profile, but whenever I click the Edit button I get the following error:

"A fatal error has occurred. You can help us fix the problem by sending the log in /etc/sabayon/sabayon-debug-log.conf to http://bugzilla.gnome.org"

There was no such file in /etc/sabayon but an error file does get created in /root. The file contained the following:

===== BEGIN MILESTONES (/usr/bin/sabayon) =====
MainThread 2011/05/06 13:54:03.6592 (admin-tool): Creating profiles dialog
MainThread 2011/05/06 13:54:03.6989 (admin-tool): Starting main loop
MainThread 2011/05/06 13:54:07.0527 (admin-tool): Got fatal error: sabayon-session exited with a FATAL ERROR (exit code 1)
MainThread 2011/05/06 13:54:07.1172 (admin-tool): Terminating main loop
MainThread 2011/05/06 13:54:07.1172 (admin-tool): Exiting abnormally; dumping log due to a fatal error
===== END MILESTONES (/usr/bin/sabayon) =====
===== BEGIN RING BUFFER (/usr/bin/sabayon) =====
MainThread 2011/05/06 13:54:03.6592 (admin-tool): Creating profiles dialog
MainThread 2011/05/06 13:54:03.6989 (admin-tool): Starting main loop
MainThread 2011/05/06 13:54:06.3275 (USER): Starting to edit profile 'test'
MainThread 2011/05/06 13:54:07.0527 (admin-tool): Got fatal error: sabayon-session exited with a FATAL ERROR (exit code 1)
MainThread 2011/05/06 13:54:07.1134 (USER): Finishing editing profile
MainThread 2011/05/06 13:54:07.1172 (admin-tool): Terminating main loop
MainThread 2011/05/06 13:54:07.1172 (admin-tool): Exiting abnormally; dumping log due to a fatal error
===== END RING BUFFER (/usr/bin/sabayon) =====

This configuration for the debug log can be re-created
by putting the following in /etc/sabayon/sabayon-debug-log.conf
(use ';' to separate domain names):

[debug log]
max lines = 1000

Tags: patch
Revision history for this message
Robin (rfbin) wrote :

Looks like this has been going on for quite some time now. (2007)
https://bugs.launchpad.net/ubuntu/+source/sabayon/+bug/150068

Revision history for this message
greg (noh-spam-jose) wrote :

+1 (Linux school 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux)

Revision history for this message
greg (noh-spam-jose) wrote :

My symptoms are exactly the same as Ryan's If this were a commercial project, This bug would be a sev1 - stop ship. How comes it's languishing unassigned.
(I'm not a coder, or I'd offer to help out ;o)

Someone please fix this as I urgently need it to set up a pre-school PC (Natty/Edubuntu/Unity) so that pre-school kids are ONLY able to run the programs appropriate for their age/capability and NOTHING else. The reason I suggested Linux over their existing XP setup is because I thought it handled exactly this use case. I presume Sabayon is able to achieve this in Unity?

Cheers, (and thanks for your anticipated urgent attention)

Greg
(I did add myself to the 'also affects' link but wanted to add comments too)

Changed in sabayon (Ubuntu):
status: New → Confirmed
Revision history for this message
David Burke (bufke) wrote :

I have a fix, edit line 276 in /usr/lib/pymodules/python2.7/sabayon/protosession.py

Change the h's to i's so it looks like this
pack_format = ">ii%dsi%dsi%dsi%d" % (display_addr_len, display_num_len, xauth_name_len, xauth_data_len)

It will then work. Hopefully someone can patch this.

Revision history for this message
David Burke (bufke) wrote :

Actually H (capital) is more correct than i. H is an unsigned short.

Check out /usr/include/X11/Xauth.h

typedef struct xauth {
    unsigned short family;
    unsigned short address_length;
    char *address;
    unsigned short number_length;
    char *number;
    unsigned short name_length;
    char *name;
    unsigned short data_length;
    char *data;
} Xauth;

It should be an unsigned short (H) instead of just a short (h). Int (i) happens to work as well but unsigned short is more correct.

For those who just want sabayon to work do
sudo nano +276 /usr/lib/pymodules/python2.7/sabayon/protosession.py
and make the h's into H's so it looks like
pack_format = ">HH%dsH%dsH%dsH%d" % (display_addr_len, display_num_len, xauth_name_len, xauth_data_len)

tags: added: patch
Revision history for this message
JPHein (jp-jphein) wrote :
Download full text (9.9 KiB)

With Maverick Meerkat 10.10 I am still getting this error. Sabayon 2.30
apt-cache policy sabayon
sabayon:
  Installed: 2.30.0-1
  Candidate: 2.30.0-1
  Version table:
 *** 2.30.0-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

Also, even after applying the above patch I get this error:

ainThread 2011/09/19 12:26:32.9783 (admin-tool): Creating profiles dialog
MainThread 2011/09/19 12:26:33.3229 (admin-tool): Starting main loop
MainThread 2011/09/19 12:26:39.1700 (USER): Starting to edit profile 'staff'
No protocol specified
/usr/lib/pymodules/python2.6/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
MainThread 2011/09/19 12:26:40.3308 (sabayon-session): Starting session window for profile_name='staff', profile_path='/tmp/profile-sabayon-admin-GthqmZ.zip', display_number='3'
/usr/lib/pymodules/python2.6/sabayon/sessionwindow.py:77: GtkWarning: IA__gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  icon_theme = gtk.icon_theme_get_default ()
MainThread 2011/09/19 12:26:40.4576 (sabayon-session): Fatal exception! Exiting abnormally.
MainThread 2011/09/19 12:26:40.4587 (sabayon-session): Traceback (most recent call last):
  File "/usr/lib/sabayon/sabayon-session", line 75, in <module>
    window = sessionwindow.SessionWindow (profile_name, profile_path, display_number)
  File "/usr/lib/pymodules/python2.6/sabayon/sessionwindow.py", line 149, in __init__
    self.changes_model = ProfileChangesModel (self.profile)
  File "/usr/lib/pymodules/python2.6/sabayon/sessionwindow.py", line 79, in __init__
    self.locked_pixbuf = icon_theme.load_icon ("stock_lock", 22,
AttributeError: 'NoneType' object has no attribute 'load_icon'

===== BEGIN MILESTONES (/usr/lib/sabayon/sabayon-session) =====
MainThread 2011/09/19 12:26:40.3308 (sabayon-session): Starting session window for profile_name='staff', profile_path='/tmp/profile-sabayon-admin-GthqmZ.zip', display_number='3'
MainThread 2011/09/19 12:26:40.4576 (sabayon-session): Fatal exception! Exiting abnormally.
MainThread 2011/09/19 12:26:40.4587 (sabayon-session): Traceback (most recent call last):
  File "/usr/lib/sabayon/sabayon-session", line 75, in <module>
    window = sessionwindow.SessionWindow (profile_name, profile_path, display_number)
  File "/usr/lib/pymodules/python2.6/sabayon/sessionwindow.py", line 149, in __init__
    self.changes_model = ProfileChangesModel (self.profile)
  File "/usr/lib/pymodules/python2.6/sabayon/sessionwindow.py", line 79, in __init__
    self.locked_pixbuf = icon_theme.load_icon ("stock_lock", 22,
AttributeError: 'NoneType' object has no attribute 'load_icon'

===== END MILESTONES (/usr/lib/sabayon/sabayon-session) =====
===== BEGIN RING BUFFER (/usr/lib/sabayon/sabayon-session) =====
MainThread 2011/09/19 12:26:40.3308 (sabayon-session): Starting session window for profile_name='staff', profile_path='/tmp/profile-sabayon-admin-GthqmZ.zip', display_number='3'
MainThread 2011/09/19 12:26:40.4576 (sabayon-session): Fatal exception! Exiting abnormally.
MainThread 2011/09/19 12:26:40.4587 (sabayon-session): Traceba...

Revision history for this message
David Burke (bufke) wrote :

11.10 doesn't run even with my fix. Are we just giving up on sabayon? It's very important to anyone managing Linux desktops.

I'm trying to figure out how to make it work. sessionwindow.py line 82 loads an image that apparently no longer exists in gnome 3.2. I changed "stock_lock-open" to "stock_lock" to get around.

Now I get
MainThread 2011/10/20 22:55:12.8848 (admin-tool): Got fatal error: Fatal exception in callback; exiting main loop
MainThread 2011/10/20 22:55:12.8873 (admin-tool): Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/sabayon/errors.py", line 125, in wrapper
    return func (*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/sabayon/sessionwindow.py", line 330, in __session_mapped
    self.session.start (str (self.session_widget.session_window.xid))
  File "/usr/lib/pymodules/python2.7/sabayon/protosession.py", line 493, in start
    self.__start_session ()
  File "/usr/lib/pymodules/python2.7/sabayon/protosession.py", line 434, in __start_session
    os.execve (SESSION_ARGV[0], SESSION_ARGV, new_environ)
OSError: [Errno 2] No such file or directory
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python: ../../src/xcb_io.c:273: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
MainThread 2011/10/20 22:55:19.1897 (admin-tool): sabayon-session exited with SIGNAL 6
usermod: user sabayon-admin is currently logged in
MainThread 2011/10/20 22:55:19.3921 (USER): Finishing editing profile
MainThread 2011/10/20 22:55:23.4101 (admin-tool): Terminating main loop
MainThread 2011/10/20 22:55:23.4105 (admin-tool): Exiting normally

Revision history for this message
ROC Texas (roc-texas) wrote :

I am running Ubuntu 10.04 (a basic install) I discovered something interesting in troubleshooting this problem with Sabayon. It fixed the problem for me. I noticed that the resolution was set to 800x600 on the server which seemed low to me, so I bumped it up to 1024x768 and the Sabayon problem went away. Before, I would create a profile and when I clicked on the edit button Sabayon would crash. Now after bumping up the resolution, when I create a profile and click on edit...the virtual desktop of the profile loads just fine. i figured this out because I had another server running the exact same version of Sabayon and Ubuntu and everything worked just fine.

Revision history for this message
ROC Texas (roc-texas) wrote :

I know this is a really old thread, but I thought I would throw that out there for those of us who like the Sabayon features.

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for taking the time to report this bug and trying to help make Ubuntu better. However, this package is no longer part of Ubuntu repositories. Because of this the Ubuntu project can not support or fix your particular bug. Please report this bug to the provider of the software package. Thanks!

If you are interested in learning more about software repositories and Ubuntu, check https://help.ubuntu.com/community/Repositories

Changed in sabayon (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.