You are not logged in.

#1 2023-07-10 02:37:05

lakso
Member
Registered: 2020-08-02
Posts: 32

[SOLVED] Telegram-desktop takes 5 minutes to open

I'm on a laptop using the 6.1.38-1-lts kernel, I think this has been happening since my last kernel update but I can't be sure. If I open telegram-desktop from a terminal, while it opens the terminal prints:

QPainter::begin: Paint device returned engine == 0, type: 2
QWidget::render: Cannot render with an inactive painter
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed
qt.svg: Error while inflating gzip file: SVG format check failed

Once it opens the app works fine, unless I try to open an image and then it hangs completely.
I'm using lightdm and BSPWM, with the proprietary Nvidia drivers and optimus-manager.
I don't know what logs would be relevant but I can paste whatever information is needed.

Last edited by lakso (2023-07-10 14:57:20)

Offline

#2 2023-07-10 07:07:53

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED] Telegram-desktop takes 5 minutes to open

pacman -Qs portal
loginctl session-status

Online

#3 2023-07-10 14:41:19

lakso
Member
Registered: 2020-08-02
Posts: 32

Re: [SOLVED] Telegram-desktop takes 5 minutes to open

loginctl session-status:

1 - lakso (1000)
           Since: Mon 2023-07-10 11:30:49 -03; 8min ago
          Leader: 585 (lightdm)
            Seat: seat0; vc7
         Display: :0
         Service: lightdm-autologin; type x11; class user
         Desktop: bspwm
           State: active
            Unit: session-1.scope
                  ├─ 585 lightdm --session-child 15 18
                  ├─ 609 bspwm
                  ├─ 651 /bin/sh /home/lakso/.config/bspwm/bspwmrc 0
                  ├─ 656 sxhkd
                  ├─ 681 nm-applet
                  ├─ 684 picom -b
                  ├─ 770 eww open dashboard
                  ├─ 793 /bin/sh ./workspace
                  ├─ 826 bspc subscribe desktop node_transfer
                  ├─ 827 /bin/sh ./workspace
                  ├─ 847 ssh-agent -s
                  ├─1007 /usr/lib/firefox/firefox
                  ├─1337 /usr/lib/firefox/firefox -contentproc -parentBuildID 20230707173157 -prefsLen 36951 -prefMapSize 247184 -appDir /usr/lib/firefox/browser {081743e5-cac9-413b-9258-e61>
                  ├─1358 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 37054 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─1434 /usr/lib/firefox/firefox -contentproc -childID 2 -isForBrowser -prefsLen 42886 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─1514 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 33572 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─1515 /usr/lib/firefox/firefox -contentproc -childID 4 -isForBrowser -prefsLen 33572 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─1556 /usr/lib/firefox/firefox -contentproc -childID 5 -isForBrowser -prefsLen 33626 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─1710 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 33764 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─2016 telegram-desktop
                  ├─3456 kitty
                  ├─3458 /bin/zsh
                  ├─3884 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 34728 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─3888 /usr/lib/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 34728 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─3971 /usr/lib/firefox/firefox -contentproc -parentBuildID 20230707173157 -prefsLen 44052 -prefMapSize 247184 -appDir /usr/lib/firefox/browser {135f8a65-0816-4673-b4df-61d>
                  ├─3973 /usr/lib/firefox/firefox -contentproc -parentBuildID 20230707173157 -sandboxingKind 0 -prefsLen 44052 -prefMapSize 247184 -appDir /usr/lib/firefox/browser {0ba86a3c->
                  ├─4255 /usr/lib/firefox/firefox -contentproc -childID 9 -isForBrowser -prefsLen 34728 -prefMapSize 247184 -jsInitLen 240908 -parentBuildID 20230707173157 -appDir /usr/lib/f>
                  ├─5443 loginctl session-status
                  └─5444 less

jul 10 11:33:56 archlinux telegram-desktop[2016]: QPainter::begin: Paint device returned engine == 0, type: 2
jul 10 11:33:56 archlinux telegram-desktop[2016]: QWidget::render: Cannot render with an inactive painter
jul 10 11:38:46 archlinux telegram-desktop[2016]: qt.qpa.input.events: scroll event from unregistered device 15
jul 10 11:38:46 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed
jul 10 11:38:46 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed
jul 10 11:38:46 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed
jul 10 11:38:46 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed
jul 10 11:38:47 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed
jul 10 11:38:47 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed
jul 10 11:38:47 archlinux telegram-desktop[2016]: qt.svg: Error while inflating gzip file: SVG format check failed

pacman -Qs portal:

local/xdg-desktop-portal 1.16.0-3
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gnome 44.1-2 (gnome)
    A backend implementation for xdg-desktop-portal for the GNOME desktop
    environment
local/xdg-desktop-portal-gtk 1.14.1-1
    A backend implementation for xdg-desktop-portal using GTK

Offline

#4 2023-07-10 14:49:22

seth
Member
Registered: 2012-09-03
Posts: 52,199

Re: [SOLVED] Telegram-desktop takes 5 minutes to open

Remove xdg-desktop-portal-gnome, it's broken outside gnome.
There must be some dozen threads about this by now.

Online

#5 2023-07-10 14:57:09

lakso
Member
Registered: 2020-08-02
Posts: 32

Re: [SOLVED] Telegram-desktop takes 5 minutes to open

Thanks! that solved it. I've never used GNOME so I don't know why I have that.

Offline

Board footer

Powered by FluxBB