Synaptic is reading state information for a minute or so

Bug #1328586 reported by Harry
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
GNOME Shell
Fix Released
Medium
at-spi
Fix Released
Medium
at-spi2-atk (Ubuntu)
Fix Released
Undecided
Luke Yelavich
Utopic
Fix Released
Undecided
Luke Yelavich
gnome-shell (Ubuntu)
Fix Released
Undecided
Unassigned
Utopic
Fix Released
Undecided
Unassigned

Bug Description

When starting synaptic I get the authentication window - OK.
Then synaptic main window opens, but the text content stays about one minute "unfocused" and "reading state information".

This bug appeared right after upgrading gnome-shell 3.10 to the newest version 3.12.2-1ubuntu2 and mutter to the version 3.12.2-1ubuntu1.
Downgrading back to the 3.10 versions solves the issue immediately.

Tags: utopic

Related branches

Revision history for this message
Harry (harry33) wrote :

Of course the bug is only present when using gnome session (gnome-shell).
I have also tested this by fully installing Gnome-Staging PPA, and the bug is present there too.
This bug is possibly related to the bug #1322834.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in synaptic (Ubuntu):
status: New → Confirmed
dino99 (9d9)
tags: added: proposed utopic
Revision history for this message
Harry (harry33) wrote :

Further info on this bug:

Like I mentioned I can reproduce this bug with the Gnome3 Staging PPA fully installed (Utopic).
As this bug is very present also with only official Utopic repos used, the following is true.

This is definitely an issue with the latest synaptic and gnome-shell + mutter 3.12.
It can be verified with gnome-desktop 3.8 / 3.10 / 3.12, so it seems the desktop is not the problem.

While the bug is present and synaptic keeps reading the state information, it seems it takes increased power from processors.
After the synaptic is completely started, it is much slower and sluggish tha normal.
If closed or stopped (killall synaptic) and restarted, it begins the long state reading again.

However, this bug is not present with each and every boot.
And when not present, synaptic can be started and closed repeatedly with no issues.

Harry (harry33)
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Tim Lunn (darkxst) wrote :

Harry,
  can you try running synaptic through perf, and see if you can find what is blocking the startup? you will need to install debug symbols to get a useful profile

Revision history for this message
Harry (harry33) wrote :

This bug is very present even if proposed repos are not enabled and only official Utopic repos used.
Also, if Trusty + Gnome Staging PPA (trusty branch) is used, the bug is present there too.

Tim,
I haven't done debugging, so that is not familiar to me.

tags: removed: proposed
Revision history for this message
dino99 (9d9) wrote :

Feedback from utopic i386 booted with systemd and logged as gnome-shell 3.12

- looks like an apt issue: switching from small packages list tabs in synaptic (installed or upgradable or new) is 'normal' but 'all' is freezing ~ 60s, same if switching from 'status' 'custom' or 'origin' in the bottom left pane.
- so when there is too much packages to handle, we get a minute freeze

so its related to built/use index as i see it: maybe libapt-pkg4.12
but there is no warning/error logged or from a terminal

note: also need some guidance to perform a debugging before sending something usefull.

Revision history for this message
dino99 (9d9) wrote :

Looks like related to lp:1274466

Harry (harry33)
description: updated
Revision history for this message
Harry (harry33) wrote :

I can confirm that very likely the bug is related to reading index information.
I usually use "status" from the bottom left pane.
At startup, synaptic seems to spend a minute or so reading the information (all packages).
When a limited number of packages is chosen from the left pane (installed or local), the application is faster, but not normal.

Like I said, synaptic startup and functioning is normal on some boot-ups (perhaps 10-20 % of all).
At that time, closing the application is also normal.
But, when the bug is "on", the application will also hang a while at closure.
So there is some kind of freezing too.

Revision history for this message
dino99 (9d9) wrote :

Here is what i've found into /var/log/apt/term.log:

(Reading database ... 234000 files and directories currently installed.)

wow now i understand why it takes a so long time for loading into synaptic main lists.
It cant be true: synaptic says 46000 total files listed, and around 2200 installed.
So that database seems corrupted.
Doing some cleaning again (i run bleachbit once a week):

sudo rm /var/lib/apt/lists/* -vf

and then update: still that unreal huge files list of 235000 that time. And sysnaptic still so long to resume.

Revision history for this message
dino99 (9d9) wrote :

Added apt bug lp:1329760

Revision history for this message
Harry (harry33) wrote :

It may very well be this bug is not about possible issues with apt (apt-ftcarchive).

I point out again that this bug is not present when using gnome-shell and mutter versions 3.10 or even lower.
It can be experienced only using gnome-shell 3.12 or newer.

Another thing to remember is that apt itself works just fine from terminal and at the same session when synaptic is frozen.
Commands like apt-get update and apt-get upgrade are working all the time.

Tim Lunn (darkxst)
affects: synaptic → gnome-shell
Changed in synaptic (Ubuntu):
status: Confirmed → Invalid
Changed in gnome-shell:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in gnome-shell:
status: Confirmed → Fix Released
Revision history for this message
Harry (harry33) wrote :

So an upstream fix is pushed to master and gnome-3-12 branch.
I hope this is released in Ubuntu Utopic soon.

Revision history for this message
dino99 (9d9) wrote :

As per the latest comments from the upstream bug, its mainly about a atspi issue here.

affects: synaptic (Ubuntu) → at-spi2-core (Ubuntu)
Changed in at-spi2-core (Ubuntu):
status: Invalid → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-shell - 3.12.2-1ubuntu3

---------------
gnome-shell (3.12.2-1ubuntu3) utopic; urgency=medium

  * debian/patches/git_a11y_init_on_demand.patch: git patch to fix
    slow loading of gtkTreeViews (LP: #1328586)
 -- Tim Lunn <email address hidden> Sat, 21 Jun 2014 09:43:58 +1000

Changed in gnome-shell (Ubuntu):
status: Confirmed → Fix Released
dino99 (9d9)
Changed in at-spi2-core (Ubuntu):
status: New → Invalid
Revision history for this message
Harry (harry33) wrote :

Right, this seems to be fixed now for synaptic as well.

Revision history for this message
Tim Lunn (darkxst) wrote :

It is only half fixed, users of the shell's magnifier will see the exact same problem when starting synaptic.

Changed in at-spi2-core (Ubuntu):
status: Invalid → Confirmed
Tim Lunn (darkxst)
no longer affects: at-spi2-core (Ubuntu)
no longer affects: gnome-shell (Ubuntu Trusty)
no longer affects: at-spi2-atk (Ubuntu Trusty)
Changed in at-spi:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Luke Yelavich (themuso) wrote :

Will review and upload the proposed branch now if its ok.

Changed in at-spi2-atk (Ubuntu Utopic):
assignee: nobody → Luke Yelavich (themuso)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package at-spi2-atk - 2.12.1-1ubuntu2

---------------
at-spi2-atk (2.12.1-1ubuntu2) utopic; urgency=medium

  * Add git-c8cda37e28307ad195996ad54b9ee1680cca3ec3.patch. LP: #1328586
 -- Jackson Doak <email address hidden> Mon, 13 Oct 2014 18:47:05 +1100

Changed in at-spi2-atk (Ubuntu Utopic):
status: In Progress → 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.