Bug 171847 - pup gets "assertion failed"
Summary: pup gets "assertion failed"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pirut
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Paul Nasrat
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-26 23:08 UTC by Michal Jaegermann
Modified: 2007-11-30 22:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-01-05 02:17:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2005-10-26 23:08:04 UTC
Description of problem:

I tried to use pup on few packages from extras which could use an update.
It basically worked but it spit the following:

/usr/share/pup/pup/pup.py:691: GtkWarning: gtk_progress_set_percentage:
assertion `percentage >= 0 && percentage <= 1.0' failed
  self.pbar.set_fraction(newval)
/usr/share/pup/pup/pup.py:680: GtkWarning: gtk_progress_set_percentage:
assertion `percentage >= 0 && percentage <= 1.0' failed
  self.pbar.set_fraction(self.current / self.total)

The first was at the end of "Downloading Packages" progress bar and
the second one at the very beginning of "Updating Packages".  Smells like
a possible rounding is not taken into account.  Luckily these failed
assertions do not cause exceptions and pup progresses without problems.

Version-Release number of selected component (if applicable):
pup-0.1.4-1

How reproducible:
Don't know

Comment 1 Jeremy Katz 2006-01-05 02:17:24 UTC
I haven't seen this recently.  Reopen if you're still seeing it.

Comment 2 David Lawrence 2006-06-28 01:35:44 UTC
Moving component to pirut. Sorry for the spam.

Comment 3 David Timms 2007-06-18 10:04:29 UTC
I have seen this today. There were about 30 updates available for F7, and this
failed, so started pup from command line, unselected the rest and selected just
cpuspeed. I think it spouted this during the download.
# pup
Loading "installonlyn" plugin
/usr/lib/python2.5/site-packages/pirut/Progress.py:162: GtkWarning:
gtk_progress_set_percentage: assertion `percentage >= 0 && percentage <= 1.0' failed
  self.pbar.set_fraction(fract)
The updated downloaded and applied successfully.
Would you rather a fresh bug since the module references is now different ?


Note You need to log in before you can comment on or make changes to this bug.