ccsm crashed with UnboundLocalError in AskUser(): local variable 'msg_dict' referenced before assignment

Bug #1292220 reported by Denis Anderson
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Compiz
Fix Released
Medium
Christopher Townsend
compiz (Ubuntu)
Fix Released
Medium
Christopher Townsend

Bug Description

Unity is not launching. I install ccsm and then tried to enable Unity but get I get an error message instead.
This is what I get in the terminal

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ccm/Pages.py", line 212, in EnablePlugin
    if conflict.Resolve():
  File "/usr/lib/python2.7/dist-packages/ccm/Conflicts.py", line 306, in Resolve
    answer = self.AskUser(self.Plugin, conflict)
  File "/usr/lib/python2.7/dist-packages/ccm/Conflicts.py", line 445, in AskUser
    msg = msg % protect_markup_dict (msg_dict)
UnboundLocalError: local variable 'msg_dict' referenced before assignment
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ccm/Pages.py", line 212, in EnablePlugin
    if conflict.Resolve():
  File "/usr/lib/python2.7/dist-packages/ccm/Conflicts.py", line 306, in Resolve
    answer = self.AskUser(self.Plugin, conflict)
  File "/usr/lib/python2.7/dist-packages/ccm/Conflicts.py", line 445, in AskUser
    msg = msg % protect_markup_dict (msg_dict)
UnboundLocalError: local variable 'msg_dict' referenced before assignment

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: compizconfig-settings-manager 1:0.9.11+14.04.20140310-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-15.25-generic 3.11.10
Uname: Linux 3.11.0-15-generic x86_64
NonfreeKernelModules: nvidia
.proc.driver.nvidia.gpus.0: Error: [Errno 21] Is a directory: '/proc/driver/nvidia/gpus/0'
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 331.38 Wed Jan 8 19:32:30 PST 2014
 GCC version: gcc version 4.8.2 (Ubuntu 4.8.2-16ubuntu6)
.tmp.unity.support.test.0:

ApportVersion: 2.13.3-0ubuntu1
Architecture: amd64
CompizPlugins: [core,composite,opengl,compiztoolbox,decor,vpswitch,snap,mousepoll,resize,place,move,wall,grid,regex,imgpng,session,gnomecompat,animation,fade,staticswitcher,workarounds,scale,expo,ezoom,dbus]
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity
Date: Thu Mar 13 17:06:17 2014
DistUpgraded: 2014-02-11 21:58:55,877 DEBUG enabling apt cron job
DistroCodename: trusty
DistroVariant: ubuntu
ExecutablePath: /usr/bin/ccsm
GraphicsCard:
 NVIDIA Corporation GK106 [GeForce GTX 650 Ti Boost] [10de:11c2] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: eVga.com. Corp. GeForce GTX 650 Ti Boost Superclocked [3842:3658]
