rafatosta / zapzap

WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine.
GNU General Public License v3.0
44 stars 2 forks source link

No application window - just a taskbar icon #165

Closed sz3lbi closed 9 months ago

sz3lbi commented 1 year ago

Hi. I have installed ZapZap via Flatpak (from Flathub). The version I am using (or at least trying to use) is 4.4.5.
The problem is that when the application is launched, only the taskbar icon is visible - the application window does not open for me. The application preview in the taskbar is completely black. No matter how many times I click on it, there is no application window on the screen at all.

Screenshot_20230701_153824

Screenshot_20230701_153844

Neofetch:

norbert@localhost:~> neofetch
                                     ......            norbert@localhost.localdomain
     .,cdxxxoc,.               .:kKMMMNWMM
MNk:.        -----------------------------
    cKMMN0OOOKWMMXo. ;        ;0MWk:.      .:OMMk.     OS: openSUSE Tumbleweed x86_64
  ;WMK;.       .lKMMNM,     :NMK,             .OMW;    Host: MS-7B86 2.0
 cMW;            'WMMMN   ,XMK,                 oMM'   Kernel: 6.3.9-1-default
.MMc               ..;l. xMN:                    KM0   Uptime: 29 mins
'MM.                   'NMO                      oMM   Packages: 2707 (rpm), 41 (flatpak)
.MM,                 .kMMl                       xMN   Shell: bash 5.2.15
 KM0               .kMM0. .dl:,..               .WMd   Resolution: 1920x1080
 .XM0.           ,OMMK,    OMMMK.              .XMK    DE: Plasma 5.27.6
   oWMO:.    .;xNMMk,       NNNMKl.          .xWMx     WM: kwin
     :ONMMNXMMMKx;          .  ,xNMWKkxllox0NMWk,      Theme: [Plasma], Breeze [GTK2/3]
         .....                    .:dOOXXKOxl,         Icons: [Plasma], breeze-dark [GTK2/3]
                                                       Terminal: konsole
                                                       CPU: AMD Ryzen 5 1600X (12) @ 3.600GHz
                                                       GPU: NVIDIA GeForce GTX 1070
                                                       Memory: 7370MiB / 15925MiB

The output I get when I start the application from terminal:

norbert@localhost:~> flatpak run com.rtosta.zapzap
qt.webenginecontext:

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes

Init Parameters:
  *  application-name ZapZap
  *  browser-subprocess-path /app/bin/QtWebEngineProcess
  *  create-default-gl-context
  *  disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
  *  disable-setuid-sandbox
  *  disable-speech-api
  *  enable-features NetworkServiceInProcess,TracingServiceInProcess
  *  enable-threaded-compositing
  *  enable-use-zoom-for-dsf false
  *  in-process-gpu
  *  use-gl desktop

[2:22:0701/153755.413909:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153755.413934:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153755.413942:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153755.413952:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
[2:22:0701/153755.501474:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153755.501503:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153755.501513:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153755.501527:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
[2:22:0701/153755.688967:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153755.689007:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153755.689015:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153755.689025:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
[2:22:0701/153755.708839:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153755.708867:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153755.708872:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153755.708881:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
js: Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
js: Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
js: Error with Permissions-Policy header: Unrecognized feature: 'payment'.
js: Error with Permissions-Policy header: Unrecognized feature: 'usb'.
js: Another connection wants to delete database 'wawc'. Closing db now to resume the delete request.
[2:22:0701/153756.795885:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153756.795914:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153756.795925:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153756.795938:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
[2:22:0701/153756.860796:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153756.860825:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153756.860834:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153756.860847:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
[2:22:0701/153756.890868:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153756.890903:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153756.890913:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153756.890928:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
[2:22:0701/153808.208616:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153808.208643:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153808.208651:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153808.208664:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
[2:22:0701/153808.208996:ERROR:gl_context_egl.cc(279)] eglCreateContext failed with error EGL_BAD_CONTEXT
[2:22:0701/153808.209015:ERROR:gpu_channel_manager.cc(823)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
[2:22:0701/153808.209024:ERROR:shared_image_stub.cc(524)] SharedImageStub: unable to create context
[2:22:0701/153808.209036:ERROR:gpu_channel.cc(568)] GpuChannel: Failed to create SharedImageStub
Release of profile requested but WebEnginePage still not deleted. Expect troubles !
rafatosta commented 1 year ago

Strange. Try switching to X11 in Flatseal and see if the problem persists

sz3lbi commented 1 year ago

After disabling Wayland in Flatseal it works fine. But I guess this is not the preferred way to run the application :D

obraz

Terminal output:

norbert@localhost:~> flatpak run com.rtosta.zapzap
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
rafatosta commented 1 year ago

Yes, it's a correct way to run the application. If you prefer Wayland, you will have to accept the limitations on the part of Wayland and the Qt framework and not zapzap.

sz3lbi commented 1 year ago

Interestingly, these restrictions on the Wayland & Qt side only occur in your application. Considering how many of them I use, and that I've never had to disable Wayland in Flatseal, this speaks for itself.
So I assumed it wasn't what it was supposed to be :)