Slider jumps around at the end of songs

Bug #474139 reported by Andy Owen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GStreamer
Invalid
Undecided
Unassigned
Rhythmbox
Fix Released
Low
rhythmbox (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: rhythmbox

Steps to reproduce:
1) Start playing a file in a playlist with more than one song
2) Either wait until the end, or drag the slider to near the end of the song
3) Just before the next song begins, the slider jumps to 0, then back to the correct location, then back to 0

This is with default settings, and can be reproduced with multiple file types (.ogg and .flac). The sound is perfect however (my suspicion is that it is to do with queuing up the next song for gapless playback)

ProblemType: Bug
Architecture: amd64
Date: Wed Nov 4 22:07:01 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/bin/rhythmbox
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
Package: rhythmbox 0.12.5-0ubuntu4
ProcEnviron:
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: rhythmbox
Uname: Linux 2.6.31-14-generic x86_64

Related branches

Revision history for this message
Andy Owen (the-new-andy) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for the report, i don't see that issue here, could you get a rhythmbox log by running: rhythmbox --debug &> rhythmbox-debug.txt ; reproduce the issue and attach that resulting log file to the report? Thanks in advance.

Changed in rhythmbox (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Andy Owen (the-new-andy) wrote :

This is a log of me opening rhythmbox. Playing a file, seeking to near the end, waiting for it to end, and then it does the jump around bit and goes to the next track.

I plan on having a poke around in the source later, I've fixed a similar bug in rhythmbox before, so I'm marginally familiar with the code.

Revision history for this message
Andy Owen (the-new-andy) wrote :

This is a patch (against the upstream git master... I thought this had been forwarded upstream, but I was confusing this with a different bug). The main issue is that the playbin2 gstreamer element doesn't actually tell you when it finishes one stream and begins the next. This patch works around that for the moment by assuming that when the stream position goes backwards, we have moved to the next stream.

So, now instead of having the position slider jump around to different spots, it now either works correctly, or jumps to 0:00 of the next track in the time period where it would previously have been jumping around.

The previous behavior had the position slider moving to the elapsed time for the current stream, but scaled according to the length of the next stream, so it was often somewhere in the middle.

I've spoken to a gstreamer guy on irc, and there are plans to fix playbin2 in the future.

Revision history for this message
Andy Owen (the-new-andy) wrote :

Oh, I forgot to mention, if someone other than me can actually reproduce this (it is broken on my amd64 and x86 machines), then forwarding this upstream seems like the correct thing to do (since I can also reproduce it in upstream git). I'm not sure if there is some launchpad magic for doing this properly though.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, do you have an upstream bug about the issue? The change seems complicated for a stable update, do you know if upstream plans to fix that issue in the lucid cycle?

Changed in rhythmbox (Ubuntu):
status: Incomplete → Triaged
affects: rhythmbox (Ubuntu) → gstreamer0.10 (Ubuntu)
Revision history for this message
Andy Owen (the-new-andy) wrote :

It is now in gnome bugzilla at:

https://bugzilla.gnome.org/show_bug.cgi?id=601524

Sorry, I seem to have messed up slightly. As this seems to be marked as a gstreamer bug at the moment. I think the gstreamer issue (lack of "finished" signal to go along with "nearly-finished") should be in a separate bug. I'm not quite sure how to fix it though.

Revision history for this message
Sebastien Bacher (seb128) wrote :

is that still an issue in lucid? could you ping upstream to get the patch commited?

Revision history for this message
Andy Owen (the-new-andy) wrote :

I don't have the bandwidth to be able to test it in lucid yet, but I suspect it will still be an issue.

The patch I gave was a workaround though (it was a slightly nicer hack than what was already there).

There is now a fix in gstreamer which makes a non-hackish fix possible:

https://bugzilla.gnome.org/show_bug.cgi?id=584987

So, if it hasn't been done yet, then someone should make a patch which uses this (I tried to make my workaround such that once this bit was done, it would be trivial to drop in the non-hackish version, so it might be an ok starting point).

Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

That's fixed upstream now.

Changed in gstreamer0.10 (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Martin Mai (mrkanister-deactivatedaccount-deactivatedaccount) wrote :

Reassigning to match the product of the upstream bug.

affects: gstreamer0.10 (Ubuntu) → rhythmbox (Ubuntu)
Changed in gstreamer:
importance: Unknown → Undecided
status: Unknown → New
status: New → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package rhythmbox - 0.12.6git20100218-0ubuntu1

---------------
rhythmbox (0.12.6git20100218-0ubuntu1) lucid; urgency=low

  * Updated to a git version to give some testing to the upstream code before
    the next tarball, the udate fixes those issues:
    - "The play button's tool tip "Stop playback" is misleading" (lp: #97442)
    - "double-click the cover art to open it" (lp: #178517)
    - "Rhythmbox crashes when opening song info box" (lp: #399052)
    - "Slider jumps around at the end of songs" (lp: #474139)
    - "rhythmbox freezes randomly" (lp: #487932)
    - "CBC Radio 1 & 2 Live Feeds need updating" (lp: #521474)
  * debian/control.in:
    - updated the pygobject and gtk requirements
  * debian/patches/81_not_using_localmodlibs.patch,
    debian/patches/91_git_change_use_new_totemplparser.patch:
    - dropped, the changes are in the new version
  * debian/patches/82_rhythmbox-indicators.patch:
    - update to the new version by Jan Arne Petersen
  * debian/rhythmbox-plugins.install:
    - updated to list replaygain and sendto
 -- Sebastien Bacher <email address hidden> Thu, 18 Feb 2010 15:34:50 +0100

Changed in rhythmbox (Ubuntu):
status: Fix Committed → Fix Released
Changed in rhythmbox:
importance: Unknown → Low
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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