Activity log for bug #774280

Date Who What changed Old value New value Message
2011-04-30 17:12:19 Luke Plant bug added bug
2011-05-02 14:10:34 Didier Roche-Tolomelli marked as duplicate 759744
2011-05-03 03:42:09 Bilal Akhtar removed duplicate marker 759744
2011-05-03 03:51:26 Bilal Akhtar unity (Ubuntu): status New Confirmed
2011-05-03 03:51:31 Bilal Akhtar bug task added unity
2011-05-03 04:24:09 Bilal Akhtar unity: status New Confirmed
2011-05-03 13:46:34 Didier Roche-Tolomelli unity: assignee Didier Roche (didrocks)
2011-05-03 13:46:38 Didier Roche-Tolomelli unity: milestone 3.8.14
2011-05-03 13:46:44 Didier Roche-Tolomelli unity: importance Undecided Low
2011-05-03 13:46:46 Didier Roche-Tolomelli unity (Ubuntu): importance Undecided Low
2011-05-04 10:51:07 Didier Roche-Tolomelli unity: status Confirmed Fix Committed
2011-05-04 10:51:09 Didier Roche-Tolomelli unity (Ubuntu): status Confirmed Fix Committed
2011-05-26 12:10:57 Didier Roche-Tolomelli nominated for series Ubuntu Natty
2011-05-26 12:10:57 Didier Roche-Tolomelli bug task added unity (Ubuntu Natty)
2011-05-26 15:46:52 Didier Roche-Tolomelli description Binary package hint: unity Running "unity --reset" results in a NameError crash. I do not have the exact backtrace (I can get it if nescessary), but it was very short, and very obvious that it will happen if you look at the code: http://bazaar.launchpad.net/~unity-team/unity/trunk/view/head:/tools/unity.cmake#L72 72 try: 73 current_profile_schema = client.get_schema("/apps/compizconfig-1/current_profile") 74 except GError, e: 75 print "WARNING: environment is incorrect: %s\nDid you just try to reset in a tty?" % e There is a NameError on GError, since GError has not been imported. Some experimentation/googling suggests it should be glib.GError. It seems that bug #753528 was never fixed at all, since this code was introduced to fix that bug (revision 1154.1.1) , but if it had been tested even once this issue would have been located (unless this was a caused by a bad merge and an import being lost) Further, even when you fix that issue, you get another exception 2 lines later - something like "AttributeError: 'str' object has no attribute 'get_string'". I'm guessing this could be a change in what type of values are actually returned. I had to change the line: if current_profile_gconfvalue.get_string() == 'unity': to if current_profile_gconfvalue == 'unity':' (I think this is bug 737320 - but the bug I'm reporting is different from that). Then it finally worked. Please note, in trying to reproduce this, I had some issues, I think related to whether unity was running or not. The primary issue that caused all this was unity failing to run or something (I ended up in a session with no interface at all, and had to google to try to work out a fix). So I can try to reproduce backtraces if you want, but it might be tricky, and just inspection of the code reveals the bug. Binary package hint: unity 1. install unity 3.8.14 2. run unity --reset -> for people getting the crash, it shouldn't anymore (just not reset) Running "unity --reset" results in a NameError crash. I do not have the exact backtrace (I can get it if nescessary), but it was very short, and very obvious that it will happen if you look at the code: http://bazaar.launchpad.net/~unity-team/unity/trunk/view/head:/tools/unity.cmake#L72 72 try: 73 current_profile_schema = client.get_schema("/apps/compizconfig-1/current_profile") 74 except GError, e: 75 print "WARNING: environment is incorrect: %s\nDid you just try to reset in a tty?" % e There is a NameError on GError, since GError has not been imported. Some experimentation/googling suggests it should be glib.GError. It seems that bug #753528 was never fixed at all, since this code was introduced to fix that bug (revision 1154.1.1) , but if it had been tested even once this issue would have been located (unless this was a caused by a bad merge and an import being lost) Further, even when you fix that issue, you get another exception 2 lines later - something like "AttributeError: 'str' object has no attribute 'get_string'". I'm guessing this could be a change in what type of values are actually returned. I had to change the line:   if current_profile_gconfvalue.get_string() == 'unity': to   if current_profile_gconfvalue == 'unity':' (I think this is bug 737320 - but the bug I'm reporting is different from that). Then it finally worked. Please note, in trying to reproduce this, I had some issues, I think related to whether unity was running or not. The primary issue that caused all this was unity failing to run or something (I ended up in a session with no interface at all, and had to google to try to work out a fix). So I can try to reproduce backtraces if you want, but it might be tricky, and just inspection of the code reveals the bug.
2011-05-26 15:47:02 Didier Roche-Tolomelli unity: status Fix Committed Fix Released
2011-05-26 15:47:12 Didier Roche-Tolomelli bug added subscriber Ubuntu Stable Release Updates Team
2011-05-26 16:16:26 Launchpad Janitor branch linked lp:~ubuntu-desktop/unity/ubuntu
2011-05-26 16:20:12 Launchpad Janitor unity (Ubuntu): status Fix Committed Fix Released
2011-05-26 17:13:22 Launchpad Janitor branch linked lp:ubuntu/unity
2011-05-30 05:58:52 Martin Pitt unity (Ubuntu Natty): status New Fix Committed
2011-05-30 05:58:55 Martin Pitt bug added subscriber SRU Verification
2011-05-30 05:58:56 Martin Pitt tags verification-needed
2011-05-30 06:20:48 Launchpad Janitor branch linked lp:ubuntu/natty-proposed/unity
2011-06-08 19:42:10 Pedro Villavicencio tags verification-needed verification-done
2011-06-09 05:54:23 Launchpad Janitor unity (Ubuntu Natty): status Fix Committed Fix Released