pragha-music-player / pragha

Pragha is a Lightweight Music Player for GNU/Linux.
GNU General Public License v3.0
178 stars 35 forks source link

"Replace and play" broken #40

Closed ghost closed 11 years ago

ghost commented 11 years ago

"Replace and play" broken in commit 378db7d1197778fcb6d00f671466eba8b86d7ed3

matiasdelellis commented 11 years ago

In what conditions? I'm testing the final merge and here works..

ghost commented 11 years ago

Now it's only in stopped state.

console output: (pragha:8089): Gtk-CRITICAL **: gtk_tree_row_reference_new: assertion `path != NULL' failed

(pragha:8089): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path != NULL' failed

(pragha:8089): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertion `path != NULL' failed

(pragha:8089): pragha-CRITICAL **: Dangling entry in current playlist

matiasdelellis commented 11 years ago

Your change is correct. had tested stopped and playing, but not paused.

The console output was before your change? I can not reproduce it here.

ghost commented 11 years ago

Can be closed the bug then?

No. I mean it still broken in stopped state.

matiasdelellis commented 11 years ago

:S The only console ouput here is:

(pragha:2857): Gtk-CRITICAL _: IA__gtk_tree_view_scroll_to_cell: assertion `tree_view->priv->model != NULL' failed (pragha:2857): Gtk-CRITICAL _: IA__gtk_tree_model_get_iter_first: assertion `GTK_IS_TREE_MODEL (tree_model)' failed

, when adds radios, but it is due to something else.

When you only replace the playlist, it says the same thing?

ghost commented 11 years ago

For replace there is no console output... but after replace play button doesn't work and triggers the same output as I posted before.

matiasdelellis commented 11 years ago

mm.. When replace, or replace and play, always is selected the same song?. This seems that add a wrong song, and pragha tries to reproduce it. Try playing the selected song, whit enter, or otherwise.

ghost commented 11 years ago

When replace, or replace and play, always is selected the same song?.

Different tracks, albums, artists or whole collection. It doesn't matter.

Try playing the selected song, whit enter, or otherwise.

Double click on track works fine :3

ghost commented 11 years ago

@matiasdelellis Is shuffle enabled? Try disable...

matiasdelellis commented 11 years ago

Yes!!! !. =) (Is comic. I am glad that something is wrong!.)

So, in resume... Steps to reproduce the error:

Results in console output:

(pragha:8089): Gtk-CRITICAL _: gtk_tree_row_reference_new: assertion `path != NULL' failed (pragha:8089): Gtk-CRITICAL _: gtk_tree_model_get_iter: assertion path != NULL' failed (pragha:8089): Gtk-CRITICAL **: gtk_tree_model_get_iter: assertionpath != NULL' failed (pragha:8089): pragha-CRITICAL **: Dangling entry in current playlist

And never play any song.

Well, In the afternoon investigate. but I think know where the problem comes.

Regards.

ghost commented 11 years ago

Also note it plays only the last track if we replace&play on playlist >:3

matiasdelellis commented 11 years ago

Yes, But this is due that when replace by a playlists or radio, the last song is selected automatically. This behavior (Select the last song added) is useful only when you add more songs (and to see what songs added). Not is useful if you replace the entire playlist.

We must review this behavior.

Would be OK?

ghost commented 11 years ago

OK.

matiasdelellis commented 11 years ago

Well, When you have time look at the branch SelectReplaceAddBehavior.

ghost commented 11 years ago

Looks working.

matiasdelellis commented 11 years ago

Well, merge and close it?.

ghost commented 11 years ago

Sure.