[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-11-01 Thread Max Bowsher
This bug does not appear to related to light-themes, marking bugtask
Invalid.

** Tags removed: patch

** Changed in: light-themes
   Status: Confirmed = Invalid

** Changed in: gtk
   Status: New = Invalid

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-08-08 Thread Launchpad Bug Tracker
This bug was fixed in the package unity-greeter - 0.2.8-0ubuntu1.2

---
unity-greeter (0.2.8-0ubuntu1.2) precise-proposed; urgency=low

  * debian/patches/state-file-garbage.patch:
- Don't write garbage to the state file (LP: #1005642)
 -- Robert Ancell robert.anc...@canonical.com   Thu, 26 Jul 2012 15:32:35 
+0200

** Changed in: unity-greeter (Ubuntu Precise)
   Status: Fix Committed = Fix Released

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-08-02 Thread Miklos Juhasz
I followed the steps of the test case described in the bug description
and I confirm that the proposed package resolves this issue.

** Tags removed: verification-needed
** Tags added: verification-done

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-08-01 Thread Clint Byrum
Hello Neil, or anyone else affected,

Accepted unity-greeter into precise-proposed. The package will build now
and be available at http://launchpad.net/ubuntu/+source/unity-
greeter/0.2.8-0ubuntu1.2 in a few hours, and then in the -proposed
repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done.  If it does not, change the
tag to verification-failed.  In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: unity-greeter (Ubuntu Precise)
   Status: In Progress = Fix Committed

** Tags added: verification-needed

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-08-01 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/precise-proposed/unity-greeter

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-28 Thread Robert Ancell
** No longer affects: lightdm

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-28 Thread Jeb E.
** Also affects: gtk
   Importance: Undecided
   Status: New

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/gtk/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-27 Thread Jeb E.
Please note that if a different greeter theme is used in LightDM, the
lag issue also stops. Unity-Greeter needs to be handled by LightDM as a
.conf file, not through the other stuff 12.04 currently has to control
configuration. Every LightDM greeter I use that is controlled by a .conf
file works perfectly fine, with no errors.

** Also affects: lightdm
   Importance: Undecided
   Status: New

** Changed in: lightdm
   Status: New = Confirmed

** Changed in: lightdm
 Assignee: (unassigned) = Jeb E. (jebeld17)

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-27 Thread Jeb E.
Text patch created:

** Attachment added: Patch containing necessary text files to insert into a 
virtual terminal.
   
https://bugs.launchpad.net/lightdm/+bug/1005642/+attachment/3238675/+files/Unity-greeter-fix

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-27 Thread Jeb E.
** Changed in: lightdm
 Assignee: Jeb E. (jebeld17) = (unassigned)

** Changed in: lightdm
 Assignee: (unassigned) = Jeb E. (jebeld17)

** Changed in: lightdm
 Assignee: Jeb E. (jebeld17) = (unassigned)

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Sebastien Bacher
Hey Michael, do you think we could SRU that fix for the LTS .1?

** Also affects: unity-greeter (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: unity-greeter (Ubuntu Precise)
   Importance: Undecided
   Status: New

** Changed in: unity-greeter (Ubuntu)
   Importance: Undecided = High

** Changed in: unity-greeter (Ubuntu)
   Status: New = Fix Committed

** Changed in: unity-greeter
   Status: In Progress = Fix Committed

** Changed in: unity-greeter (Ubuntu Precise)
Milestone: None = ubuntu-12.04.1

** Changed in: unity-greeter (Ubuntu Precise)
   Importance: Undecided = High

** Changed in: unity-greeter (Ubuntu Precise)
   Status: New = Triaged

** Changed in: unity-greeter (Ubuntu Precise)
 Assignee: (unassigned) = Michael Terry (mterry)

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Jeb E.
I found the problem causing most, if not all of the mouse problems on
LightDM: The Ambiance and/or Radiance themes. To fix the problem,
install the Ubuntu Tweak PPA ppa:tualatrix/ppa, install Ubuntu Tweak,
and go to Ubuntu TweakTweaksLogin Settings. Change the GTK theme to
something else besides Ambiance or Radiance. A good, solid choice may be
Adwaita.

Hope this solved all of your problems :)

** Attachment added: Untitled.png
   
https://bugs.launchpad.net/ubuntu/precise/+source/unity-greeter/+bug/1005642/+attachment/3236863/+files/Untitled.png

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Jeb E.
*edit: Choose Adwaita as the GTK theme. No others work.

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Sebastien Bacher
is the issue happening only in the greeter? the same theme is used for
the session...

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Ubuntu Foundation's Bug Bot
The attachment Untitled.png of this bug report has been identified as
being a patch.  The ubuntu-reviewers team has been subscribed to the bug
report so that they can review the patch.  In the event that this is in
fact not a patch you can resolve this situation by removing the tag
'patch' from the bug report and editing the attachment so that it is not
flagged as a patch.  Additionally, if you are member of the ubuntu-
reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by
Brian Murray.  Please contact him regarding any issues with the action
taken in this bug report.]

