Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Sep 2010 17:39:01 -0400
From:      Joe Marcus Clarke <marcus@freebsd.org>
To:        dokas@oitsec.umn.edu
Cc:        gnome@freebsd.org, python@freebsd.org
Subject:   Re: rhythmbox and python
Message-ID:  <4C93DFF5.7060007@freebsd.org>
In-Reply-To: <4C92B6B5.20403@oitsec.umn.edu>
References:  <4C92B6B5.20403@oitsec.umn.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 9/16/10 8:30 PM, Paul Dokas wrote:
> After the recent update to python, rhythmbox has ceased to function for me.
> When I start it up, it simply exits.  With debugging turned on (-d option),
> I get this:
> 
> .
> .
> .
> (19:23:26) [0x70807040] [rb_source_header_view_browser_changed_cb] rb-source-header.c:836: got view browser toggle
> (19:23:26) [0x70807040] [rb_source_header_view_browser_changed_cb] rb-source-header.c:849: got view browser toggle
> (19:23:26) [0x70807040] [rb_statusbar_set_property] rb-statusbar.c:325: selected source 0x70c14120
> (19:23:26) [0x70807040] [rb_statusbar_sync_status] rb-statusbar.c:444: updating status with: '0 songs', '', -1.000000
> (19:23:26) [0x70807040] [_uri_handle_recurse] rb-file-helpers.c:759: error enumerating file:///home/dokas/.gnome2/rhythmbox/plugins:
> No such file or directory
> (19:23:26) [0x70807040] [_uri_handle_recurse] rb-file-helpers.c:759: error enumerating
> file:///home/dokas/.local/share/rhythmbox/plugins: No such file or directory
> (19:23:26) [0x70807040] [rb_plugins_engine_load] rb-plugins-engine.c:116: Loading plugin:
> /usr/local/lib/rhythmbox/plugins/artdisplay/artdisplay.rb-plugin
> (19:23:26) [0x70807040] [rb_plugins_engine_load] rb-plugins-engine.c:206: Could not find 'Icon' in
> /usr/local/lib/rhythmbox/plugins/artdisplay/artdisplay.rb-plugin
> (19:23:26) [0x70807040] [rb_plugins_engine_load_cb] rb-plugins-engine.c:299: Plugin Cover art loaded
> (19:23:26) [0x70807040] [rb_python_module_init] rb-python-module.c:420: Init of python module
> 
> and it exits.  I've only begun to look for the cause and am asking in case
> someone has already found and fixed this.  Things I've tried so far:
> 
>   rebuild and reinstall python 2.6.6
>   rebuild and reinstall the python modules on which rhythmbox depends:
>     py26-cairo, py26-libxml, py26-gobject, py26-gtk, py26-gstreamer
> 
> Nothing has worked so far.
> 
> 
> Oh, and this is on 8.1-RELEASE on both amd64 and i386.

This looks like a threading problem with Python.  I'm seeing a crash
(with next to no details) that seems to stem from Python and threads.
I'm copying python@ here.

Python guys, after an upgrade to 2.6.6, starting audio/rhythmbox results
in a crash.  Gdb reports:

0x0804b327 in main (argc=1235131264, argv=0x2) at main.c:330
330			pyg_begin_allow_threads;

(and nothing else, weird)

This function is a macro defined in pygobject.h to be:

#define pyg_begin_allow_threads                 \
    G_STMT_START {                              \
        PyThreadState *_save = NULL;            \
        if (_PyGObject_API->threads_enabled)    \
            _save = PyEval_SaveThread();
#define pyg_end_allow_threads                   \
        if (_PyGObject_API->threads_enabled)    \
            PyEval_RestoreThread(_save);        \
    } G_STMT_END

Python has been built with default threading (but no pth).  Counting
myself, three users have reported this problem on RELENG_8.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C93DFF5.7060007>