Bug 179115

Summary: X11 errors and crash with very high image
Product: [Applications] kolourpaint Reporter: Albert Hofkamp <alberth289346>
Component: generalAssignee: kolourpaint-support
Status: RESOLVED DUPLICATE    
Severity: normal CC: alberth289346, andresbajotierra, kollix
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Albert Hofkamp 2008-12-30 09:46:43 UTC
Version:           4.1.3 (KDE 4.1.3) (using KDE 4.1.3)
Compiler:          gcc 
OS:                Linux
Installed from:    Fedora RPMs

I have a very small and high image (4 pixels wide, 2880 high)
(http://code.google.com/p/micropolis/source/browse/trunk/MicropolisCore/images/tilessm.xpm)

After opening the application from xterm (kolourpaint tilessm.xpm >& catch_output) and resizing to 1600%, I got a large list of X11 errors at my terminal window:
(I marked the end with XXXX to make it easier to find where to continue reading)

X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000d9f
X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000da1
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da1
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000da3
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 70 (X_PolyFillRectangle)
  Resource id:  0x4000da1
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000da3
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da1
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da1
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000da4
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da2
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000da5
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da2
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000da4
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000da5
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da2
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 70 (X_PolyFillRectangle)
  Resource id:  0x4000da1
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da2
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000da5
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000da4
X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da6
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x4000da6
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000da7
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000da6
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x4000da2
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x4000da1
X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000da9
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da9
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x4000da9
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000dab
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x4000da8
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x4000da6
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000d9f
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000d9f
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da9
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000da9
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000dac
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000dad
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000dac
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000dad
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 70 (X_PolyFillRectangle)
  Resource id:  0x4000d9f
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000dae
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000daa
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000daf
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000daa
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000dae
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000daf
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000daa
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 70 (X_PolyFillRectangle)
  Resource id:  0x4000da9
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000dad
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000dac
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000daa
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000daf
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000dae
X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000db0
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x4000db0
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000db1
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000db0
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 5 (RenderChangePicture)
  Resource id:  0x4000da0
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x4000daa
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x4000da9
X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000db3
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000db3
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x4000db3
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000db5
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 73 (X_GetImage)
  Resource id:  0x4000db3
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x4000db4
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x4000db3
X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode: 53 (X_CreatePixmap)
  Resource id:  0x5c
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Extension:    148 (RENDER)
  Minor opcode: 4 (RenderCreatePicture)
  Resource id:  0x4000e87
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4000e87
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 70 (X_PolyFillRectangle)
  Resource id:  0x4000e87
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x4000e89
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000e89
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 70 (X_PolyFillRectangle)
  Resource id:  0x4000e87
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 60 (X_FreeGC)
  Resource id:  0x4000e89
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 56 (X_ChangeGC)
  Resource id:  0x4000e87
X Error: RenderBadPicture (invalid Picture parameter) 163
  Extension:    148 (RENDER)
  Minor opcode: 7 (RenderFreePicture)
  Resource id:  0x4000e88
X Error: BadPixmap (invalid Pixmap parameter) 4
  Major opcode: 54 (X_FreePixmap)
  Resource id:  0x4000e87
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x4000d9f

XXXX


The application seems to be running (although I only scrolled up and down to see what the image contains).
Then I closed the application (X button in title), and got another X11 error, and a stack dump due to a crash:

X Error of failed request:  RenderBadPicture (invalid Picture parameter)
  Major opcode of failed request:  148 (RENDER)
  Minor opcode of failed request:  7 (RenderFreePicture)
  Picture id in failed request: 0x4000db2
  Serial number of failed request:  29746
  Current serial number in output stream:  30042
Locking assertion failure.  Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xab6767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xab690e]
#2 /usr/lib/libX11.so.6 [0xb4c109]
#3 /usr/lib/libXrender.so.1(XRenderFreePicture+0x41) [0xd86d71]
#4 /usr/lib/libQtGui.so.4 [0x41bfa6f]
#5 /usr/lib/libQtGui.so.4 [0x41c052d]
#6 /usr/lib/libQtGui.so.4(_ZN7QPixmap5derefEv+0x5d) [0x41b4d1d]
#7 /usr/lib/libQtGui.so.4(_ZN7QPixmapD1Ev+0x30) [0x41b5120]
#8 /usr/lib/kde4/plugins/styles/oxygen.so [0x486a4a]
#9 /usr/lib/kde4/plugins/styles/oxygen.so [0x490e5f]
#10 /usr/lib/kde4/plugins/styles/oxygen.so [0x49150e]
#11 /usr/lib/kde4/plugins/styles/oxygen.so [0x4962c5]
#12 /usr/lib/kde4/plugins/styles/oxygen.so [0x4aa05b]
#13 /lib/libc.so.6(exit+0x89) [0x7a1b39]
#14 /usr/lib/libX11.so.6 [0xb4489e]
#15 /usr/lib/libX11.so.6(_XError+0x109) [0xb44a49]
#16 /usr/lib/libX11.so.6 [0xb4cac8]
#17 /usr/lib/libX11.so.6(_XReply+0x152) [0xb4ce72]
#18 /usr/lib/libX11.so.6(XSync+0x67) [0xb401f7]
#19 /usr/lib/libX11.so.6(XCloseDisplay+0x8e) [0xb1fe0e]
Starting KolourPaint on a 16-bit screen...

The last line is probably from stdout, and not part of the stack dump.
Comment 1 Dario Andres 2008-12-30 15:20:40 UTC
The crash is probably related/duplicate of bug 163538
Comment 2 Dario Andres 2008-12-30 15:21:25 UTC
The crash is probably related/duplicate of bug 163538 (related to Oxygen style)
Comment 3 Dario Andres 2009-03-08 19:20:49 UTC
Can you still reproduce this crash with a recent version ? Have you tried using another widget style? Thanks
Comment 4 Albert Hofkamp 2009-08-07 20:08:11 UTC
I upgraded to Fedora 11, with kolourpaint 4.2.4 (and KDE 4.2.4)
I tried the Oxygen, GTK+, and Windows style, and they all give X11 errors.
However, I did not get a crash with any of the tested styles, that seems fixed.
Comment 5 Dario Andres 2009-08-07 20:09:52 UTC
Ok, changing to "normal"
Comment 6 Martin Koller 2009-12-19 17:30:17 UTC
Can reproduce (KDE trunk, Qt-4.6.0). Changing the image to 1600% gives
a lot of X Errors, first being:
X Error: BadAlloc (insufficient resources for operation) 11                                                                                                  
  Major opcode: 53 (X_CreatePixmap)                                                                                                                          
  Resource id:  0x115                                                                                                                                        
...

Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc

Program received signal SIGABRT, Aborted.
Comment 7 Christoph Feck 2010-08-30 01:07:38 UTC

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