<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>286140</bug_id>
          
          <creation_ts>2011-11-08 22:24:11 +0000</creation_ts>
          <short_desc>oxygen-gtk causes banshee fail to start</short_desc>
          <delta_ts>2012-05-15 04:09:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>Oxygen</product>
          <component>gtk2-engine</component>
          <version>unspecified</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jekyll Wu">adaptee</reporter>
          <assigned_to name="Hugo Pereira Da Costa">hugo.pereira.da.costa</assigned_to>
          <cc>b7.10110111</cc>
    
    <cc>hugo.pereira.da.costa</cc>
    
    <cc>jan.huebner</cc>
    
    <cc>web</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>20</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1182962</commentid>
    <comment_count>0</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-11-08 22:24:11 +0000</bug_when>
    <thetext>Version:           unspecified (using KDE 4.7.3) 
OS:                Linux

When oxygen-gtk is in use, banshee fails to start. It complains :

Info  06:17:31.647] Running Banshee 2.2.1: [ArchLinux (linux-gnu, i686) @ 2011-11-02 03:03:09 UTC]
The program &apos;Banshee&apos; received an X Window System error.
This probably reflects a bug in the program.
The error was &apos;BadAccess (attempt to access private resource denied)&apos;.
  (Details: serial 460 error_code 10 request_code 155 minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

That problem does not exist when oxygen-gtk is not in use. 

And it also happens in Fedora 16 and Ubuntu 11.10.


Reproducible: Always


Actual Results:  
 

Expected Results:  

 

banshee-2.2.1
oxygen-gtk-git</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183012</commentid>
    <comment_count>1</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-09 02:24:20 +0000</bug_when>
    <thetext>Damn. I can reproduce and this is a &quot;regression&quot;. This was not happening in the past, I am sure of that ... investigating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183015</commentid>
    <comment_count>2</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-09 02:47:10 +0000</bug_when>
    <thetext>Ruslan. The crash is due to the inner shadow hack (argh).
I&apos;ll try to find a way of adding an exception to the guilty scrolled windows. 
Feel free to investigate on your side too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183282</commentid>
    <comment_count>3</comment_count>
    <who name="Jan Hübner">jan.huebner</who>
    <bug_when>2011-11-09 18:30:28 +0000</bug_when>
    <thetext>This occurs aswell in Funtoo unstable, 4.7.3, but the bug annoys me quite some now, because I really like the oxygen-gtk look.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183287</commentid>
    <comment_count>4</comment_count>
    <who name="Ruslan Kabatsayev">b7.10110111</who>
    <bug_when>2011-11-09 18:32:45 +0000</bug_when>
    <thetext>To work around this problem, you can set ENABLE_INNER_SHADOW_HACK to 0 (via cmake &quot;-D&quot; argument)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183383</commentid>
    <comment_count>5</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-09 22:02:42 +0000</bug_when>
    <thetext>@Jan
technically, this is an application bug, not an oxygen-gtk bug.
Or not a bug at all :(
The fact is: the feature that we use and causes the bug (drawing on the backing store directly) is officially supported by gtk, and works well with all native gtk widgets. Meaning that there is something fishy with the custom widgets that both applications that you mention are using ...
Had no time to investigate further so far, but will do.

(PS: for some reason, Banshee also prevents any use of ARGB colormaps, which notably forbids oxygen-gtk to install kwin shadows on its drop down menus, draw nice rounded corners, etc. Basically, oxygen-gtk cannot look good with banshee, and this is because of the app, not us).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183384</commentid>
    <comment_count>6</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-09 22:07:44 +0000</bug_when>
    <thetext>PS: 
maybe it would actually be good to report these issues also to the applications themselves, with a link to here, for them at least to be aware of the issue, and possibly to fix. (our fix will have to look less nice than theirs, basically by disabling some features that make oxygen-gtk look good). 

Especially to Funtoo, in case the &quot;stable version&quot; was working fine. 
(pointing to some sort of regression there).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183386</commentid>
    <comment_count>7</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-09 22:09:38 +0000</bug_when>
    <thetext>&quot;This occurs aswell in Funtoo unstable&quot;
I&apos;m confused. Funtoo is a distribution, right ? 
Does that mean that the bug occur with all applications shiped by funtoo, or just the version of banshee that they ship ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183466</commentid>
    <comment_count>8</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-11-10 02:59:11 +0000</bug_when>
    <thetext>I have reported this to banshee developers.
https://bugzilla.gnome.org/show_bug.cgi?id=663743</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183483</commentid>
    <comment_count>9</comment_count>
    <who name="Jan Hübner">jan.huebner</who>
    <bug_when>2011-11-10 07:14:54 +0000</bug_when>
    <thetext>No, it only happens with banshee, all other applications look good and work happily. If it&apos;s a problem with Funtoo stable, I don&apos;t know.

Funtoo is a project from Gentoo founder Daniel Robbins, so it&apos;s almost the same as Gentoo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183607</commentid>
    <comment_count>10</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-10 13:34:45 +0000</bug_when>
    <thetext>Found the issue, I think.
gdk_window_set_composited is explicitely said not be called on top level windows, which is apparently what happens with banshee (based on gdk_window_get_type()).
Patch will follow shortly. Will test for a while on master against possible regression in other apps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183616</commentid>
    <comment_count>11</comment_count>
    <who name="Hugo Pereira Da Costa">hugo</who>
    <bug_when>2011-11-10 13:51:22 +0000</bug_when>
    <thetext>Git commit c3afaa3814eee7883e6e7ed0c8d53ba29d328171 by Hugo Pereira Da Costa.
Committed on 10/11/2011 at 14:43.
Pushed by hpereiradacosta into branch &apos;master&apos;.

only set compositing on windows of type GDK_WINDOW_CHILD
CCBUG: 286140

M  +4    -2    src/animations/oxygeninnershadowdata.cpp

http://commits.kde.org/oxygen-gtk/c3afaa3814eee7883e6e7ed0c8d53ba29d328171</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1183618</commentid>
    <comment_count>12</comment_count>
    <who name="Hugo Pereira Da Costa">hugo.pereira.da.costa</who>
    <bug_when>2011-11-10 13:53:49 +0000</bug_when>
    <thetext>That fixes it here.
Please give a shot at latest oxygen-gtk (from master branch)
I&apos;ll backport in a couple of days (and before tagging v1.1.5)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1184625</commentid>
    <comment_count>13</comment_count>
    <who name="Jan Hübner">jan.huebner</who>
    <bug_when>2011-11-13 10:06:34 +0000</bug_when>
    <thetext>Works for me, thank you very much</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>