Bug 641596

Summary: Desktop Zoop and Enhanced Desktop Zoom plugins do not work
Product: [openSUSE] openSUSE 11.3 Reporter: Zsolt Sági <novell.admin>
Component: CompizAssignee: Dominique Leuenberger <dimstar>
Status: RESOLVED FIXED QA Contact: Olli Ries <ories>
Severity: Normal    
Priority: P5 - None CC: dimstar
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard: .
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Deadline: 2010-12-27   

Description Zsolt Sági 2010-09-24 10:08:53 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; hu-HU; rv:1.9.2.10) Gecko/20100914 SUSE/3.6.10-0.3.1 Firefox/3.6.10

I've read at several sites that none of the zoom plugins work recently on openSUSE/SLED systems. (Maybe since version 0.8.6). I observed that the enhanced desktop zoom plugin only causes the mouse cursor to move interestingly (always jumping to newly appearing windows), while the plain desktop zoom plugin even made my X server freeze. The magnifier plugin works, however.

Reproducible: Always

Steps to Reproduce:
1. Make compiz the window manager
2. Enable one of the desktop zoom plugins
3. Try to zoom
Actual Results:  
It won't do anything useful or will even make the X server freeze

Expected Results:  
It should zoom the desktop
Comment 1 Dominique Leuenberger 2010-09-24 10:45:20 UTC
Thank you very much for your report.

I tried to reproduce and here, the plugin fails to load completely.
Checkin my .xsession-errors, I can see lines like:
'/usr/lib64/compiz/libezoom.so' : /usr/lib64/compiz/libezoom.so: undefined symbol: _ZNK5boost13serialization13typeid_system27extended_type_info_typeid_012is_less_thanERKNS0_18extended_type_infoE

And you please verify if you have the same or a different issue? This would make it easier to identify the issue.
Comment 2 Zsolt Sági 2010-09-24 11:00:09 UTC
As far as I can judge it, the module get loaded for me:

