Bug 352957 - Qt applications freeze when trying to Open File
Summary: Qt applications freeze when trying to Open File
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: frameworks-frameworkintegration
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-20 20:42 UTC by Dan Farcaș
Modified: 2020-02-26 14:15 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
File Dialog (177.59 KB, image/png)
2015-09-25 10:46 UTC, Dan Farcaș
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Farcaș 2015-09-20 20:42:58 UTC
Once in ~10 times the File Opener freezes when launching in various QT applications(tested in Kate, Kwriter and SMplayer). To unfreeze the app I must push the Escape button.

I can't get any good error output from this issue, I don't know if these are helpful or not:

1) Got this error once, but in that instance the file opened
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1427, resource id: 35692138, major code: 15 (QueryTree), minor code: 0

2) Got this error once, but the file opened as well. Created an empty smb.conf file in /etc/samba but the issue persists.
KSambaShare: Could not find smb.conf!

A very similar marked as solved bug here: https://bugs.kde.org/show_bug.cgi?id=346413


Reproducible: Sometimes

Steps to Reproduce:
For example, open Kate or Kwriter
Press Ctrl + O and Escape a couple of times - basically open and close the file dialog. The application will freeze at some point until escape is pressed.

Actual Results:  
The application freezes until Escape is pressed

Expected Results:  
The file dialog should open every time it's called

$ pacman -Qi plasma-desktop
Name           : plasma-desktop
Version        : 5.4.1-2
Description    : KDE Plasma Desktop
Architecture   : x86_64
URL            : https://www.kde.org/workspaces/plasmadesktop/
Licenses       : LGPL
Groups         : plasma
Provides       : None
Depends On     : powerdevil  polkit-kde-agent  libcanberra  kwin  libxkbfile  kmenuedit  systemsettings  ksysguard  kpeople  baloo
                 qt5-graphicaleffects
Optional Deps  : plasma-nm: Network manager applet [installed]
Required By    : None
Optional For   : None
Conflicts With : kdebase-workspace  kcm-touchpad-frameworks
Replaces       : kcm-touchpad-frameworks
Installed Size :  30.41 MiB
Packager       : Antonio Rojas <arojas@archlinux.org>
Build Date     : Fri 11 Sep 2015 04:49:03 PM EEST
Install Date   : Fri 11 Sep 2015 10:19:44 PM EEST
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

===================================================================

$ pacman -Qi libxcb
Name           : libxcb
Version        : 1.11.1-1
Description    : X11 client-side library
Architecture   : x86_64
URL            : http://xcb.freedesktop.org/
Licenses       : custom
Groups         : None
Provides       : None
Depends On     : xcb-proto>=1.11  libxdmcp  libxau
Optional Deps  : None
Required By    : lib32-libxcb  libx11  libxkbcommon-x11  redshift  xcb-util  xcb-util-cursor  xcb-util-image  xcb-util-keysyms
                 xcb-util-renderutil  xcb-util-wm
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size :   3.90 MiB
Packager       : Andreas Radke <andyrtr@archlinux.org>
Build Date     : Mon 07 Sep 2015 09:54:10 PM EEST
Install Date   : Thu 10 Sep 2015 09:32:38 PM EEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By   : Signature

===================================================================

$ pacman -Qi qt5-base
Name           : qt5-base
Version        : 5.5.0-2
Description    : A cross-platform application and UI framework
Architecture   : x86_64
URL            : http://www.qt.io/developers
Licenses       : GPL3  LGPL  FDL  custom
Groups         : qt  qt5
Provides       : None
Depends On     : libjpeg-turbo  xcb-util-keysyms  libgl  dbus  fontconfig  systemd  xcb-util-wm  libxrender  libxi  sqlite  xcb-util-image
                 icu  qtchooser  libinput
Optional Deps  : qt5-svg: to use SVG icon themes [installed]
                 postgresql-libs: PostgreSQL driver
                 libmariadbclient: MariaDB driver
                 unixodbc: ODBC driver
                 libfbclient: Firebird/iBase driver
                 mtdev: evdev plugin [installed]
                 libxkbcommon-x11: xcb plugin [installed]
                 libsm: xcb plugin [installed]
                 gtk2: GTK2 plugin [installed]
