Bug 642963

Summary: Unable to launch desktop effects - 'compizconfig.Plugin' object has no attribute 'Screens'
Product: [openSUSE] openSUSE 11.4 Reporter: Rastislav Krupansky <rastislav.krupansky>
Component: CompizAssignee: Dominique Leuenberger <dimstar>
Status: RESOLVED FIXED QA Contact: Olli Ries <ories>
Severity: Major    
Priority: P5 - None CC: caf4926, dimstar, Martin.Seidler
Version: Milestone 3 of 6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Rastislav Krupansky 2010-09-30 20:16:34 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-3.4 Firefox/3.6.10

This bug is filed against Milestone 2
From Control Center is unable to launch desktop effects.
And simple-cssm command in terminal gives me output:

linux@linux:~> simple-ccsm
Backend     : ini
Integration : true
Profile     : default
Adding plugins
Initializing core options...done
Initializing animation options...done
Traceback (most recent call last):
  File "/usr/bin/simple-ccsm", line 1402, in <module>
    mainWin = MainWin(context, page)
  File "/usr/bin/simple-ccsm", line 1181, in __init__
    self.Update()
  File "/usr/bin/simple-ccsm", line 1223, in Update
    self.AnimationPage.Update()
  File "/usr/bin/simple-ccsm", line 693, in Update
    self.FillAnimationBoxes()
  File "/usr/bin/simple-ccsm", line 676, in FillAnimationBoxes
    setting = plugin.Screens[0][settingName]
AttributeError: 'compizconfig.Plugin' object has no attribute 'Screens'


Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Dominique Leuenberger 2010-09-30 21:21:36 UTC
Thank you very much for your report.

Can you please test if installing the packages from X11:Compiz would resolve your issue? There has been slightly more updates done on those packages already (forwarded to Factory, but not yet accepted).

If the problem would be already solved in X11:Compiz, that would be great of course.
Comment 2 Rastislav Krupansky 2010-10-01 18:39:18 UTC
(In reply to comment #1)
> Thank you very much for your report.
> 
> Can you please test if installing the packages from X11:Compiz would resolve
> your issue? There has been slightly more updates done on those packages already
> (forwarded to Factory, but not yet accepted).
> 
> If the problem would be already solved in X11:Compiz, that would be great of
> course.

No, installing the packages from X11:Compiz didn´t help.
Comment 3 Martin Seidler 2010-11-16 16:01:06 UTC
From GNOME live CD  installed 11.4  Milestone 3
11.4 M3 = openSUSE-GNOME-LiveCD-Build0845-i686.iso
System Monitor says:
"SUSE LINUX ; Release 11.4 (Celadon) ; Kernel Linux 2.6.36-18-default ; GNOME 2.32.0"

The same problem here.[1]

All other compiz packages 0.9.0
(only Compiz manager 0.6.0-15.1 and python-ccm 0.9.2.1-1.1)

But Simple-ccsm 0.8.4-7.2
Changelog: “27 May 2010 (dimstar@opensuse.org):

- Require the new python-ccm backend package instead of the

full compizconfig-settings-manager with gui.

22 February 2010 (dimstar@opensuse.org):

- Change name back to 'Desktop Effects' in the menu, bnc#581548.

16 November 2009 (dimstar@opensuse.org):

- Require compiz-plugins-main instead of compiz-fusion-plugins-main
[...]”

I tried without success:

1) Updating to factory (today)
2) Installing all (not KDE) compiz packages.
3) Installing the simple-ccsm over http://software.opensuse.org/search?q=ccsm&baseproject=openSUSE%3AFactory&lang=en&exclude_filter=home%3A&exclude_debug=true from http://download.opensuse.org/repositories/X11:/Compiz/openSUSE_Factory/
4) Updating all my compiz packages to X11:/Compiz/openSUSE_Factory/

The 'newest' sources on 
http://releases.compiz.org/0.8.4/
are now one year and 2 days old.

Is this a problem of the new kernel 2.6.36 and the old compiz upstream?
Or is just something in the new plugin package named not fitting/ too new in relation to the old simple-ccsm 0.8.4 ?

[1]
ich@linux-xyz:~> simple-ccsm

Backend     : ini

Integration : true

Profile     : default

Adding plugins

Initializing core options...done

Initializing animation options...done

Initializing animationaddon options...done

Traceback (most recent call last):

  File "/usr/bin/simple-ccsm", line 1402, in <module>

    mainWin = MainWin(context, page)

  File "/usr/bin/simple-ccsm", line 1181, in __init__

    self.Update()

  File "/usr/bin/simple-ccsm", line 1223, in Update

    self.AnimationPage.Update()

  File "/usr/bin/simple-ccsm", line 693, in Update

    self.FillAnimationBoxes()

  File "/usr/bin/simple-ccsm", line 676, in FillAnimationBoxes

    setting = plugin.Screens[0][settingName]

AttributeError: 'compizconfig.Plugin' object has no attribute 'Screens'
Comment 4 Dominique Leuenberger 2010-11-16 16:25:17 UTC
Martin,

Thanks. The fact that I will be able to reproduce it on the Live Media is a good thing (for me).
Comment 5 Martin Seidler 2010-11-16 21:21:30 UTC
1)
Bug 652936 - Compiz settings does not launch from Menu or terminal
https://bugzilla.novell.com/show_bug.cgi?id=652936
seems to be a duplicate of this bug.

2)
And my hardware is Samsung X20 Pentium M 740 Intel 915GM 1400x1050 .

3)
Under GNOME I got the problem both with the installed M3 and with the live CD running.

4)
With the M3 KDE live CD running the desktop effects got switched off. After I tried to force them running I got this:

KWin The KDE Crash Handler:

Executable: kwin PID: 4313 Signal: 11 (Segmentation fault)

....

and so on.

Should I file a second (KDE) Bugreport for that?
Comment 6 Dominique Leuenberger 2010-11-17 08:46:54 UTC
*** Bug 652936 has been marked as a duplicate of this bug. ***
Comment 7 Dominique Leuenberger 2010-11-17 08:48:17 UTC
(In reply to comment #5)
> KWin The KDE Crash Handler:
> 
> Executable: kwin PID: 4313 Signal: 11 (Segmentation fault)

A segfault in kwin is unrelated to compiz. Kwin has it's own composite manager integrated. Thus you probably want to have a bug for this.
Comment 8 Dominique Leuenberger 2010-11-17 21:41:29 UTC
Thanks for your report and indications.

I tracked it down to a change in libcompizconfig that was not followed in simple-ccsm.

libcompizconfig no longer stores plugins / settings per screen (anyhow did not work) but merged this in a 'global' settings.

I just submitted an updated package 'simple-ccsm' to X11:Compiz, tagged version 0.9.2.1 (inclusion of the patch in upstream repos is ongoing).

Please give this package some testing before I forward it to openSUSE:Factory.
Comment 9 Dominique Leuenberger 2010-11-19 07:53:49 UTC
My patches were accepted upstream, which makes me believe they went in the right direction. The current version of simple-ccsm is called 0.9.2.1 and has been forwarded to Factory.

Simple-ccsm is actually one of the components that was missed by upstream to be ported to the new 0.9.x branch of compiz. So there are likely more issues erupting.

As I can now start simple-ccsm again I think we can consider this issue as fixed (please re-open if the problem persists. But only if it's the same. If it's different, please create a new bug).