tamas@milleniumfalcon:~> pstree -p | grep comp
        |                `-ksmserver(6870)-+-compiz(6920)---kde4-window-dec(6921)
tamas@milleniumfalcon:~> lsof -nP | grep 6920 | grep -i zoom
compiz    6920      tamas  mem       REG                8,2     39648  424735 /usr/lib64/compiz/libezoom.so


Additionally, I can't find the text 'zoom' in .xsession-errors.

I'm using the compiz packages shipped with openSUSE 11.3, not the ones from any extra repository. Can it be your problem?
Comment 3 Zsolt Sági 2010-09-24 11:03:00 UTC
BTW, my ~/.config/compiz/compizconfig-1/Default.ini file looks like this:
[decoration]
as_command = compiz-decorator

[core]
s0_outputs = 1400x1050+0+0;
as_active_plugins = core;regex;png;splash;decoration;resize;mousepoll;shift;loginout;animation;obs;thumbnail;wobbly;fade;move;cube;rotate;3d;gears;scale;cubeaddon;expo;ezoom;

[move]
as_opacity = 50

[resize]
as_mode = 3

[obs]
as_brightness_increase_button = <Control>Button4
as_brightness_decrease_button = <Control>Button5
as_saturation_increase_button = <Shift>Button4
as_saturation_decrease_button = <Shift>Button5

[mousepoll]

[3d]
s0_width = 0.000000

[splash]

[thumbnail]
s0_current_viewport = false
s0_thumb_size = 400

[shift]
as_next_all_key = <Alt>Tab
as_prev_all_key = <Control><Alt>Tab

[scale]
as_initiate_all_edge = TopRight
as_initiate_edge = 

[rotate]
s0_zoom = 0.500000

[cube]
s0_color = #000000ff
s0_images = opensuse.png;

[cubeaddon]
s0_bottom_images = opensuse.png;
s0_bottom_scale = false
s0_reflection = false
s0_deformation = 2
s0_sphere_aspect = 1.000000
s0_top_color = #000000ff
s0_bottom_color = #000000ff
s0_cylinder_manual_only = true

[animation]
s0_open_effects = animation:Vacuum;animation:Fade;animation:Fade;
s0_open_durations = 500;150;150;
s0_close_effects = animation:Dream;animation:Fade;animation:Fade;
s0_close_durations = 500;150;150;
s0_minimize_durations = 500;
s0_shade_durations = 500;
s0_focus_durations = 500;
s0_focus_effects = animation:Dodge;

[ezoom]

[zoom]
Comment 4 Zsolt Sági 2010-09-24 11:17:21 UTC
Some more additional info: I'm using the newest Xorg packages from http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.3 (otherwise my Xorg would crash several times a day), and I updated my kernel just now. However, desktop zoom plugins are known not to work since about switching compiz 0.8.6.

In fact this desktop zoom functionality is very useful. One of the main reasons I use compiz instead of compositing kwin (which seems to be only fancy but not quite useful).
Comment 5 Dominique Leuenberger 2010-09-24 12:22:36 UTC
Thanks for the info.. That means the problem changed between 0.8.6 and 0.9.0... but it surely did not get any better.
Comment 6 Zsolt Sági 2010-09-28 16:17:47 UTC
I donwloaded the compiz, compiz-plugins-main and compiz-plugins-extra SRPMS from http://download.opensuse.org/source/distribution/11.3/repo/oss/suse/src and recompiled 'em all bit without ANY patches. Now both desktop zoom and enhanced desktop zoom works! It assume it means that the problem is in one of SuSE's patches. My suspicion that the problem is in the compiz package, because firstly I only recompiled compiz-plugins-main (which hold the ezoom plugin), without patches, and this method didn't solve the problem. However, recompiling every compiz package without patches solved the problem.

Can you take a look at it, please? The zoom plugins are really amongst the most valuable features of compiz (if not the single best).
Comment 7 Zsolt Sági 2010-09-29 11:41:41 UTC
Hooray, I've found the root cause of the problem. Removing every single patches except one, I figured out that the symptoms are caused by the "bug-449168-avoid-independent-output-painting.diff" (https://build.opensuse.org/package/view_file?file=bug-449168-avoid-independent-output-painting.diff&package=compiz&project=openSUSE%3A11.1%3AUpdate) patch which changes only one line (or to be more specific only a single C operator).

This patch was originally made for compiz 0.8.4. Is it still necessary in 0.8.6? Too bad I'm not allowed to access https://bugzilla.novell.com/show_bug.cgi?id=449168

Can you take a look at this patch?
Comment 8 Zsolt Sági 2010-11-17 16:49:55 UTC
Anybody there?
Comment 9 Dominique Leuenberger 2010-11-19 08:08:32 UTC
Thanks for waking me up. This patch had actually been dropped from the X11:Compiz packages shortly after you found the pointer.

As for Compiz 0.8.6 as shipped with openSUSE 11.3: I created a branched package without this patch identified as the cause.

Can you please give the packages in http://download.opensuse.org/repositories/home:/dimstar:/bnc641596/standard a try? (only a new compiz package... the rest should not require a rebuild). Those are packages to be used on stock 11.3 compiz, without any other repos for compiz enabled.

if those works, we can check with maintenance if the issue is critical enough for an online update (but we need testing first of course).
Comment 10 Zsolt Sági 2010-11-19 10:41:08 UTC
(In reply to comment #9)
The repository at URL http://download.opensuse.org/repositories/home:/dimstar:/bnc641596/standard does not exist.
Comment 11 Dominique Leuenberger 2010-11-19 12:25:02 UTC
sorry, publishing was disabled.. the repo is now available.
Comment 12 Zsolt Sági 2010-11-19 12:55:50 UTC
I've done the update, and it seems to fix the bug.
Comment 13 Zsolt Sági 2010-11-19 13:01:24 UTC
needinfo
Comment 14 Dominique Leuenberger 2010-11-19 14:08:40 UTC
maintenance team: would you consider this worthy for an online update?
The patch added was long / old / unmaintained and according to upstream wrong anyhow (was an inheritance from early 0.7.x times I think).

without the patch, the reported issue seems to be resolved (update would be for 11.3 only I think. 11.2 had compiz 0.7.x). Factory does not need the fix, as there we are on compiz 0.9.2 already.
Comment 15 Christian Dengler 2010-11-23 15:14:51 UTC
From my point of view: yes (+1)
Comment 16 Swamp Workflow Management 2010-11-29 17:57:17 UTC
The SWAMPID for this issue is 37447.
This issue was rated as low.
Please submit fixed packages until 2010-12-27.
Also create a patchinfo file using this link:
https://swamp.suse.de/webswamp/wf/37447
Comment 17 Christian Dengler 2010-11-29 17:58:04 UTC
Update started. Be so kind and submit the fixed sources and (if possible) a patchinfo.
Comment 18 Dominique Leuenberger 2010-11-30 09:45:37 UTC
not exaclty sure everything went as expected, but:

> osc sr
Submitting package  compiz
Submitting patchinfo  _patchinfo:Compiz_Zoom_Effect  to  openSUSE:11.3:Update:Test

Everything fine? Can we create the requests ? (y/n) y
Requests created:  54149 54150
Successfully finished


=> there is / should be submission(s) to openSUSE:11.3:Update:Test (I followed the instructions on http://en.opensuse.org/openSUSE:Patches for this)
Comment 19 Dirk Mueller 2010-12-06 08:45:24 UTC
closing as fixed
Comment 20 Swamp Workflow Management 2010-12-06 08:46:08 UTC
Update released for: compiz, compiz-branding-SLE, compiz-branding-openSUSE, compiz-branding-upstream, compiz-debuginfo, compiz-debugsource, compiz-devel, compiz-gnome, compiz-gnome-debuginfo, compiz-kde4, compiz-kde4-debuginfo
Products:
openSUSE 11.3 (debug, i586, x86_64)
Comment 21 Zsolt Sági 2010-12-06 16:58:15 UTC
Thank you very very much.