Required By    : attica-qt5  gpgmepp  karchive  kcodecs  kconfig  kcoreaddons  kdecoration  kdnssd  kitemmodels  kitemviews  kjs
                 kplotting  kwayland  kwidgetsaddons  libaccounts-qt5  libdbusmenu-qt5  modemmanager-qt  networkmanager-qt  phonon-qt5
                 polkit-qt5  poppler-qt5  prison-frameworks  qca-qt5  qt5-imageformats  qt5-script  qt5-serialport  qt5-svg
                 qt5-translations  qt5-wayland  qt5-x11extras  qt5-xmlpatterns  signon  sonnet  telepathy-qt5  threadweaver
                 transmission-qt
Optional For   : cmake
Conflicts With : qt
Replaces       : None
Installed Size :  55.06 MiB
Packager       : Felix Yan <felixonmars@archlinux.org>
Build Date     : Tue 18 Aug 2015 10:22:00 AM EEST
Install Date   : Fri 11 Sep 2015 11:30:13 AM EEST
Install Reason : Explicitly installed
Install Script : No
Validated By   : Signature

=======================================================
$ pacman -Qi kwrite
Name           : kwrite
Version        : 15.08.1-1
Description    : Text Editor
Architecture   : x86_64
URL            : http://www.kde.org/applications/utilities/kwrite/
Licenses       : GPL  LGPL  FDL
Groups         : kde-applications  kdebase
Provides       : kdebase-kwrite
Depends On     : knewstuff  ktexteditor  threadweaver  kded  kitemmodels  kactivities-frameworks
Optional Deps  : None
Required By    : None
Optional For   : None
Conflicts With : kdebase-kwrite
Replaces       : kdebase-kwrite
Installed Size : 132.00 KiB
Packager       : Antonio Rojas <arojas@archlinux.org>
Build Date     : Sun 13 Sep 2015 12:20:21 AM EEST
Install Date   : Sun 20 Sep 2015 11:12:20 PM EEST
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature
Comment 1 Hussam Al-Tayeb 2015-09-20 21:21:59 UTC
I tried reproducing this under valgrind. It worked better there...
http://pastebin.com/raw.php?i=ejyJknBC
Comment 2 Christoph Feck 2015-09-24 10:40:46 UTC
If you are using a pure Qt5 application (e.g. smplayer), does the Qt file dialog, or the KDE file dialog appear?
Comment 3 Hussam Al-Tayeb 2015-09-24 10:45:30 UTC
This happens every single time in a pure Qt5 application, clementine (Music -> Open File).
My first installation was Qt5.4 where I first noticed this and this still happens in Qt5.5.0
Comment 4 Hussam Al-Tayeb 2015-09-24 10:48:22 UTC
I see this in terminal when I press "open file"
__logging_message__13:47:47.185 WARN  unknown                          KSambaShare: Could not find smb.conf!
Comment 5 Hussam Al-Tayeb 2015-09-24 10:51:30 UTC
I did the following:
touch /etc/smb.conf 
mkdir /etc/samba/
ln -s /etc/smb.conf /etc/samba/smb.conf
and clementine file dialog now appears.
Comment 6 Hussam Al-Tayeb 2015-09-24 10:54:14 UTC
Nevermind....It happened again under clementine.
It appears to be using the KDE file dialog.
Sorry for the spam.
Comment 7 Dan Farcaș 2015-09-25 10:46:29 UTC
Created attachment 94715 [details]
File Dialog

Christoph> this is the dialog that's being opened.
Comment 8 Hussam Al-Tayeb 2015-09-30 20:26:25 UTC
duplicate of bug Bug 350758?
Comment 9 Christoph Feck 2015-10-21 21:10:52 UTC
Is this still happening with KF5 frameworks updated to 5.15.0 version? It could indeed be a duplicate of bug 350758.
Comment 10 Alexander Mentyu 2018-07-23 14:23:52 UTC
Is this still reproducible?