I've spent a frustrating weekend trying to get a simple python query to work in both v2.96 (Ubuntu 12.04) and v2.97 (Ubuntu 12.04 + WebUpd8 PPA)
I've also tried reloading 12.04 from scratch, updating and then repeating the following - but with the same results Anybody have any ideas on how to debug this further? >From the python interactive console I've typed: from gi.repository import RB, GLib db = shell.props.db query = GLib.PtrArray() db.query_append_params( query, RB.RhythmDBQueryType.EQUALS, RB.RhythmDBPropType.ARTIST, 'Culture Club' ) This produces a "segmentation fault (core dump)" error message at the execution of "db.query_append_params". There are a few "Culture Club" tracks so I was trying to query for them. Obviously to complete the query I think I need to db.do_full_query_parsed(query_model, query) but I cant get that far... running rhythmbox --debug I see the following at the point of the db.query_append_params and segmentation fault. (21:14:16) [0x9d1baa0] [rhythmdb_read_enter] rhythmdb.c:1229: counter: 1 (21:14:16) [0xabb4750] [query_thread_main] rhythmdb.c:4037: entering query thread (21:14:16) [0xabb4750] [rhythmdb_query_internal] rhythmdb.c:4014: doing query (21:14:16) [0xabb4750] [do_query_recurse] rhythmdb-tree.c:2305: doing recursive query, 1 conjunctions (21:14:16) [0xabb4750] [rhythmdb_query_model_add_results] rhythmdb-query-model.c:2248: adding 145 entries (21:14:16) [0xabb4750] [rhythmdb_query_internal] rhythmdb.c:4020: completed (21:14:16) [0x9d1baa0] [rhythmdb_read_enter] rhythmdb.c:1229: counter: 2 (21:14:16) [0xabb4750] [query_thread_main] rhythmdb.c:4037: entering query thread (21:14:16) [0xabb4750] [rhythmdb_query_internal] rhythmdb.c:4014: doing query (21:14:16) [0xabb4750] [do_query_recurse] rhythmdb-tree.c:2305: doing recursive query, 1 conjunctions (21:14:16) [0xabb4750] [rhythmdb_query_model_add_results] rhythmdb-query-model.c:2248: adding 0 entries (21:14:16) [0xabb4750] [rhythmdb_query_internal] rhythmdb.c:4020: completed (21:14:16) [0x9d1baa0] [idle_process_update] rhythmdb-query-model.c:1187: inserting 145 rows (21:14:16) [0x9d1baa0] [idle_process_update] rhythmdb-query-model.c:1187: inserting 0 rows (21:14:16) [0x9d1baa0] [rhythmdb_process_one_event] rhythmdb.c:2537: processing RHYTHMDB_EVENT_QUERY_COMPLETE (21:14:16) [0x9d1baa0] [rhythmdb_read_leave] rhythmdb.c:1243: counter: 1 (21:14:16) [0x9d1baa0] [rhythmdb_process_one_event] rhythmdb.c:2530: processing RHYTHMDB_EVENT_THREAD_EXITED (21:14:16) [0x9d1baa0] [rhythmdb_process_one_event] rhythmdb.c:2537: processing RHYTHMDB_EVENT_QUERY_COMPLETE (21:14:16) [0x9d1baa0] [rhythmdb_read_leave] rhythmdb.c:1243: counter: 0 (21:14:16) [0x9d1baa0] [rhythmdb_process_one_event] rhythmdb.c:2530: processing RHYTHMDB_EVENT_THREAD_EXITED Segmentation fault (core dumped)
_______________________________________________ rhythmbox-devel mailing list rhythmbox-devel@gnome.org https://mail.gnome.org/mailman/listinfo/rhythmbox-devel