Cannot start snap, stuck after "Watches established"

Hi @ogra. I have changed my mind… I have decided that I am going to use desktop-qt5 part. Thank you very much.

1 Like

DO you have any idea on how to fix this issue.

hiran@hiran-VirtualBox:~/mysnaps/kiosk-snap$ snapcraft --use-lxd
The 'snap' directory is meant specifically for snapcraft, but it contains the following non-snapcraft-related paths, which is unsupported and will cause unexpected behavior:
- snapcraft core.yaml

If you must store these files within the 'snap' directory, move them to 'snap/local', which is ignored by snapcraft.
Launching a container.
Waiting for container to be ready
Waiting for network to be ready...
The 'snap' directory is meant specifically for snapcraft, but it contains the following non-snapcraft-related paths, which is unsupported and will cause unexpected behavior:
- snapcraft core.yaml

If you must store these files within the 'snap' directory, move them to 'snap/local', which is ignored by snapcraft.
snapd is not logged in, snap install commands will use sudo
snap "core20" has no updates available
Hit http://archive.ubuntu.com/ubuntu focal InRelease                           
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]      
Get:2 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]        
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1205 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [861 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [258 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [166 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [24.6 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [406 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [442 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [63.3 kB]
Get:11 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [58.1 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [855 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [638 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [181 kB]
Get:15 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [101 kB]
Fetched 5486 kB in 0s (0 B/s)                                                  
Get:1 libgssapi3-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [96.1 kB]               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxdmcp6_1.1.3-0ubuntu1_amd64.deb [10.6 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libx265-179_3.2.1-1build1_amd64.deb [1060 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libmpv1_0.32.0-1ubuntu1_amd64.deb [747 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdc1394-22_2.2.5-2.1_amd64.deb [79.6 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwebp6_0.6.1-2ubuntu0.20.04.1_amd64.deb [185 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libusb-1.0-0_1.0.23-2build1_amd64.deb [46.5 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libldb2_2.0.10-0ubuntu0.20.04.3_amd64.deb [140 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavformat58_4.2.4-1ubuntu0.1_amd64.deb [981 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsnappy1v5_1.1.8-1build1_amd64.deb [16.7 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libopenjp2-7_2.3.1-1ubuntu4.20.04.1_amd64.deb [141 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpangoft2-1.0-0_1.44.7-2ubuntu4_amd64.deb [34.9 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavfilter7_4.2.4-1ubuntu0.1_amd64.deb [1084 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libnghttp2-14_1.40.0-1build1_amd64.deb [78.7 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libraw1394-11_2.1.2-1_amd64.deb [30.7 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-icccm4_0.4.1-1.1_amd64.deb [10.8 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcups2_2.3.1-9ubuntu1.1_amd64.deb [233 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvulkan1_1.2.131.2-1_amd64.deb [93.3 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwayland-egl1_1.18.0-1_amd64.deb [5692 B]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwind0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [48.0 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libchromaprint1_1.4.3-3build1_amd64.deb [37.6 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdrm-nouveau2_2.4.105-3~20.04.1_amd64.deb [16.4 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 ffmpeg_4.2.4-1ubuntu0.1_amd64.deb [1453 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsasl2-modules-db_2.1.27+dfsg-2_amd64.deb [14.9 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-xfixes0_1.14-2_amd64.deb [9296 B]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwacom-common_1.3-2ubuntu3_all.deb [45.3 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libldap-2.4-2_2.4.49+dfsg-2ubuntu1.8_amd64.deb [155 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libegl1_1.3.2-1~ubuntu0.20.04.1_amd64.deb [31.9 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgdk-pixbuf2.0-0_2.40.0+dfsg-3ubuntu0.2_amd64.deb [168 kB]             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libssh-4_0.9.3-2ubuntu2.2_amd64.deb [170 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libnorm1_1.5.8+dfsg2-2build1_amd64.deb [290 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 liblcms2-2_2.9-4_amd64.deb [140 kB]                                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libegl-mesa0_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [95.9 kB]               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcairo-gobject2_1.16.0-4ubuntu1_amd64.deb [17.2 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libopenal1_1.19.1-1_amd64.deb [492 kB]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 va-driver-all_2.7.0-2_amd64.deb [4020 B]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libswresample3_4.2.4-1ubuntu0.1_amd64.deb [57.1 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwbclient0_4.11.6+dfsg-0ubuntu1.10_amd64.deb [221 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 git-man_2.25.1-1ubuntu3.1_all.deb [884 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libbrotli1_1.0.7-6ubuntu0.1_amd64.deb [267 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsndio7.0_1.5.0-3_amd64.deb [24.5 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpciaccess0_0.16-0ubuntu1_amd64.deb [17.9 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpgm-5.2-0_5.2.122~dfsg-3ubuntu1_amd64.deb [158 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-present0_1.14-2_amd64.deb [5560 B]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libheimntlm0-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [15.1 kB]             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgl1_1.3.2-1~ubuntu0.20.04.1_amd64.deb [86.9 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libzmq5_4.3.2-2ubuntu1_amd64.deb [242 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsratom-0-0_0.6.4-1_amd64.deb [16.9 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libglapi-mesa_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [27.2 kB]              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpsl5_0.21.0-1ubuntu1_amd64.deb [51.5 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpixman-1-0_0.38.4-0ubuntu1_amd64.deb [227 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libasound2-data_1.2.2-2.1ubuntu2.4_all.deb [20.0 kB]                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxrender1_0.9.10-1_amd64.deb [18.7 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcdio18_2.0.0-2_amd64.deb [58.6 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libicu66_66.1-2ubuntu2_amd64.deb [8520 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libogg0_1.3.4-0ubuntu1_amd64.deb [24.0 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libigdgmm11_20.1.1+ds1-1_amd64.deb [111 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-render-util0_0.3.9-1build1_amd64.deb [9912 B]                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 qtwayland5_5.12.8-0ubuntu1_amd64.deb [166 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libopenmpt0_0.4.11-1build1_amd64.deb [599 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libarchive13_3.4.0-2ubuntu1_amd64.deb [327 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 liblilv-0-0_0.24.6-1ubuntu0.1_amd64.deb [40.6 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdvdread7_6.1.0+really6.0.2-1_amd64.deb [49.9 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavahi-common-data_0.7-4ubuntu7.1_amd64.deb [21.4 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 perl-modules-5.30_5.30.0-9ubuntu0.2_all.deb [2738 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavahi-common3_0.7-4ubuntu7.1_amd64.deb [21.7 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-util1_0.4.0-0ubuntu3_amd64.deb [11.2 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5dbus5_5.12.8+dfsg-0ubuntu1_amd64.deb [208 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvdpau1_1.3-1ubuntu2_amd64.deb [25.6 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcdio-cdda2_10.2+2.0.0-1_amd64.deb [17.6 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libmp3lame0_3.100-3_amd64.deb [133 kB]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libheimbase1-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [29.7 kB]             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcursor1_1.2.0-2_amd64.deb [20.1 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5waylandcompositor5_5.12.8-0ubuntu1_amd64.deb [300 kB]              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libnuma1_2.0.12-1_amd64.deb [20.8 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpython3.8_3.8.10-0ubuntu1~20.04_amd64.deb [1625 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 git_2.25.1-1ubuntu3.1_amd64.deb [4557 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libthai-data_0.1.28-3_all.deb [134 kB]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 mesa-utils_8.4.0-1build1_amd64.deb [34.2 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvorbisfile3_1.3.6-2ubuntu1_amd64.deb [16.1 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libmtdev1_1.1.5-1.1_amd64.deb [14.2 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 locales_2.31-0ubuntu9.2_all.deb [3872 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5waylandclient5_5.12.8-0ubuntu1_amd64.deb [270 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-shm0_1.14-2_amd64.deb [5584 B]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsasl2-2_2.1.27+dfsg-2_amd64.deb [49.3 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-randr0_1.14-2_amd64.deb [16.3 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-render0_1.14-2_amd64.deb [14.8 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 xkb-data_2.29-2_all.deb [349 kB]                                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwavpack1_5.2.0-1ubuntu0.1_amd64.deb [77.3 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgudev-1.0-0_233-1_amd64.deb [14.0 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 fontconfig-config_2.13.1-2ubuntu3_all.deb [28.8 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 vdpau-driver-all_1.3-1ubuntu2_amd64.deb [4596 B]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libx11-6_1.6.9-2ubuntu1.2_amd64.deb [575 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libopus0_1.3.1-0ubuntu1_amd64.deb [191 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 librubberband2_1.8.2-1build1_amd64.deb [89.4 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libopenal-data_1.19.1-1_all.deb [162 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpostproc55_4.2.4-1ubuntu0.1_amd64.deb [55.3 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvpx6_1.8.2-1build1_amd64.deb [820 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdvdnav4_6.0.1-1build1_amd64.deb [39.0 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libtalloc2_2.3.0-3ubuntu1_amd64.deb [29.5 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgbm1_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [28.8 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxshmfence1_1.3-1_amd64.deb [5028 B]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libaom0_1.0.0.errata1-3build1_amd64.deb [1160 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxkbcommon-x11-0_0.10.0-1_amd64.deb [13.4 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 liblmdb0_0.9.24-1_amd64.deb [44.6 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5qml5_5.12.8-0ubuntu1_amd64.deb [1438 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsm6_1.2.3-1_amd64.deb [16.1 kB]                                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwayland-client0_1.18.0-1_amd64.deb [23.9 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libperl5.30_5.30.0-9ubuntu0.2_amd64.deb [3952 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 samba-libs_4.11.6+dfsg-0ubuntu1.10_amd64.deb [5264 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcdio-paranoia2_10.2+2.0.0-1_amd64.deb [16.2 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdrm-amdgpu1_2.4.105-3~20.04.1_amd64.deb [18.3 kB]                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libinput-bin_1.15.5-1ubuntu0.2_amd64.deb [19.1 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libllvm12_12.0.0-3ubuntu1~20.04.3_amd64.deb [18.8 MB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 fontconfig_2.13.1-2ubuntu3_amd64.deb [171 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libtiff5_4.1.0+git191117-2ubuntu0.20.04.1_amd64.deb [162 kB]             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5gui5_5.12.8+dfsg-0ubuntu1_amd64.deb [2971 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libva2_2.7.0-2_amd64.deb [53.5 kB]                                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxau6_1.0.9-0ubuntu1_amd64.deb [7488 B]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 librtmp1_2.4+20151223.gitfa8646d.1-2build1_amd64.deb [54.9 kB]           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcomposite1_0.4.5-1_amd64.deb [6976 B]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libx264-155_0.155.2917+git0a84d98-2_amd64.deb [521 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpangocairo-1.0-0_1.44.7-2ubuntu4_amd64.deb [24.8 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpulse0_13.99.1-1ubuntu3.11_amd64.deb [262 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libass9_0.14.0-2_amd64.deb [88.0 kB]                                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libmpg123-0_1.25.13-1_amd64.deb [124 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxvidcore4_1.3.7-1_amd64.deb [201 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcaca0_0.99.beta19-2.1ubuntu1.20.04.1_amd64.deb [202 kB]               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-image0_0.4.0-1build1_amd64.deb [12.3 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb1_1.14-2_amd64.deb [44.7 kB]                                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 librsvg2-2_2.48.9-1ubuntu0.20.04.1_amd64.deb [2253 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxi6_1.7.10-0ubuntu1_amd64.deb [29.9 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libiec61883-0_1.2.0-3_amd64.deb [24.3 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libzvbi0_0.2.35-17_amd64.deb [237 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxv1_1.0.11-1_amd64.deb [10.7 kB]                                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvorbisenc2_1.3.6-2ubuntu1_amd64.deb [70.7 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxinerama1_1.1.4-2_amd64.deb [6904 B]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libspeex1_1.2~rc1.2-1.1ubuntu1_amd64.deb [53.2 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libldap-common_2.4.49+dfsg-2ubuntu1.8_all.deb [16.6 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvdpau-va-gl1_0.4.2-1build2_amd64.deb [69.0 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgdbm6_1.18.1-5_amd64.deb [27.4 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 fonts-dejavu-core_2.37-1_all.deb [1041 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libjack-jackd2-0_1.9.12~dfsg-2ubuntu2_amd64.deb [267 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavcodec58_4.2.4-1ubuntu0.1_amd64.deb [4876 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-xinerama0_1.14-2_amd64.deb [5260 B]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libhcrypto4-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [87.9 kB]              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-keysyms1_0.4.0-1build1_amd64.deb [8452 B]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxrandr2_1.5.2-0ubuntu1_amd64.deb [18.5 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavutil56_4.2.4-1ubuntu0.1_amd64.deb [241 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libtheora0_1.1.1+dfsg.1-15ubuntu2_amd64.deb [162 kB]                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsndfile1_1.0.28-7ubuntu0.1_amd64.deb [170 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libjpeg8_8c-2ubuntu8_amd64.deb [2194 B]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdrm2_2.4.105-3~20.04.1_amd64.deb [32.4 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-shape0_1.14-2_amd64.deb [5928 B]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 liblua5.2-0_5.2.4-1.1build3_amd64.deb [106 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libglx0_1.3.2-1~ubuntu0.20.04.1_amd64.deb [32.6 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 shared-mime-info_1.15-1_amd64.deb [430 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgomp1_10.3.0-1ubuntu1~20.04_amd64.deb [102 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5core5a_5.12.8+dfsg-0ubuntu1_amd64.deb [2005 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgme0_0.6.2-1build1_amd64.deb [123 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavdevice58_4.2.4-1ubuntu0.1_amd64.deb [74.3 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libssh-gcrypt-4_0.9.3-2ubuntu2.2_amd64.deb [202 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libglu1-mesa_9.0.1-1build1_amd64.deb [168 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxfixes3_5.0.3-2_amd64.deb [10.9 kB]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libthai0_0.1.28-3_amd64.deb [18.1 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsoxr0_0.1.3-2build1_amd64.deb [78.0 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwebpmux3_0.6.1-2ubuntu0.20.04.1_amd64.deb [19.5 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libfontconfig1_2.13.1-2ubuntu3_amd64.deb [114 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libasyncns0_0.8-6_amd64.deb [12.1 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libx11-data_1.6.9-2ubuntu1.2_all.deb [113 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgl1-mesa-dri_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [10.5 MB]            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libswscale5_4.2.4-1ubuntu0.1_amd64.deb [156 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgdk-pixbuf2.0-common_2.40.0+dfsg-3ubuntu0.2_all.deb [4652 B]          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsmbclient_4.11.6+dfsg-0ubuntu1.10_amd64.deb [59.1 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsdl2-2.0-0_2.0.10+dfsg1-3_amd64.deb [407 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libmysofa1_1.0~dfsg0-1_amd64.deb [39.2 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsodium23_1.0.18-1_amd64.deb [150 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsord-0-0_0.16.4-1_amd64.deb [19.5 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libtdb1_1.4.2-3build1_amd64.deb [44.1 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvidstab1.1_1.1.0-2_amd64.deb [35.0 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 python3-dbus_1.2.16-1build1_amd64.deb [94.0 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libasound2_1.2.2-2.1ubuntu2.4_amd64.deb [334 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgraphite2-3_1.3.13-11build1_amd64.deb [73.5 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxxf86vm1_1.1.4-1build1_amd64.deb [10.2 kB]                            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libfftw3-double3_3.3.8-2ubuntu1_amd64.deb [728 kB]                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libjpeg-turbo8_2.0.3-0ubuntu1.20.04.1_amd64.deb [117 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libuchardet0_0.0.6-3build1_amd64.deb [65.2 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 python3-talloc_2.3.0-3ubuntu1_amd64.deb [12.2 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libshine3_3.1.1-2_amd64.deb [23.2 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libjbig0_2.1-3.1build1_amd64.deb [26.7 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 intel-media-va-driver_20.1.1+dfsg1-1_amd64.deb [1764 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxml2_2.9.10+dfsg-5ubuntu0.20.04.1_amd64.deb [640 kB]                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libflac8_1.3.3-1build1_amd64.deb [103 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdrm-intel1_2.4.105-3~20.04.1_amd64.deb [60.8 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwacom2_1.3-2ubuntu3_amd64.deb [20.0 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libroken18-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [41.8 kB]               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsensors-config_3.6.0-2ubuntu1_all.deb [6092 B]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libtwolame0_0.4.0-2_amd64.deb [47.6 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libfreetype6_2.10.1-2ubuntu0.1_amd64.deb [341 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgsm1_1.0.18-2_amd64.deb [24.4 kB]                                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libva-x11-2_2.7.0-2_amd64.deb [11.9 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libva-wayland2_2.7.0-2_amd64.deb [8924 B]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcodec2-0.9_0.9.2-2_amd64.deb [7886 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 perl_5.30.0-9ubuntu0.2_amd64.deb [224 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libasn1-8-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [181 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libbs2b0_3.1.0+dfsg-2.2build1_amd64.deb [10.2 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libkrb5-26-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [208 kB]                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 x11-common_7.7+19ubuntu14_all.deb [22.3 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdrm-radeon1_2.4.105-3~20.04.1_amd64.deb [19.7 kB]                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libva-drm2_2.7.0-2_amd64.deb [7044 B]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 mesa-vdpau-drivers_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [2945 kB]         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 ocl-icd-libopencl1_2.2.11-1ubuntu1_amd64.deb [30.3 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libvorbis0a_1.3.6-2ubuntu1_amd64.deb [87.0 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libharfbuzz0b_2.6.4-1ubuntu4_amd64.deb [391 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5network5_5.12.8+dfsg-0ubuntu1_amd64.deb [674 kB]                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libjansson4_2.12-1build1_amd64.deb [28.9 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libgdbm-compat4_1.18.1-5_amd64.deb [6244 B]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libice6_1.0.10-0ubuntu1_amd64.deb [41.0 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 i965-va-driver_2.4.0-0ubuntu1_amd64.deb [924 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcairo2_1.16.0-4ubuntu1_amd64.deb [583 kB]                             
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavc1394-0_0.5.4-5_amd64.deb [16.2 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavahi-client3_0.7-4ubuntu7.1_amd64.deb [25.5 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-glx0_1.14-2_amd64.deb [22.1 kB]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libzvbi-common_0.2.35-17_all.deb [32.5 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpango-1.0-0_1.44.7-2ubuntu4_amd64.deb [162 kB]                        
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libserd-0-0_0.30.2-1_amd64.deb [46.6 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libhx509-5-heimdal_7.7.0+dfsg-1ubuntu1_amd64.deb [107 kB]                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxss1_1.2.3-1_amd64.deb [8140 B]                                       
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-xinput0_1.14-2_amd64.deb [29.3 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libtevent0_0.10.1-4_amd64.deb [35.5 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-dri2-0_1.14-2_amd64.deb [6920 B]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxkbcommon0_0.10.0-1_amd64.deb [98.4 kB]                               
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpcre2-16-0_10.34-7_amd64.deb [181 kB]                                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsensors5_3.6.0-2ubuntu1_amd64.deb [27.4 kB]                           
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libqt5quick5_5.12.8-0ubuntu1_amd64.deb [1335 kB]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libsamplerate0_0.1.9-2_amd64.deb [939 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-dri3-0_1.14-2_amd64.deb [6552 B]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libbluray2_1.2.0-1_amd64.deb [138 kB]                                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libavresample4_4.2.4-1ubuntu0.1_amd64.deb [54.2 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libcurl3-gnutls_7.68.0-1ubuntu2.6_amd64.deb [231 kB]                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwayland-server0_1.18.0-1_amd64.deb [31.6 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-xkb1_1.14-2_amd64.deb [29.6 kB]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libflite1_2.1-release-3_amd64.deb [12.8 MB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libx11-xcb1_1.6.9-2ubuntu1.2_amd64.deb [9372 B]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libfribidi0_1.0.8-2_amd64.deb [23.8 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxcb-sync1_1.14-2_amd64.deb [8884 B]                                   
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libinput10_1.15.5-1ubuntu0.2_amd64.deb [112 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 mesa-va-drivers_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [2825 kB]            
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libxext6_1.3.4-0ubuntu1_amd64.deb [29.1 kB]                              
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdouble-conversion3_3.1.5-4ubuntu1_amd64.deb [37.9 kB]                 
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdatrie1_0.2.12-3_amd64.deb [18.7 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libglx-mesa0_21.0.3-0ubuntu0.3~20.04.1_amd64.deb [138 kB]                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libglvnd0_1.3.2-1~ubuntu0.20.04.1_amd64.deb [51.4 kB]                    
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libdrm-common_2.4.105-3~20.04.1_all.deb [5640 B]                         
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libwayland-cursor0_1.18.0-1_amd64.deb [10.3 kB]                          
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libslang2_2.3.2-4_amd64.deb [429 kB]                                     
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 liberror-perl_0.17029-1_all.deb [26.5 kB]                                
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libpng16-16_1.6.37-2_amd64.deb [179 kB]                                  
Fetched 0 B in 0s (0 B/s)                                                      
Get:1 libevdev2_1.9.0+dfsg-1ubuntu0.1_amd64.deb [31.6 kB]                      
Fetched 0 B in 0s (0 B/s)                                                      
Downloading snap 'mir-kiosk-x11'
Cleaning later steps and re-pulling copy-source-code ('stage-packages' property changed)
+ snapcraftctl pull
Skipping pull desktop-qt5 (already ran)
Skipping pull extra-libraries (already ran)
Skipping pull extras (already ran)
Building copy-source-code 
+ snapcraftctl build
+ cp --archive --link --no-dereference . /root/parts/copy-source-code/install
Skipping build desktop-qt5 (already ran)
Skipping build extra-libraries (already ran)
Skipping build extras (already ran)
Failed to stage: Parts 'copy-source-code' and 'desktop-qt5' have the following files, but with different contents:
    usr/lib/x86_64-linux-gnu/dri/i915_dri.so
    usr/lib/x86_64-linux-gnu/dri/i965_dri.so
    usr/lib/x86_64-linux-gnu/dri/iris_dri.so
    usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
    usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
    usr/lib/x86_64-linux-gnu/dri/nouveau_vieux_dri.so
    usr/lib/x86_64-linux-gnu/dri/r200_dri.so
    usr/lib/x86_64-linux-gnu/dri/r300_dri.so
    usr/lib/x86_64-linux-gnu/dri/r600_dri.so
    usr/lib/x86_64-linux-gnu/dri/radeon_dri.so
    usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
    usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
    usr/lib/x86_64-linux-gnu/dri/virtio_gpu_dri.so
    usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so
    usr/lib/x86_64-linux-gnu/dri/zink_dri.so
    usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
    usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
    usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
    usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
    usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
    usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
    usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
    usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
    usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
    usr/share/doc/libdrm-common/changelog.Debian.gz
    usr/share/doc/libdrm2/changelog.Debian.gz
    usr/share/doc/libgbm1/changelog.Debian.gz
    usr/share/doc/libglapi-mesa/changelog.Debian.gz
    usr/share/drirc.d/00-mesa-defaults.conf
    usr/share/libdrm/amdgpu.ids

Snapcraft offers some capabilities to solve this by use of the following keywords:
    - `filesets`
    - `stage`
    - `snap`
    - `organize`

To learn more about these part keywords, run `snapcraft help plugins`.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

Snapcraft.yaml

name: cluemaster-mediadisplay 
base: core20 
version: '1.0.9' 
summary: summary
description: description
grade: stable 
confinement: strict 

apps:
  cluemaster-mediadisplay:
    daemon: simple
    restart-condition: always
    command-chain:
      - env-setup
    command: usr/local/bin/x11_kiosk_launch $SNAP/snap/command-chain/desktop-launch $SNAP/bin/prepare-launch $SNAP/cluemaster_display
    plugs:
      - home
      - desktop-legacy
      - desktop
      - wayland
      - x11
      - unity7
      - network
      - opengl
      - gsettings
      - network-bind
      - screen-inhibit-control
      - audio-playback
      - shutdown
      - process-control
      - mount-observe
      - network-control

parts:
  copy-source-code:
    plugin: dump
    source: cluemaster_display/
    stage-packages:
      - ffmpeg
      - locales
      - libvdpau1
      - i965-va-driver
      - libmpv1
      - va-driver-all
      - vdpau-driver-all
      - mesa-va-drivers
      - libvdpau-va-gl1
      - libglu1-mesa
      - samba-libs
      - git
      - python3-dbus
      - qtwayland5
      - mesa-utils
    stage-snaps: [mir-kiosk-x11]

  extra-libraries:
    plugin: nil
    stage-packages:
      - libasound2-data
      - libasound2-plugins
      - libpulse0

  extras:
    plugin: dump
    source: static/
    organize: 
      "prepare-launch": "bin/"

  desktop-qt5:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: qt
    plugin: make
    make-parameters: ["FLAVOR=qt5"]
    build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
    stage-packages:
      - libxkbcommon0
      - ttf-ubuntu-font-family
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-standard
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5 # for loading icon themes which are svg
      - try: [appmenu-qt5] # not available on core18
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5


layout:
  /usr/share/X11:
    bind: $SNAP/usr/share/X11
  /usr/bin/xkbcomp:
    symlink: $SNAP/usr/bin/xkbcomp
  /usr/share/icons:
    bind: $SNAP/usr/share/icons
  /usr/local/share/fonts:
    bind: $SNAP/usr/local/share/fonts
  /etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

I always get this error, whenever I add the desktop-qt5 part

use apt-file search ... for the .so files to find their package names and remove the packages you find from either of the parts stage-packages entry (make a pick) to avoid the duplication …

do I need to add custom code or something else? Sorry, I am really new to the snapping things. I was able to write the snapcraft.yaml by reading different articles and trial and error

no, you need to remove the packages you detect via apt-file from stage-packages of one of the parts

hi @ogra. I fixed the issue, by using the stage keyword.
But now, when I run my app, I get this error

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T02:48:45Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4735]: /tmp/tmp.MgsRHOoayF CLOSE_WRITE,CLOSE
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Prepairing launch ...
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Environment variables setup complete ...
2021-09-10T02:48:48Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: Using Wayland-EGL
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "wl-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "ivi-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Loading shell integration failed.
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

Here is the latest snapcraft.yaml

name: cluemaster-mediadisplay-core
base: core20
version: '1.0.9'
summary: 
description: description
grade: stable
confinement: strict

apps:
  cluemaster-mediadisplay-core:
    daemon: simple
    restart-condition: always
    command-chain:
      - env-setup
    command: usr/local/bin/x11_kiosk_launch $SNAP/bin/desktop-launch $SNAP/bin/prepare-launch $SNAP/cluemaster_display
    plugs:
      - home
      - desktop-legacy
      - desktop
      - wayland
      - x11
      - unity7
      - network
      - opengl
      - gsettings
      - network-bind
      - screen-inhibit-control
      - audio-playback
      - shutdown
      - process-control
      - mount-observe
      - network-control

parts:
  copy-source-code:
    after: [desktop-qt5]
    plugin: dump
    source: cluemaster_display/
    stage-packages:
      - ffmpeg
      - locales
      - libvdpau1
      - i965-va-driver
      - libmpv1
      - va-driver-all
      - vdpau-driver-all
      - mesa-va-drivers
      - libvdpau-va-gl1
      - libglu1-mesa
      - samba-libs
      - git
      - python3-dbus
      - qtwayland5
      - mesa-utils
      - libgl1-mesa-dri
      - libdrm2
      - libgbm1
      - python3-pyqt5.qtmultimedia
    stage-snaps: [mir-kiosk-x11]

  cluemaster-mediadisplay:
    after: [copy-source-code]
    plugin: python
    python-packages:
      - PyQt5==5.14.1
      - requests==2.22.0
      - git+https://github.com/hiransarkar21/python-mpv
      - simplejson==3.16.0
    stage-packages:
      - python3-pyqt5
      - python3-pyqt5.qtsvg
      - python3-pyqt5.qtmultimedia
      - python3-requests
      - python3-simplejson
      - python3
      
    stage:
      - -usr/lib/x86_64-linux-gnu/dri/*
      - -usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
      - -usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
      - -usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
      - -usr/share/doc/libdrm-common/changelog.Debian.gz
      - -usr/share/doc/libdrm2/changelog.Debian.gz
      - -usr/share/doc/libgbm1/changelog.Debian.gz
      - -usr/share/doc/libglapi-mesa/changelog.Debian.gz
      - -usr/share/drirc.d/00-mesa-defaults.conf
      - -usr/share/libdrm/amdgpu.ids

  extra-libraries:
    plugin: nil
    stage-packages:
      - libasound2-data
      - libasound2-plugins
      - libpulse0
      - libpulse-mainloop-glib0

  extras:
    plugin: dump
    source: static/
    organize: 
      "prepare-launch": "bin/"

  desktop-qt5:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: qt
    plugin: make
    make-parameters: ["FLAVOR=qt5"]
    build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
    stage-packages:
      - libxkbcommon0
      - ttf-ubuntu-font-family
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-standard
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5 # for loading icon themes which are svg
      - try: [appmenu-qt5] # not available on core18
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5
    stage:
      - -usr/lib/x86_64-linux-gnu/dri/*
      - -usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
      - -usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
      - -usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
      - -usr/share/doc/libdrm-common/changelog.Debian.gz
      - -usr/share/doc/libdrm2/changelog.Debian.gz
      - -usr/share/doc/libgbm1/changelog.Debian.gz
      - -usr/share/doc/libglapi-mesa/changelog.Debian.gz
      - -usr/share/drirc.d/00-mesa-defaults.conf
      - -usr/share/libdrm/amdgpu.ids


layout:
  /usr/share/X11:
    bind: $SNAP/usr/share/X11
  /usr/bin/xkbcomp:
    symlink: $SNAP/usr/bin/xkbcomp
  /usr/share/icons:
    bind: $SNAP/usr/share/icons
  /usr/local/share/fonts:
    bind: $SNAP/usr/local/share/fonts
  /etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

you dropped it from both parts, so now you are missing libraries, you only want to drop it via the stage argument from one of the parts, not both …

Hi @ogra. I thought the same, and removed the copy-source-code part (it was optional, it wasn’t contributing anything) still I am getting those errors.

Latest snapcraft.yaml

name: cluemaster-mediadisplay-core
base: core20
version: '1.0.9'
summary: 
description: description
grade: stable
confinement: strict

apps:
  cluemaster-mediadisplay-core:
    daemon: simple
    restart-condition: always
    command-chain:
      - env-setup
    command: usr/local/bin/x11_kiosk_launch $SNAP/bin/desktop-launch $SNAP/bin/prepare-launch $SNAP/cluemaster_display
    plugs:
      - home
      - desktop-legacy
      - desktop
      - wayland
      - x11
      - unity7
      - network
      - opengl
      - gsettings
      - network-bind
      - screen-inhibit-control
      - audio-playback
      - shutdown
      - process-control
      - mount-observe
      - network-control

parts:
  copy-source-code:
    after: [desktop-qt5]
    plugin: dump
    source: cluemaster_display/
    stage-packages:
      - ffmpeg
      - locales
      - libvdpau1
      - i965-va-driver
      - libmpv1
      - va-driver-all
      - vdpau-driver-all
      - mesa-va-drivers
      - libvdpau-va-gl1
      - libglu1-mesa
      - samba-libs
      - git
      - python3-dbus
      - qtwayland5
      - mesa-utils
      - libgl1-mesa-dri
      - libdrm2
      - libgbm1
      - python3-pyqt5.qtmultimedia
    stage-snaps: [mir-kiosk-x11]

  extra-libraries:
    plugin: nil
    stage-packages:
      - libasound2-data
      - libasound2-plugins
      - libpulse0
      - libpulse-mainloop-glib0

  extras:
    plugin: dump
    source: static/
    organize: 
      "prepare-launch": "bin/"

  desktop-qt5:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: qt
    plugin: make
    make-parameters: ["FLAVOR=qt5"]
    build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
    stage-packages:
      - libxkbcommon0
      - ttf-ubuntu-font-family
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-standard
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5 # for loading icon themes which are svg
      - try: [appmenu-qt5] # not available on core18
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5
    stage:
      - -usr/lib/x86_64-linux-gnu/dri/*
      - -usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
      - -usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
      - -usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
      - -usr/share/doc/libdrm-common/changelog.Debian.gz
      - -usr/share/doc/libdrm2/changelog.Debian.gz
      - -usr/share/doc/libgbm1/changelog.Debian.gz
      - -usr/share/doc/libglapi-mesa/changelog.Debian.gz
      - -usr/share/drirc.d/00-mesa-defaults.conf
      - -usr/share/libdrm/amdgpu.ids


layout:
  /usr/share/X11:
    bind: $SNAP/usr/share/X11
  /usr/bin/xkbcomp:
    symlink: $SNAP/usr/bin/xkbcomp
  /usr/share/icons:
    bind: $SNAP/usr/share/icons
  /usr/local/share/fonts:
    bind: $SNAP/usr/local/share/fonts
  /etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

I am really very sorry for the confusion. Thanks

so try moving the stage block to the other part …

Do you think this error might be related to the desktop-launch wrapper?

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T02:48:45Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4735]: /tmp/tmp.MgsRHOoayF CLOSE_WRITE,CLOSE
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Prepairing launch ...
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Environment variables setup complete ...
2021-09-10T02:48:48Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: Using Wayland-EGL
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "wl-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "ivi-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Loading shell integration failed.
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

And this issue

Failed to stage: Parts 'copy-source-code' and 'desktop-qt5' have the following files, but with different contents:
    usr/lib/x86_64-linux-gnu/dri/i915_dri.so
    usr/lib/x86_64-linux-gnu/dri/i965_dri.so
    usr/lib/x86_64-linux-gnu/dri/iris_dri.so
    usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
    usr/lib/x86_64-linux-gnu/dri/nouveau_dri.so
    usr/lib/x86_64-linux-gnu/dri/nouveau_vieux_dri.so
    usr/lib/x86_64-linux-gnu/dri/r200_dri.so
    usr/lib/x86_64-linux-gnu/dri/r300_dri.so
    usr/lib/x86_64-linux-gnu/dri/r600_dri.so
    usr/lib/x86_64-linux-gnu/dri/radeon_dri.so
    usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
    usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
    usr/lib/x86_64-linux-gnu/dri/virtio_gpu_dri.so
    usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so
    usr/lib/x86_64-linux-gnu/dri/zink_dri.so
    usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
    usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
    usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
    usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
    usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
    usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
    usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
    usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
    usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
    usr/share/doc/libdrm-common/changelog.Debian.gz
    usr/share/doc/libdrm2/changelog.Debian.gz
    usr/share/doc/libgbm1/changelog.Debian.gz
    usr/share/doc/libglapi-mesa/changelog.Debian.gz
    usr/share/drirc.d/00-mesa-defaults.conf
    usr/share/libdrm/amdgpu.ids

Snapcraft offers some capabilities to solve this by use of the following keywords:
    - `filesets`
    - `stage`
    - `snap`
    - `organize`

To learn more about these part keywords, run `snapcraft help plugins`.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

is fixed

did you not discuss this before alerady ? in this answer @Saviq gave some debugging hints …

you might need to move the qtwayland stage package over to the desktop-qt5 part

1 Like

thanks, I totally forgot about that. I will try it out

Hi @ogra. I followed the thread “Cannot run PyQt5 snap in Ubuntu Core” and added QT_DEBUG_PLUGINS and QT_PLUGINS_PATH as @Saviq suggested but no luck.

Here are the complete logs after setting both of the variables

Prepairing launch ...
Environment variables setup complete ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqeglfs.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archreq": 0,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("eglfs")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqlinuxfb.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archreq": 0,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("linuxfb")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimal.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archreq": 0,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimal")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimalegl.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archreq": 0,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("minimalegl")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqoffscreen.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archreq": 0,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("offscreen")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqvnc.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archreq": 0,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("vnc")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-egl.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-egl")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-generic.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archreq": 0,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-egl.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-egl"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-xcomposite-egl")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-glx.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-xcomposite-glx.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-xcomposite-glx"
        ]
    },
    "archreq": 0,
    "className": "QWaylandXCompositeGlxPlatformIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("wayland-xcomposite-glx")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqxcb.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archreq": 0,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("xcb")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/platforms" ...
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platforms/libqwayland-egl.so"
Using Wayland-EGL
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk2.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk2.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk2"
        ]
    },
    "archreq": 0,
    "className": "QGtk2ThemePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gtk2")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk3.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archreq": 0,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gtk3")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/platformthemes" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqcleanlooksstyle.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqcleanlooksstyle.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "cleanlooks"
        ]
    },
    "archreq": 0,
    "className": "QCleanlooksStylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("cleanlooks")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqgtk2style.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqgtk2style.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "gtk2"
        ]
    },
    "archreq": 0,
    "className": "QGtk2StylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gtk2")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqmotifstyle.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqmotifstyle.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "motif",
            "cde"
        ]
    },
    "archreq": 0,
    "className": "QMotifStylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("motif", "cde")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqplastiquestyle.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/styles/libqplastiquestyle.so, metadata=
{
    "IID": "org.qt-project.Qt.QStyleFactoryInterface",
    "MetaData": {
        "Keys": [
            "plastique"
        ]
    },
    "archreq": 0,
    "className": "QPlastiqueStylePlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("plastique")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/styles" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/iconengines" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/iconengines/libqsvgicon.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/iconengines/libqsvgicon.so, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archreq": 0,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("svg", "svgz", "svg.gz")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/iconengines" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats" ...
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqgif.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqgif.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archreq": 0,
    "className": "QGifPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("gif")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqico.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqico.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archreq": 0,
    "className": "QICOPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("ico", "cur")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqjpeg.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqjpeg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archreq": 0,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("jpg", "jpeg")
QFactoryLoader::QFactoryLoader() looking at "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqsvg.so"
Found metadata in lib /snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqsvg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archreq": 0,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 330752
}


Got keys from plugin meta data ("svg", "svgz")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/imageformats" ...
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqgif.so"
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqico.so"
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqjpeg.so"
loaded library "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/imageformats/libqsvg.so"
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/accessiblebridge" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/wayland-shell-integration" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/wayland-shell-integration" ...
qt.qpa.wayland: No shell integration named "xdg-shell" found
qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
qt.qpa.wayland: No shell integration named "wl-shell" found
qt.qpa.wayland: No shell integration named "ivi-shell" found
qt.qpa.wayland: Loading shell integration failed.
qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/accessible" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/PyQt5/Qt/plugins/wayland-decoration-client" ...
QFactoryLoader::QFactoryLoader() checking directory path "/snap/cluemaster-mediadisplay-core/5/wayland-decoration-client" ...
No decoration plugins available. Running with no decorations.
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

where do you point it to ? does it actually point to the right directory (sorry, i have not much clue about PyQT5, i would actually expect the desktop-qt5 part to set that variable correctly) … btw, have you tried simply forcing X11 usage by adding DISABLE_WAYLAND: 1 to your environment: block ?

1 Like

Hi @ogra. I fixed this error

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T02:48:45Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4735]: /tmp/tmp.MgsRHOoayF CLOSE_WRITE,CLOSE
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Prepairing launch ...
2021-09-10T02:48:47Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4755]: Environment variables setup complete ...
2021-09-10T02:48:48Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: Using Wayland-EGL
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "xdg-shell-v6" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "wl-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: No shell integration named "ivi-shell" found
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Loading shell integration failed.
2021-09-10T02:48:49Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[4838]: qt.qpa.wayland: Attempted to load the following shells ("xdg-shell", "xdg-shell-v6", "wl-shell", "ivi-shell")

The path where my executable was looking for the plugins, was hardcoded by Pyinstaller, so I tranferred the missing plugins and libs, into that directory, rebuild it and now its working!!! Thanks

1 Like

Hi @ogra. After my latest build, I am noticing some weird things in my app… The text started disappearing. I can also see the .gif animations but no texts

Here is the snapcraft.yaml

name: cluemaster-mediadisplay-core
base: core20
version: '1.0.9' 
summary: summary
description: description
grade: stable 
confinement: strict

apps:
  cluemaster-mediadisplay-core:
    daemon: simple
    restart-condition: always
    command-chain:
      - env-setup
    command: usr/local/bin/x11_kiosk_launch $SNAP/bin/desktop-launch $SNAP/bin/prepare-launch $SNAP/cluemaster_display
    plugs:
      - home
      - desktop-legacy
      - desktop
      - wayland
      - x11
      - unity7
      - network
      - opengl
      - gsettings
      - network-bind
      - screen-inhibit-control
      - audio-playback
      - shutdown
      - process-control
      - mount-observe
      - network-control

parts:
  copy-source-code:
    after: [desktop-qt5]
    plugin: dump
    source: cluemaster_display/
    stage-packages:
      - ffmpeg
      - locales
      - libvdpau1
      - i965-va-driver
      - libmpv1
      - va-driver-all
      - vdpau-driver-all
      - mesa-va-drivers
      - libvdpau-va-gl1
      - libglu1-mesa
      - samba-libs
      - git
      - python3-dbus
      - qtwayland5
      - mesa-utils
      - libgl1-mesa-dri
      - libdrm2
      - libgbm1
      - python3-pyqt5.qtmultimedia
      - libqt5multimedia5-plugins

    stage-snaps: [mir-kiosk-x11]

  extra-libraries:
    plugin: nil
    stage-packages:
      - libasound2-data
      - libasound2-plugins
      - libpulse0
      - libpulse-mainloop-glib0

  extras:
    plugin: dump
    source: static/
    organize:
      "prepare-launch": "bin/"

  desktop-qt5:
    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
    source-subdir: qt
    plugin: make
    make-parameters: ["FLAVOR=qt5"]
    build-packages:
      - build-essential
      - qtbase5-dev
      - dpkg-dev
    stage-packages:
      - libxkbcommon0
      - ttf-ubuntu-font-family
      - dmz-cursor-theme
      - light-themes
      - adwaita-icon-theme
      - gnome-themes-standard
      - shared-mime-info
      - libqt5gui5
      - libgdk-pixbuf2.0-0
      - libqt5svg5 # for loading icon themes which are svg
      - try: [appmenu-qt5] # not available on core18
      - locales-all
      - xdg-user-dirs
      - fcitx-frontend-qt5
    stage:
      - -usr/lib/x86_64-linux-gnu/dri/*
      - -usr/lib/x86_64-linux-gnu/libEGL_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
      - -usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_nouveau.so.2.0.0
      - -usr/lib/x86_64-linux-gnu/libdrm_radeon.so.1.0.1
      - -usr/lib/x86_64-linux-gnu/libgbm.so.1.0.0
      - -usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
      - -usr/share/doc/libdrm-common/changelog.Debian.gz
      - -usr/share/doc/libdrm2/changelog.Debian.gz
      - -usr/share/doc/libgbm1/changelog.Debian.gz
      - -usr/share/doc/libglapi-mesa/changelog.Debian.gz
      - -usr/share/drirc.d/00-mesa-defaults.conf
      - -usr/share/libdrm/amdgpu.ids


layout:
  /usr/share/X11:
    bind: $SNAP/usr/share/X11
  /usr/bin/xkbcomp:
    symlink: $SNAP/usr/bin/xkbcomp
  /usr/share/icons:
    bind: $SNAP/usr/share/icons
  /usr/local/share/fonts:
    bind: $SNAP/usr/local/share/fonts
  /etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

you dropped the extension but still use the layout pointing to it …

okay, that means, I need to remove the last layout.

/etc/fonts:
    bind: $SNAP/gnome-platform/etc/fonts

Thanks

Hi @ogra. I am still facing the issue. There is no font. I checked the logs using snap logs cluemaster-mediadisplay-core , and here it says that it can’t find any font…

hiransarkar@ubuntu:~$ snap logs cluemaster-mediadisplay-core
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:15.550785] < -warning- > xwayland: Failed to load any default cursor
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:15.550975] < - ERROR - > xwayland: No default cursor loaded
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:15.551294] <information> xwayland: XWayland is running
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2710]: Failed to create /root/.cache for shader cache (Permission denied)---disabling.
2021-09-10T19:02:15Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2710]: Fontconfig error: Cannot load default config file
2021-09-10T19:02:16Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:16.025209] < - ERROR - > xwayland: XCB error: no reply data
2021-09-10T19:02:16Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:16.025816] < - ERROR - > xwayland: XCB error: no reply data
2021-09-10T19:02:16Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:16.040872] < - debug - > wayland-gfx-helpers: Wayland buffer destroyed before use; rendering will be incomplete
2021-09-10T19:02:21Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:21.422873] < - ERROR - > xwayland: XCB error: no reply data
2021-09-10T19:02:21Z cluemaster-mediadisplay-core.cluemaster-mediadisplay-core[2686]: [2021-09-10 19:02:21.441426] < -warning- > mirserver: Failed to find a font

Hi @ogra. I fixed it, added and removed some layouts and now its working… Thanks for the help so far

1 Like