** Description changed:

+ 
+ SRU TEST CASE:
+ 
+ This fix is for an intermittent crash that occurs on startup, and so it
+ cannot be reliably reproduced. The test is to check for regressions by
+ installing the version of Software Center in -proposed and launching it
+ from the command line as shown:
+ 
+   $ software-center
+ 
+ Verify that the following crash never occurs:
+ 
+   AttributeError: 'ReviewsStats' object has no attribute 'histogram'
+ 
+ SRU REGRESSION POTENTIAL:
+ Negligible. Fix adds a single line to initialize this field in a class.
+ 
+ ---
+ 
  software-center crashed with AttributeError in _on_review_stats_data():
  'ReviewsStats' object has no attribute 'histogram'
  
  ProblemType: Crash
  DistroRelease: Ubuntu 11.10
  Package: software-center 4.1.11
  ProcVersionSignature: Ubuntu 3.0.0-7.9-generic 3.0.0
  Uname: Linux 3.0.0-7-generic i686
  Architecture: i386
  Date: Mon Aug  8 00:34:43 2011
  EcryptfsInUse: Yes
  ExecutablePath: /usr/share/software-center/software-center
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110803.1)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-center
  ProcEnviron:
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  PythonArgs: ['/usr/bin/software-center']
  SourcePackage: software-center
  Title: software-center crashed with AttributeError in 
_on_review_stats_data(): 'ReviewsStats' object has no attribute 'histogram'
  Traceback:
-  Traceback (most recent call last):
-    File "/usr/share/software-center/softwarecenter/backend/reviews.py", line 
676, in _on_review_stats_data
-      if r.histogram:
-  AttributeError: 'ReviewsStats' object has no attribute 'histogram'
+  Traceback (most recent call last):
+    File "/usr/share/software-center/softwarecenter/backend/reviews.py", line 
676, in _on_review_stats_data
+      if r.histogram:
+  AttributeError: 'ReviewsStats' object has no attribute 'histogram'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/822625

Title:
  software-center crashed with AttributeError in
  _on_review_stats_data(): 'ReviewsStats' object has no attribute
  'histogram'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/822625/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to