Filesystem browser stops listing files with GtkWarning

Bug #155348 reported by Michael Macnair
26
Affects Status Importance Assigned to Milestone
quodlibet (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: quodlibet

I can't reproduce this reliably, however it usually happens after browsing for a little while.

The bug is manifest like this: select a folder that contains music files, it displays the files. Select another folder that also contains music, and it doesn't display them - once this has happened it doesn't matter what folder you select (including the previous working folder) - no files will be displayed again until you switch out and back in to the filesystem view. Everything else continues to work: switching to another view and playing files from there; the currently playing song continues to play; the gui is responsive, etc etc.

The error that is spat out when it first fails to list the contents of the folder is:
/usr/share/quodlibet/browsers/filesystem.py:148: GtkWarning: gtk_tree_selection_get_selected_rows: assertion `GTK_IS_TREE_SELECTION (selection)' failed
  model, rows = selection.get_selected_rows()

If you want me to run QL in any kind of debug mode until the bug reappears, I can do so.

SOLUTION:
https://www.sacredchao.net/quodlibet/changeset/4189 is confirmed to be the fix to this issue. It has existed for some time, but there hasn't yet been a ql release to incorporate this fix.

Revision history for this message
llogan (loul) wrote :

I can confirm this with quodlibet 1.0-1ubuntu1 (gutsy).

Revision history for this message
Dana Goyette (danagoyette) wrote :

I can also confirm this; it's rather irritating. Oddly enough, it seemed to work for a while after I had initially installed quodlibet, but then broke once I added stuff to the actual "collection" -- which I don't use, anyway.

Revision history for this message
Dana Goyette (danagoyette) wrote :

Marking as confirmed, because three confirmations seems like enough to me.

Changed in quodlibet:
status: New → Confirmed
Revision history for this message
bnj (b2besses) wrote :

Dear,

The solution to solve this bug is describe here > > https://www.sacredchao.net/quodlibet/changeset/4189

regards

Revision history for this message
Hew (hew) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? A solution was posted earlier; it would be useful to see if this has made its way into the latest release. Can you try with Ubuntu Hardy Heron or Intrepid Ibex? Thanks in advance.

Changed in quodlibet:
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
bnj (b2besses) wrote :

I can confirm that this bug is still present in ubuntu hardy heron.
I have been able to suppress it by changing filesystem.py as describe in the link above.

Revision history for this message
Dana Goyette (danagoyette) wrote :

Intrepid still has this bug, since the filesystem.py file is still as it was before that changeset 4189. I can also confirm that applying those changes to filesystem.py fixes the issue.

Revision history for this message
Hew (hew) wrote :

Marking as triaged, as the fix exists, but just hasn't been included in an upstream release yet.

description: updated
Changed in quodlibet:
status: Incomplete → Triaged
Revision history for this message
Dana Goyette (danagoyette) wrote :

Hmm, after applying the fix, QuodLibet no longer maintains folder selection after quitting and re-launching the application -- instead, the application always launches with NO folder selected, and thus with an empty playlist.

Revision history for this message
Dana Goyette (danagoyette) wrote :

New observation: After undoing the patch (by purging and reinstalling QuodLibet), I've realized that that behavior (not restoring selected folders) is not an issue with that patch -- the behavior also exists with the original packaged version. If I edit the config file to unset the collection root (normally ~/Music), QuodLibet will again remember last selected folders.

Revision history for this message
Trent McPheron (tiz-ex1) wrote :

Does anyone here have a copy of filesystem.py with the applied changes? The sacredchao tracker is gone, and QL's IRC channel hasn't been any help in resolving this.

Revision history for this message
bnj (b2besses) wrote :

Here the modified file

Revision history for this message
Trent McPheron (tiz-ex1) wrote :

It works like a charm. Thanks a million! :D

Changed in quodlibet (Ubuntu):
status: Triaged → Fix Released
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.