Bug 55705 - Transparent background displays a garbled picture
Summary: Transparent background displays a garbled picture
Status: RESOLVED DUPLICATE of bug 39552
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-08 20:42 UTC by Laurent Blume
Modified: 2003-03-23 18:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Blume 2003-03-08 20:42:51 UTC
Version:            (using KDE KDE 3.1)
Installed from:    Compiled From Sources
Compiler:          GCC 2.95.3 GNU Binutils 2.13.2.1
OS:          Solaris

Using Solaris 9 x86, XFree 4.3.0

When I set the konsole background to "transparent", it displays a vary garbled version of the background, or only black. That changes every time the window is moved around.

There are error messages in /var/dt/Xerrors:
konsole: WARNING: KDE detected X Error: BadAccess (attempt to access private resource denied) \x0a
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadAccess (attempt to access private resource denied) \x0a
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment parameter) \xa6
  Major opcode:  \x92

I had the same problem with Solaris 8 x86, KDE 3.0.5, XFree 4.2.1...

Transparent menus work fine, though...
Comment 1 Karl Vogel 2003-03-10 11:15:21 UTC
Possibly related to: Bug #55579 (which was related to Bug #42441 ).

If this is the same problem, then it's fixed in 3.1.1

If you're brave, you might try to apply this diff:
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/kdeui/kpixmapio.cpp.diff?r1=1.23&r2=1.23.4.1&only_with_tag=KDE_3_1_BRANCH

Comment 2 Laurent Blume 2003-03-11 13:14:43 UTC
I'm doing that right now, I'll test it tonight.
Just as a sidenote, I also had to modify kpixmapio.h. I'm not C++ programmer,
closest I know are C and Java, so I'm hoping what I did was right :-)

Here is the diff:

# diff -ur kdelibs-3.1/kdeui/kpixmapio.h.original kdelibs-3.1/kdeui/kpixmapio.h
--- kdelibs-3.1/kdeui/kpixmapio.h.original      mar mars 11 11:08:02 2003
+++ kdelibs-3.1/kdeui/kpixmapio.h       mar mars 11 11:11:25 2003
@@ -167,11 +167,11 @@
     };

     bool m_bShm;
-    void initXImage(int w, int h);
+    bool initXImage(int w, int h);
     void doneXImage();
-    void createXImage(int w, int h);
+    bool createXImage(int w, int h);
     void destroyXImage();
-    void createShmSegment(int size);
+    bool createShmSegment(int size);
     void destroyShmSegment();
     void convertToXImage(const QImage &);
     QImage convertFromXImage();
Comment 3 Laurent Blume 2003-03-11 18:42:17 UTC
Well, I recompiled the patched kdelibs, and installed them over my current 3.1
install, but the problem is still the same :-/
The error messages are slightly different though, see below.

If you have another idea, please let me know, I'm ready to compile again and
again, it takes only 2 hours for kdelibs :-)

/var/dt/Xerrors:

kdesktop: bool KPixmapServer::x11Event(_XEvent *): request for DESKTOP1
konsole: WARNING: KDE detected X Error: BadAccess (attempt to access private
resource denied) \x0a
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadAccess (attempt to access private
resource denied) \x0a
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
kdesktop: bool KPixmapServer::x11Event(_XEvent *): request for DESKTOP1
konsole: WARNING: KDE detected X Error: BadAccess (attempt to access private
resource denied) \x0a
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadAccess (attempt to access private
resource denied) \x0a
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
konsole: WARNING: KDE detected X Error: BadShmSeg (invalid shared segment
parameter) \xa6
  Major opcode:  \x92
Comment 4 Karl Vogel 2003-03-12 11:56:00 UTC
The diff for the .h file is at:
http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/kdeui/kpixmapio.h.diff?r1=1.8&r2=1.8.2.1

Bug #55579 mentions:
------ Additional Comment #4 From Stephan Kulow  2003-03-10 20:54 -------
with Lubos's fix it definitly shouldn't crash anymore and with my kpixmapio
fixes in HEAD it shouldn't even give the error (but that's not backported
as it's suboptimal - Lubos is promising a cleaner version in Qt) 

So if you are getting image corruption, then I guess the 3.1.1 branch needs some
additional fixes.

Maybe somebody with access should reassign this to the proper product: kdelibs

Comment 5 Stephan Kulow 2003-03-23 18:32:10 UTC
it's not fixed, but it's a duplicate 

*** This bug has been marked as a duplicate of 39552 ***