Beatbox use too often the disk

Bug #926709 reported by Corentin Noël
34
This bug affects 7 people
Affects Status Importance Assigned to Milestone
BeatBox
Fix Released
High
Victor Martinez

Bug Description

When I listen to a music, I can hear my disk used every second. This doen't happened when I use rythmbox.

Are you using files with read+write options ?

Tags: disk gtk listen

Related branches

Revision history for this message
Victor Martinez (victored) wrote :

No, BeatBox doesn't read the song at every second. This is caused by the position updates. For some reason GStreamer accesses the hard disk while doing that, and it's annoying since we perform that operation two times per second.

Changed in beat-box:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Position updates? I thought that's just incrementing an internal variable and moving the slider... and writing that to disk on exit...

Revision history for this message
Victor Martinez (victored) wrote :

Every 0.5 seconds the streamer emits the current_position_update() signal. Only two objects have callbacks for that: the library window (for LastFM stuff) and the top display. I believe that the function that updates the toolbar scale is evil.

Changed in beat-box:
assignee: nobody → Victor Eduardo (victored)
Revision history for this message
Victor Martinez (victored) wrote :

I've made no progress in this bug so far.

In case other developer wants to take a look, the relevant file is TopDisplay.vala (located in src/Widgets).

This bug is provoked by updating the time labels in the toolbar (The ones displaying MM:SS). For some reason, every time we update them GTK+ accesses the disk (I wish I was wrong here). You can comment out lines 197 and 208 in that file to see what I mean.

Changed in beat-box:
assignee: Victor Eduardo (victored) → elementary Drive-by Contributors (elementary-driveby)
milestone: none → 1.0
tags: added: gtk
Revision history for this message
Eduard Gotwig (gotwig) wrote :

It realy sucks, becouse I hear it ! :X (PC here)

Revision history for this message
Victor Martinez (victored) wrote :

Time to ask for help in GTK's mailing list? :)

Revision history for this message
Eduard Gotwig (gotwig) wrote :

Haven't you commited a fix for that, Victor? (btw, eduardo is a cool name :D)

Changed in beat-box:
status: Confirmed → In Progress
Revision history for this message
Victor Martinez (victored) wrote :

Thank you :)

And yes, the fix is on lp:~victored/beat-box/view-restructuring

(I'd like to get more testing on that branch too)

Changed in beat-box:
assignee: elementary Drive-by Contributors (elementary-driveby) → Victor Eduardo (victored)
Changed in beat-box:
status: In Progress → Fix Committed
Changed in beat-box:
status: Fix Committed → 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.