** Tags added: patch

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Robert Ancell
** Changed in: lightdm
   Status: New = Invalid

** No longer affects: lightdm

** Changed in: unity-greeter
   Status: Fix Committed = Fix Released

** Changed in: unity-greeter (Ubuntu)
   Status: Fix Committed = Fix Released

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-greeter/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Launchpad Bug Tracker
** Branch linked: lp:~robert-ancell/unity-greeter/sru-state-file-garbage

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-greeter/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Sebastien Bacher
** Changed in: unity-greeter (Ubuntu Precise)
 Assignee: Michael Terry (mterry) = Sebastien Bacher (seb128)

** Changed in: unity-greeter (Ubuntu Precise)
   Status: Triaged = In Progress

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-greeter/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Robert Ancell
** Description changed:

- /var/lib/lightdm/.cache/unity-greeter/state records the last username to
- be selected. In 0.2.8-0ubuntu1.1 a lot of binary garbage gets written as
- well (typically over 500KB).
+ Impact:
+ A software bug causes garbage data to be written to the unity greeter state 
file which makes file large to open causing a slow down.
  
- The most visible consequence of this is a very slow response to
- switching users, eg using the arrow keys, on some systems. This may be
- what is being seen in several other bug reports (eg bug #945450),
- although it's hard to be sure.
+ Test Case:
+ 1. Stop lightdm
+ $ sudo stop lightdm
+ 2. Remove greeter state file
+ $ sudo rm ~lightdm/.cache/unity-greeter/state
+ 3. Start lightdm
+ $ sudo start lightdm
+ 4. Pick user and log in normally
+ Expected result:
+ ~lightdm/.cache/unity-greeter/state exists and contains the key last-user 
which is set to the user that just logged in
+ Observed result:
+ File exists but has garbage after last-user key
  
- The slowness seems to be due to the time taken to write all the garbage,
- and maybe the generation of a segmentation error at the end of it.
- Enabling lightdm logging with --log-dir=/var/log/lightdm on the exec
- line in /etc/init/lightdm.conf, I see the following:
- 
- unity-greeter.vala:496: Failed to write state: Error writing to file:
- Bad address
- 
- Judging by the timestamp, this seems to occur right at the time of the
- slowdown, and from the contents of the file the garbage seems to be a
- dump of memory contents following the correct data, maybe all the way to
- the end of the data segment.
- 
- There's also a log message at the startup about being unable to read the
- state, presumably due to the corruption. Unfortunately, deleting the
- state file just causes another garbage one to be created.
- 
- The relevant section of unity-greeter.vala is:
- 
- state.set_value (greeter, last-user, username);
- var data = state.to_data ();
- try
- {
- state_file.replace_contents ((uint8[])data, null, false, 
FileCreateFlags.NONE, null);
- }
- catch (Error e)
- {
- debug (Failed to write state: %s, e.message);
- }
- 
- so either state.to_data is returning garbage or
- state_file.replace_contents is writing out too much data.
- 
- If I build a local version of unity-greeter with the call to replace-
- contents removed, the log message goes away and, most importantly, so
- does the slowdown.
- 
- Unfortunately, I haven't been able to produce a full fix for the
- problem. I'm wondering if the real issue is to do with the passing of
- data between vala and glib.
+ Regression Potential:
+ Chance of causing the last logged in user to be broken.

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-greeter/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Sebastien Bacher
** Changed in: unity-greeter (Ubuntu Precise)
 Assignee: Sebastien Bacher (seb128) = Robert Ancell (robert-ancell)

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity-greeter/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1005642] Re: Garbage written to state file, causing slow UI

2012-07-26 Thread Jeb E.
** Also affects: light-themes
   Importance: Undecided
   Status: New

** Changed in: light-themes
   Status: New = Confirmed

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

Title:
  Garbage written to state file, causing slow UI

To manage notifications about this bug go to:
https://bugs.launchpad.net/light-themes/+bug/1005642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs