Skip to main content
Topic: Qt File Dialog Freezes in most Qt-based applications (Read 839 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Qt File Dialog Freezes in most Qt-based applications

When I try to save or choose a file from within some applications, the system get freezed and after some long time it might respond, or I find myself ought to restart the machine.

Examples of apps I faced that have this problem in dealing with files:
ScreenGrab
Telegram-desktop
Falkon
Transmission-qt

But for apps that use gtk file chooser, I have no problem in saving or opening files inside the application.

Anybody have this issue or have a solution please?

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #1
when i have trouble with a buggy program i start it in a terminal and try to see if there's any output that might be relevant.  since you have at least 4 you could try all 4 from a terminal and see whats what.  and if it locks up you kill the terminal to get your system unstuck?
Cat Herders of Linux

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #2
What desktop are you using?
Run "env | grep qt" in a terminal, maybe you have some envir. variables weirdly set

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #3
when i have trouble with a buggy program i start it in a terminal and try to see if there's any output that might be relevant.  since you have at least 4 you could try all 4 from a terminal and see whats what.  and if it locks up you kill the terminal to get your system unstuck?

Even if I start it from a terminal, I cannot kill it, because the system doesn't respond at all.
When I run Falkon or ScreenGrab from the terminal, they don't give any error messages, although they get stuck, but after some time, they can unfreeze again.

For telegram, it gives me these errors, and when it gets stuck, all the system gets stuck forever, unless I press the power button:
Code: [Select]
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.svg: Error while inflating gzip file: SVG format check failed

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #4
What desktop are you using?
Run "env | grep qt" in a terminal, maybe you have some envir. variables weirdly set
I use lxqt.
This is the output of the "env | grep qt" command:
Code: [Select]
XDG_MENU_PREFIX=lxqt-
DESKTOP_SESSION=lxqt
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.sh=01;32:*.pl=01;32:*.py=01;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tbz2=00;31:*.xz=00;31:*.tz=00;31:*.deb=00;31:*.rpm=00;31:*.jar=00;31:*.rar=00;31:*.ace=00;31:*.zoo=00;31:*.cpio=00;31:*.7z=00;31:*.rz=00;31:*.zst=00;31:*.jpg=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.mng=00;35:*.pcx=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:*.m2v=00;35:*.mkv=00;35:*.ogm=00;35:*.mp4=00;35:*.m4v=00;35:*.mp4v=00;35:*.qt=00;35:*.wmv=00;35:*.asf=00;35:*.rm=00;35:*.rmvb=00;35:*.flc=00;35:*.flv=00;35:*.avi=00;35:*.fli=00;35:*.gl=00;35:*.dl=00;35:*.xcf=00;35:*.xwd=00;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.flac=00;35:*.mp3=00;35:*.mpc=00;36:*.ogg=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.flac=00;36:*.aac=00;36:
QT_PLATFORM_PLUGIN=lxqt

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #5
Even if I start it from a terminal, I cannot kill it, because the system doesn't respond at all.
When I run Falkon or ScreenGrab from the terminal, they don't give any error messages, although they get stuck, but after some time, they can unfreeze again.

For telegram, it gives me these errors, and when it gets stuck, all the system gets stuck forever, unless I press the power button:
Code: [Select]
qt.gui.imageio.jpeg: Corrupt JPEG data: premature end of data segment
qt.svg: Error while inflating gzip file: SVG format check failed


those error messages seem to suggest your icon images aren't working or are corrupt.  can i ask what theme are you using on lxqt?  this could be a simple themeing issue that lxqt cant render?
Cat Herders of Linux

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #6

those error messages seem to suggest your icon images aren't working or are corrupt.  can i ask what theme are you using on lxqt?  this could be a simple themeing issue that lxqt cant render?

Thanks for your reply.
After your message, I tried several themes, among them: breeze, Numix, Arch-color, Artix-dark... etc. After trying each one, I restart the system and try running the problematic apps, but the problem still exist.

I tried changing "Widget Style", "Icon Theme", "LXQt Theme", and "GTK Style" with no avail.

For Telegram, I temporarily bypassed its issue by downloading and running the official app from their site, which run without installation.

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #7
I'm running lxqt for quite a few months without issue for transmission-qt or screengrab (or anything else), so the question is:   on initial install, did these issues exist or did they appear later, maybe after a certain package was installed from aur etc?

 

Re: Qt File Dialog Freezes in most Qt-based applications

Reply #8
maybe adjust the settings in the theme to select different icon sets?  The only other thing is perhaps like was said above, maybe you installed something from the aur with a different version of qt that is causing a conflict?
Cat Herders of Linux