PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 174 - QTabBar causes an X Error
: QTabBar causes an X Error
Status: CLOSED WORKSFORME
Product: PySide
Classification: Unclassified
Component: QtGui
: 0.2.3
: PC Linux
: P5 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2010-02-26 10:39 EET by greatperson
Modified: 2010-05-04 18:41 EEST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description greatperson 2010-02-26 10:39:24 EET
There is a problem with QTabBar on X11 with KDE effects (ATI FGLRX video
driver). OS is Ubuntu 9.10, PySide version is 0.2.3 - the latest in its
repositories.

This code works normally:

bar = QTabBar()
bar.addTab('A tab')


But this code...

bar = QTabBar()
bar.addTab('A tab')

...produces errors...

X Error: BadAlloc (insufficient resources for operation) 11                     
  Major opcode: 53 (X_CreatePixmap)                                             
  Resource id:  0x9b                                                            
X Error: BadDrawable (invalid Pixmap or Window parameter) 9                     
  Extension:    155 (RENDER)                                                    
  Minor opcode: 4 (RenderCreatePicture)                                         
  Resource id:  0x4400054                                                       
X Error: BadDrawable (invalid Pixmap or Window parameter) 9                     
  Major opcode: 55 (X_CreateGC)                                                 
  Resource id:  0x4400054                                                       
X Error: BadDrawable (invalid Pixmap or Window parameter) 9                     
  Major opcode: 55 (X_CreateGC)                                                 
  Resource id:  0x4400054                                                       
X Error: BadDrawable (invalid Pixmap or Window parameter) 9                     
  Major opcode: 55 (X_CreateGC)                                                 
  Resource id:  0x4400054                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400057                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400058                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400057                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400058                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadDrawable (invalid Pixmap or Window parameter) 9                     
  Major opcode: 70 (X_PolyFillRectangle)                                        
  Resource id:  0x4400054                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400057                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400058                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadDrawable (invalid Pixmap or Window parameter) 9                     
  Major opcode: 70 (X_PolyFillRectangle)                                        
  Resource id:  0x4400054                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400057                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 56 (X_ChangeGC)                                                 
  Resource id:  0x4400058                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 59 (X_SetClipRectangles)                                        
  Resource id:  0x4400057                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 59 (X_SetClipRectangles)                                        
  Resource id:  0x4400058                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 6 (RenderSetPictureClipRectangles)                              
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 59 (X_SetClipRectangles)                                        
  Resource id:  0x4400057                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 59 (X_SetClipRectangles)                                        
  Resource id:  0x4400058                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 6 (RenderSetPictureClipRectangles)                              
  Resource id:  0x4400055                                                       
X Error: RenderBadPicture (invalid Picture parameter) 176                       
  Extension:    155 (RENDER)                                                    
  Minor opcode: 5 (RenderChangePicture)                                         
  Resource id:  0x4400055                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 60 (X_FreeGC)                                                   
  Resource id:  0x4400058                                                       
X Error: BadGC (invalid GC parameter) 13                                        
  Major opcode: 60 (X_FreeGC)                                                   
  Resource id:  0x4400057
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4400054
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 55 (X_CreateGC)
  Resource id:  0x4400054
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x4400059
X Error: RenderBadPicture (invalid Picture parameter) 176
  Extension:    155 (RENDER)
  Minor opcode: 6 (RenderSetPictureClipRectangles)
  Resource id:  0x4400055
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x440005a
X Error: RenderBadPicture (invalid Picture parameter) 176
  Extension:    155 (RENDER)
  Minor opcode: 6 (RenderSetPictureClipRectangles)
  Resource id:  0x4400055
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x4400059
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x440005a
X Error: RenderBadPicture (invalid Picture parameter) 176
  Extension:    155 (RENDER)
  Minor opcode: 6 (RenderSetPictureClipRectangles)
  Resource id:  0x4400055
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x4400059
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x440005a
X Error: RenderBadPicture (invalid Picture parameter) 176
  Extension:    155 (RENDER)
  Minor opcode: 6 (RenderSetPictureClipRectangles)
  Resource id:  0x4400055
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x4400059
X Error: BadGC (invalid GC parameter) 13
  Major opcode: 59 (X_SetClipRectangles)
  Resource id:  0x440005a
X Error: RenderBadPicture (invalid Picture parameter) 176
  Extension:    155 (RENDER)
  Minor opcode: 6 (RenderSetPictureClipRectangles)
  Resource id:  0x4400055

...and closes the app with "Segmentation fault".
If I add...

bar.show()

...or...

bar.hide()

...to the code, the window with tabs becomes visible but works very slowly.

If the KWin effects are off, everything works ok.

QTabWidget seems to have the same problem: it works without tabs, but crash if
it has one or more tabs.
Comment 1 Lauro Moura 2010-03-11 18:07:44 EET
I can't see a difference between the first 2 snippets (with addTab). BTW
QTabBar is working normally in the latest shiboken snapshot (to be released
really soon).
Comment 2 greatperson 2010-03-12 03:35:37 EET
Oh, yes, an epic mistake... =)
In the first case, there must not be addTab(). An empty QTabBar doesn't cause
the error. Only a QTabBar with one or more tabs does.

Also, if I turn on KWin effects when the program is already started, there are
no problems.
Comment 3 Hugo Parente Lima 2010-04-12 16:00:50 EEST
Works for me with version 9ca3e6148aafc852c72302a2d3401a2dff56abd2

Maybe this is an issue with your video driver, I tested with kde 4.4.2 and kwin
with effects turned on.
Comment 4 Hugo Parente Lima 2010-04-12 16:01:44 EEST
Works for me with version 9ca3e6148aafc852c72302a2d3401a2dff56abd2

Maybe this is an issue with your video driver, I tested with kde 4.4.2 and kwin
with effects turned on, besides the nvidia driver 195.36.15