GtkWarning: called set_fraction() with percentage not between 0.0 to 1.0 (minor)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Low
|
Mathias Brodala |
Bug Description
I got the following GtkWarning message (in ~/.xsession-errors) when starting up Exaile:
...
INFO : Playing file://
shm_open() failed: Permission denied
INFO : Attempting to submit "Now Playing" information to AudioScrobbler...
INFO : Submitted "Now Playing" successfully to AudioScrobbler
/usr/local/
self.
INFO : Playing file://
...
Looking at line 143 of xlgui/main.py, I see this:
main.py:143: self.bar.
The implementation of get_progress() in ExailePlayer (xl/player/
def get_progress(self):
try:
except ZeroDivisionError: # track doesnt have duration info
except AttributeError: # no current track
except AttributeError:
return progress
It sounds like passing a negative number to set_fraction() triggers an error. Perhaps this code should be re-factored a bit to avoid passing negative numbers to set_fraction(). Perhaps there should be a conditional to avoid calling set_fraction() if the argument would fall outside the range 0.0 .. 1.0, or something.
I'm using bzr r2726, on Fedora 11 (x86_64). Here are some RPM version numbers, in case they're relevant:
gtk2-2.
gtk+-1.
gtk2-devel-
pygtk2-
I'm not sure if I know how to reproduce this bug reliably. I'd classify it as lower priority, since it didn't seem to cause any loss of function that I noticed.
Changed in exaile: | |
milestone: | 0.3.0.3 → 0.3.1 |
Changed in exaile: | |
status: | Fix Committed → Fix Released |
Fixed in trunk with r2727 and in 0.3.0.x with r2472.