InstallationDate: Installed on 2013-04-26 (321 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
InterpreterPath: /usr/bin/python2.7
JockeyStatus:
 kmod:nvidia_331 - nvidia_331 (Proprietary, Enabled, Not in use)
 kmod:nvidia_331_updates - NVIDIA binary driver - version 331.38 (Proprietary, Disabled, Not in use)
MachineType: Gigabyte Technology Co., Ltd. GA-990FXA-UD3
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/ccsm
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-15-generic root=UUID=da77d3c1-4fae-400c-8ce7-aba6c65c7d3e ro quiet splash nomodeset video=uvesafb:mode_option=,mtrr=3,scroll=ywrap
PythonArgs: ['/usr/bin/ccsm']
SourcePackage: compiz
Title: ccsm crashed with UnboundLocalError in AskUser(): local variable 'msg_dict' referenced before assignment
UpgradeStatus: Upgraded to trusty on 2014-02-12 (29 days ago)
UserGroups: adm cdrom debian-tor dip lp lpadmin plugdev sambashare sudo vboxusers video
dmi.bios.date: 12/09/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F6f
dmi.board.name: GA-990FXA-UD3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6f:bd12/09/2011:svnGigabyteTechnologyCo.,Ltd.:pnGA-990FXA-UD3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnGA-990FXA-UD3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: GA-990FXA-UD3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.
version.compiz: compiz 1:0.9.11+14.04.20140310-0ubuntu1
version.ia32-libs: ia32-libs 20090808ubuntu36
version.libdrm2: libdrm2 2.4.52-1
version.libgl1-mesa-dri: libgl1-mesa-dri 10.1.0~rc3-0ubuntu3
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 10.1.0~rc3-0ubuntu3
version.nvidia-graphics-drivers: nvidia-graphics-drivers N/A
version.xserver-xorg-core: xserver-xorg-core 2:1.15.0-1ubuntu7
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.8.2-1ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.3.0-1ubuntu3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.910-0ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau N/A
xserver.bootTime: Thu Mar 13 17:02:45 2014
xserver.configfile: default
xserver.errors:
 Failed to load module "nouveau" (module does not exist, 0)
 Failed to load module "nouveau" (module does not exist, 0)
 open /dev/fb0: No such file or directory
 open /dev/fb0: No such file or directory
xserver.logfile: /var/log/Xorg.0.log
xserver.outputs:

xserver.version: 2:1.15.0-1ubuntu7

Related branches

Revision history for this message
Denis Anderson (denis-anderson) wrote :
tags: removed: need-duplicate-check
Changed in compiz (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in compiz (Ubuntu):
status: New → Confirmed
Revision history for this message
Facundo Batista (facundo) wrote :

Fixed, did this in: /usr/lib/python2.7/dist-packages/ccm/Conflicts.py

--- Conflicts.py.original 2014-03-17 14:21:52.398838549 -0300
+++ Conflicts.py 2014-03-17 14:13:18.746853908 -0300
@@ -442,6 +442,8 @@
         elif conflict[0] == 'ConflictPlugin':
             msg = _("Plugin <b>%(plugin_conflict)s</b> conflicts with " \
      "<b>%(plugin)s</b>.")
+ msg_dict = {'plugin_conflict': conflict[2][0].ShortDesc,
+ 'plugin': plugin.ShortDesc}

             msg = msg % protect_markup_dict (msg_dict)

Revision history for this message
Facundo Batista (facundo) wrote :

Bah, it scrambled the identation.

Attached the diff.

information type: Private → Public
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Conflicts.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in compiz:
status: New → In Progress
Changed in compiz (Ubuntu):
status: Confirmed → In Progress
Changed in compiz:
importance: Undecided → Medium
assignee: nobody → Christopher Townsend (townsend)
Changed in compiz (Ubuntu):
assignee: nobody → Christopher Townsend (townsend)
Changed in compiz:
milestone: none → 0.9.11.0
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package compiz - 1:0.9.11+14.04.20140320.1-0ubuntu1

---------------
compiz (1:0.9.11+14.04.20140320.1-0ubuntu1) trusty; urgency=low

  [ William Hua ]
  * Disable the gnomecompat plugin under Unity by default. (LP:
    #1284532)

  [ Chris Townsend ]
  * Fix issues where vertically maximizing windows by dragging the grab
    area using Normal mode would result in: Incorrect restored window
    size. Wrong window size when vertically maximized, especially when
    resizing from the bottom of the window. (LP: #1280377)
  * Fix missing msg_dict when trying to enable the Unity plugin in CCSM.
    (LP: #1292220)
 -- Ubuntu daily release <email address hidden> Thu, 20 Mar 2014 23:58:37 +0000

Changed in compiz (Ubuntu):
status: In Progress → Fix Released
Changed in compiz:
status: In Progress → Fix Committed
Stephen M. Webb (bregma)
Changed in compiz:
status: Fix Committed → Fix Released
To post a comment you must log in.