Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51748

QPixmap::mask().isNull() is always false on wayland

    XMLWordPrintable

Details

    Description

      As mentioned in subject mask is not null always when the one is running auto-tests on nitrogen device with Boot2Qt image. Wayland used.

      Logs:

      ********* Start testing of tst_QPixmap *********                                                                                  
      Config: Using QtTest library 5.5.1, Qt 5.5.1 (arm-little_endian-ilp32-eabi-hardfloat shared (dynamic) release build; by GCC 4.9.1)
      PASS   : tst_QPixmap::initTestCase()                                
      PASS   : tst_QPixmap::swap()                                        
      PASS   : tst_QPixmap::fromImage(Format_Mono)                        
      PASS   : tst_QPixmap::fromImage(Format_MonoLSB)            
      PASS   : tst_QPixmap::fromImage(Format_RGB32)                            
      PASS   : tst_QPixmap::fromImage(Format_ARGB32)                           
      PASS   : tst_QPixmap::fromImage(Format_ARGB32_Premultiplied)
      PASS   : tst_QPixmap::fromImage(Format_RGB16)               
      PASS   : tst_QPixmap::fromUninitializedImage(Format_Mono)           
      PASS   : tst_QPixmap::fromUninitializedImage(Format_MonoLSB)        
      PASS   : tst_QPixmap::fromUninitializedImage(Format_Indexed8)
      PASS   : tst_QPixmap::fromUninitializedImage(Format_RGB32)                 
      PASS   : tst_QPixmap::fromUninitializedImage(Format_ARGB32)                
      PASS   : tst_QPixmap::fromUninitializedImage(Format_ARGB32_Premultiplied)  
      PASS   : tst_QPixmap::fromUninitializedImage(Format_RGB16)
      PASS   : tst_QPixmap::convertFromImage(Task 31722 0)                
      PASS   : tst_QPixmap::convertFromImage(Task 31722 1)                                            
      PASS   : tst_QPixmap::convertFromImageShouldDetach()                                            
      PASS   : tst_QPixmap::testMetrics()                                                             
      PASS   : tst_QPixmap::scroll(null)                                         
      PASS   : tst_QPixmap::scroll(dx_0_dy_0_null)                               
      PASS   : tst_QPixmap::scroll(dx_1_dy_0_null)             
      PASS   : tst_QPixmap::scroll(dx_0_dy_1_null)                        
      PASS   : tst_QPixmap::scroll(dx_0_dy_0_x_y_w_h)                     
      PASS   : tst_QPixmap::scroll(dx_0_dy_10_x_y_w_h)                                                
      PASS   : tst_QPixmap::scroll(dx_10_dy_0_x_y_w_h)                                                
      PASS   : tst_QPixmap::scroll(dx_10_dy_10_x_y_w_h)                          
      PASS   : tst_QPixmap::scroll(dx_-10_dy_0_x_y_w_h)                          
      PASS   : tst_QPixmap::scroll(dx_0_dy_-10_x_y_w_h)        
      PASS   : tst_QPixmap::scroll(dx_-10_dy_-10_x_y_w_h)                 
      PASS   : tst_QPixmap::scroll(dx_0_dy_0_50_50_100_100)               
      PASS   : tst_QPixmap::scroll(dx_10_dy_0_50_50_100_100)                                          
      PASS   : tst_QPixmap::scroll(dx_0_dy_10_50_50_100_100)                                          
      PASS   : tst_QPixmap::scroll(dx_10_dy_10_50_50_100_100)                    
      PASS   : tst_QPixmap::scroll(dx_-10_dy_0_50_50_100_100)                    
      PASS   : tst_QPixmap::scroll(dx_0_dy_-10_50_50_100_100)                  
      PASS   : tst_QPixmap::scroll(dx_-10_dy_-10_50_50_100_100)                
      PASS   : tst_QPixmap::scroll(dx_128_dy_0_x_y_w_h)                        
      PASS   : tst_QPixmap::scroll(dx_0_dy_128_x_y_w_h)                                               
      PASS   : tst_QPixmap::scroll(dx_128_dy_128_x_y_w_h)                                             
      PASS   : tst_QPixmap::scroll(dx_-128_dy_0_x_y_w_h)                         
      PASS   : tst_QPixmap::scroll(dx_0_dy_-128_x_y_w_h)                         
      PASS   : tst_QPixmap::scroll(dx_-128_dy_-128_x_y_w_h)                  
      PASS   : tst_QPixmap::scroll(dx_128_dy_128_64_64_128_128)                
      PASS   : tst_QPixmap::fill(syscolor_2)                                      
      PASS   : tst_QPixmap::fill(syscolor_3)                                                          
      PASS   : tst_QPixmap::fill(syscolor_4)                                                          
      PASS   : tst_QPixmap::fill(syscolor_5)                                     
      PASS   : tst_QPixmap::fill(syscolor_6)                                     
      PASS   : tst_QPixmap::fill(syscolor_7)                                 
      PASS   : tst_QPixmap::fill(syscolor_8)                                   
      PASS   : tst_QPixmap::fill(syscolor_9)                                   
      PASS   : tst_QPixmap::fill(syscolor_10)                                                         
      PASS   : tst_QPixmap::fill(syscolor_11)                                                         
      PASS   : tst_QPixmap::fill(syscolor_12)                                    
      PASS   : tst_QPixmap::fill(syscolor_13)                                    
      PASS   : tst_QPixmap::fill(syscolor_14)                                
      PASS   : tst_QPixmap::fill(syscolor_15)                                  
      PASS   : tst_QPixmap::fill(syscolor_16)                                  
      PASS   : tst_QPixmap::fill(syscolor_17)                      
      PASS   : tst_QPixmap::fill(alpha_7f_red)                                                                                          
      PASS   : tst_QPixmap::fill(alpha_3f_blue)                                                                                         
      PASS   : tst_QPixmap::fill(alpha_b7_green)                               
      PASS   : tst_QPixmap::fill(alpha_7f_white)                               
      PASS   : tst_QPixmap::fill(alpha_3f_white)                               
      PASS   : tst_QPixmap::fill(alpha_b7_white)                               
      PASS   : tst_QPixmap::fill(alpha_7f_black)                               
      PASS   : tst_QPixmap::fill(alpha_3f_black)                               
      PASS   : tst_QPixmap::fill(alpha_b7_black)                               
      PASS   : tst_QPixmap::fill(bitmap_color0)                                
      PASS   : tst_QPixmap::fill(bitmap_color1)                                
      PASS   : tst_QPixmap::fill_transparent()                                 
      PASS   : tst_QPixmap::createMaskFromColor()                              
      FAIL!  : tst_QPixmap::mask() 'pm.mask().isNull()' returned FALSE. ()       
         Loc: [../qpixmap/tst_qpixmap.cpp(581)]                                  
      PASS   : tst_QPixmap::bitmapMask()                                         
      PASS   : tst_QPixmap::setGetMask(nullmask 0)                        
      PASS   : tst_QPixmap::setGetMask(nullmask 1)                        
      PASS   : tst_QPixmap::setGetMask(nullmask 2)                                                    
      PASS   : tst_QPixmap::setGetMask(nullmask 3)                                                    
      PASS   : tst_QPixmap::setGetMask(simple mask 0)                                                 
      PASS   : tst_QPixmap::cacheKey()                                           
      PASS   : tst_QPixmap::drawBitmap()                                         
      PASS   : tst_QPixmap::isNull()                                      
      FAIL!  : tst_QPixmap::task_246446() 'pm.mask().isNull()' returned FALSE. ()
         Loc: [../qpixmap/tst_qpixmap.cpp(1441)]                                 
      PASS   : tst_QPixmap::convertFromImageNoDetach()                                                
      PASS   : tst_QPixmap::convertFromImageDetach()                                                  
      PASS   : tst_QPixmap::convertFromImageCacheKey()                           
      SKIP   : tst_QPixmap::onlyNullPixmapsOutsideGuiThread() This platform supports threaded pixmaps.
         Loc: [../qpixmap/tst_qpixmap.cpp(1075)]                                                      
      PASS   : tst_QPixmap::refUnref()                                                                
      PASS   : tst_QPixmap::copy()                                                                    
      PASS   : tst_QPixmap::depthOfNullObjects()                                                      
      PASS   : tst_QPixmap::transformed()                                                             
      PASS   : tst_QPixmap::transformed2()                                                            
      PASS   : tst_QPixmap::fromImage_crash()                                                         
      PASS   : tst_QPixmap::load()                                                                    
      PASS   : tst_QPixmap::loadFromData()                                                            
      PASS   : tst_QPixmap::loadFromDataStream()                                                      
      PASS   : tst_QPixmap::fromData()                                                                
      PASS   : tst_QPixmap::loadFromDataNullValues()                                                  
      PASS   : tst_QPixmap::loadFromDataImage(designer_argb32.png)                                    
      PASS   : tst_QPixmap::loadFromDataImage(designer_argb32)                                        
      PASS   : tst_QPixmap::loadFromDataImage(designer_indexed8_no_alpha.png)                         
      PASS   : tst_QPixmap::loadFromDataImage(designer_indexed8_with_alpha.png)                       
      PASS   : tst_QPixmap::loadFromDataImage(designer_rgb32.png)                                     
      PASS   : tst_QPixmap::loadFromDataImage(designer_indexed8_no_alpha.gif)                         
      PASS   : tst_QPixmap::loadFromDataImage(designer_indexed8_with_alpha.gif)                       
      PASS   : tst_QPixmap::loadFromDataImage(designer_rgb32.jpg)                                     
      PASS   : tst_QPixmap::fromImageReader(designer_argb32.png)                                      
      PASS   : tst_QPixmap::fromImageReader(designer_indexed8_no_alpha.png)                           
      PASS   : tst_QPixmap::fromImageReader(designer_indexed8_with_alpha.png)                         
      PASS   : tst_QPixmap::fromImageReader(designer_rgb32.png)                                       
      PASS   : tst_QPixmap::fromImageReader(designer_indexed8_no_alpha.gif)                           
      PASS   : tst_QPixmap::fromImageReader(designer_indexed8_with_alpha.gif)                         
      PASS   : tst_QPixmap::fromImageReader(designer_rgb32.jpg)                                       
      PASS   : tst_QPixmap::fromImageReader(designer_indexed8_with_alpha_animated)                    
      PASS   : tst_QPixmap::fromImageReader(designer_indexed8_no_alpha_animated)                      
      PASS   : tst_QPixmap::fromImageReaderAnimatedGif(gif with alpha)                                
      PASS   : tst_QPixmap::fromImageReaderAnimatedGif(gif without alpha)                             
      PASS   : tst_QPixmap::preserveDepth()                                 
      QDEBUG : tst_QPixmap::splash_crash() Using Wayland-EGL                                          
      PASS   : tst_QPixmap::splash_crash()                                                            
      PASS   : tst_QPixmap::toImageDeepCopy()                                                         
      PASS   : tst_QPixmap::loadAsBitmapOrPixmap()                                                    
      PASS   : tst_QPixmap::scaled_QTBUG19157()                                                       
      PASS   : tst_QPixmap::detachOnLoad_QTBUG29639()                                                 
      PASS   : tst_QPixmap::copyOnNonAlignedBoundary()                                                
      PASS   : tst_QPixmap::devicePixelRatio()                                                        
      PASS   : tst_QPixmap::cleanupTestCase()                                                         
      Totals: 124 passed, 2 failed, 1 skipped, 0 blacklisted                                          
      ********* Finished testing of tst_QPixmap *********           
      

      However, this issue was not seen in simple application.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-51748
          # Subject Branch Project Status CR V

          Activity

            People

              johanhelsing Johan Helsing
              kileppal Kimmo Leppälä
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes