** Changed in: software-center (Ubuntu Precise)
   Importance: Undecided => Medium

** Changed in: software-center (Ubuntu Precise)
     Assignee: (unassigned) => Gary Lasker (gary-lasker)

** Changed in: software-center (Ubuntu Precise)
    Milestone: None => precise-updates

** Changed in: software-center (Ubuntu Quantal)
    Milestone: precise-updates => None

** Description changed:

+ SRU TEST CASE:
+ 1. open stock software-center
+ 2. click on the "Installed" toolbar button very quickly while the main page 
is still loading
+ 3. verify that there is a traceback (note that this does not happen always, 
just most of the time)
+ 4. use the fixed version from -proposed
+ 5. verify that (2) no longer produces the following (or any) traceback
+ 
+ SRU REGRESSION POTENTIAL:
+ Very low, but a possible regression is that the toolbar buttons may not be 
enabled when Software Center has fully initialized. Test launching and 
relaunching Software Center to confirm that the toolbar buttons always become 
active when the lobby view initialization is complete.
+ 
+ 
  From errors.ubuntu.com:
  
  If you click on "installed" while software-center is initializing (and
  the apt cache is not ready) it crashes with:
  
  2012-05-03 18:01:16,188 - softwarecenter.db.enquire - ERROR - 
_get_estimate_nr_apps_and_nr_pkgs failed
  Traceback (most recent call last):
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/enquire.py", line 
115, in _get_estimate_nr_apps_and_nr_pkgs
-     tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/appfilter.py", 
line 94, in __call__
-     if (not pkgname in self.cache or
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/pkginfo_impl/aptcache.py",
 line 263, in __contains__
-     return self._cache.__contains__(k)
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/enquire.py", line 
115, in _get_estimate_nr_apps_and_nr_pkgs
+     tmp_matches = enquire.get_mset(0, len(self.db), None, xfilter)
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/appfilter.py", 
line 94, in __call__
+     if (not pkgname in self.cache or
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/pkginfo_impl/aptcache.py",
 line 263, in __contains__
+     return self._cache.__contains__(k)
  AttributeError: 'NoneType' object has no attribute '__contains__'
  Traceback (most recent call last):
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/ui/gtk3/panes/installedpane.py",
 line 374, in profiled_rebuild_categorised_view
-     rebuild_categorised_view()
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/ui/gtk3/panes/installedpane.py",
 line 401, in rebuild_categorised_view
-     persistent_duplicate_filter=(i > 0))
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/enquire.py", line 
317, in set_query
-     self._blocking_perform_search()
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/enquire.py", line 
212, in _blocking_perform_search
-     matches = enquire.get_mset(0, self.limit, None, xfilter)
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/appfilter.py", 
line 94, in __call__
-     if (not pkgname in self.cache or
-   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/pkginfo_impl/aptcache.py",
 line 263, in __contains__
-     return self._cache.__contains__(k)
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/ui/gtk3/panes/installedpane.py",
 line 374, in profiled_rebuild_categorised_view
+     rebuild_categorised_view()
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/ui/gtk3/panes/installedpane.py",
 line 401, in rebuild_categorised_view
+     persistent_duplicate_filter=(i > 0))
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/enquire.py", line 
317, in set_query
+     self._blocking_perform_search()
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/enquire.py", line 
212, in _blocking_perform_search
+     matches = enquire.get_mset(0, self.limit, None, xfilter)
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/appfilter.py", 
line 94, in __call__
+     if (not pkgname in self.cache or
+   File 
"/scratch/egon/devel/software-center/trunk/softwarecenter/db/pkginfo_impl/aptcache.py",
 line 263, in __contains__
+     return self._cache.__contains__(k)
  AttributeError: 'NoneType' object has no attribute '__contains__'
  
  Its often reported error so we need to fix it.

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

Title:
  Crash when clicking on "installed" too early

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

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

Reply via email to