ccsm crashed with UnboundLocalError in HandleModifierRemoved(): local variable 'new' referenced before assignment

Bug #899610 reported by gogo
208
This bug affects 49 people
Affects Status Importance Assigned to Milestone
compizconfig-settings-manager
New
Undecided
auto-lyvietdung92
compizconfig-settings-manager (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

ccsm crashed with UnboundLocalError in HandleModifierRemoved(): local variable 'new' referenced before assignment

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: compizconfig-settings-manager 0.9.5.92-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-2.6-generic 3.2.0-rc3
Uname: Linux 3.2.0-2-generic x86_64
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Sat Dec 3 15:49:19 2011
ExecutablePath: /usr/bin/ccsm
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20111129.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/ccsm
ProcEnviron:
 PATH=(custom, no user)
 LANG=hr_HR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/ccsm']
SourcePackage: compizconfig-settings-manager
Title: ccsm crashed with UnboundLocalError in HandleModifierRemoved(): local variable 'new' referenced before assignment
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.7/dist-packages/ccm/Settings.py", line 1029, in HandleModifierRemoved
     label.set_text (self.GetLabelText (new))
 UnboundLocalError: local variable 'new' referenced before assignment
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Revision history for this message
gogo (trebelnik-stefina) wrote :
visibility: private → public
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in compizconfig-settings-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
pablomme (pablomme) wrote :

I got this when trying to configure <Control><Alt><Shift>t as the shortcut for "gnome-terminal --command [...]" in the "Commands" plugin. For some reason, <Control> gets changed to <Primary> (??) whether one tries to grab the combo or add the modifiers using the buttons. I also tried editing the string directly to no avail. At some point in this process this error came up (twice).

Revision history for this message
Petko Ditchev (pditchev) wrote :

+1 to that . Thow the error came up compiz/ccsm didn't crash.

Revision history for this message
Lennart Karssen (l.c.karssen) wrote :

Similar to #3 I tried to change a keybinding in ccsm (where ctrl seems to be indicated as "<Primary>"). Similar to #4 CCSM didn't crash, but the error popped up.

Revision history for this message
Ashley Davis (dual-n) wrote :

Similar to above, trying to change Opacify hotkey to Ctrl+F12

Revision history for this message
Sam Swift (samswift) wrote :

This is related to this bug
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/936840

which suggests that it was GNOME that changed the "name" of Ctrl to "Primary" which not surprisingly breaks keyboard shortcut configs.

Revision history for this message
Gvozdik Artem (gvozdik) wrote :

Crashed on 12.04 beta 2, when tried to rebind key for HUD.

Revision history for this message
Anton (feenstra) wrote :

Probably not the right place to ask this question, but, for cryin out loud, WHY?
All keyboards I have ever seen label Ctrl as Ctrl. I didn't even know what Primary stood for (since I saw it combined with Alt, I thought it might mean the left Alt button, as opposed to Alt Gr).
Besides that, why does a Gnome policy bite me using Precise with Unity?

Revision history for this message
Pedro Bessa (pedbessa) wrote :

I said: "CTRL is a better home for HUD than ALT, because:

1
Super is expressive and cryptic.
hit Super once and it's expressive. Regular users like it this way.
hold Super, then hit a key and it's crptic. Hackers like it this way.
CTRL can be expressive and cryptic at the same time.
A rule can be created in the user's mind.
You hit modifier once for for expressive gui.
You hold modifer, then hit a key for cryptic shortcut.

2
Because of copy, paste, cut, paste and find, CTRL is heavily associated with cryptic menu shortcuts, so make CTRL be heavily associated with expressive menu shortcuts too.

3
CTRL shortcuts (c, v, x, v, f) are more important than ALT shortcuts, so people are more used to typing CTRL shortcuts

4
the press says HUD is solving a problem that doesn't exist, so people are unlikely to use HUD
people are more likely to type CTRL than ALT, so they are more likely to discover HUD in CTRL than in ALT, so they're more likely to use HUD in CTRL than in ALT

5
Mark complained that alt is taken
This can free alt

6
Jo wants hud to have shortcuts.
CTRL+C is copy whether you want it or not, let the user bind more HUD actions to CTRL.

I was replied: "use ccsm to select Ctrl as the key to show the HUD".

Becareful. Hitting ALT should show HUD, holding ALT should do nothing or show all shortcuts, because if holding ALT shows HUD when you hit a key to try a shortcut, you will paste the key in HUD instead of running the shortcut.

Revision history for this message
Cristian Alvarez (criscoso) wrote :

Control key is not detected when changing Compiz keyboard shortcuts.

On a MacBook Pro 17" early-2009 unibody. Spanish keyboard.
Using external extended Apple aluminum keyboard (it also happens to internal keyboard).

Changed in compizconfig-settings-manager (Ubuntu):
assignee: nobody → Torin Asakura (torinasakura-m)
Changed in compizconfig-settings-manager (Ubuntu):
assignee: Torin Asakura (torinasakura-m) → nobody
Revision history for this message
iMac (imac-netstatz) wrote :

Happened to me setting the keyboard bindings for the Put Plugin from compiz-plugins-extra. Current Raring Beta 2.

Revision history for this message
Phillip Susi (psusi) wrote :

This package has been removed from Ubuntu. Closing all related bugs.

Changed in compizconfig-settings-manager (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

  • auto-lyvietdung92 Edit

Bug watches keep track of this bug in other bug trackers.