Bug 1097227

Summary: QT apps fail to work via remote X connection
Product: [openSUSE] openSUSE Tumbleweed Reporter: Steffen Winterfeldt <snwint>
Component: X.OrgAssignee: E-mail List <xorg-maintainer-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <xorg-maintainer-bugs>
Severity: Normal    
Priority: P5 - None CC: fvogt, lpechacek, simon, sndirsch, snwint, wbauer
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Steffen Winterfeldt 2018-06-12 13:50:39 UTC
Since latest tw update (20180606) all qt apps fail to start when started
via a remote x connection (ssh -X).

To be clear: the client side runs on this tw. The server side seems not to matter
(tested leap15 and tw). Connecting from leap15 into tw also works.

The apps freeze during initialization. You see the window frame drawn - but
that's it.

That's specific to qt (and kde) apps. Others work fine.

Both client and server run classical X.
Comment 1 Stefan Dirsch 2018-06-12 14:04:40 UTC
Hmm. Possibly Fabian already heard about that issue.
Comment 2 Fabian Vogt 2018-06-12 14:19:18 UTC
(In reply to Stefan Dirsch from comment #1)
> Hmm. Possibly Fabian already heard about that issue.

It's a bug in the X server, as reported on [opensuse-factory]: https://lists.opensuse.org/opensuse-factory/2018-06/msg00078.html
Comment 3 Wolfgang Bauer 2018-06-12 14:26:42 UTC
It's likely the same as bug#1096806 and https://bugreports.qt.io/browse/QTBUG-68449, I suppose.

A fix for the X server has been proposed here:
https://lists.x.org/archives/xorg-devel/2018-June/057020.html

OTOH, there also will be a fix in Qt 5.11.1 that should avoid the problem:
https://codereview.qt-project.org/#/c/231408/
Comment 4 Wolfgang Bauer 2018-06-12 17:55:46 UTC
(In reply to Wolfgang Bauer from comment #3)
> OTOH, there also will be a fix in Qt 5.11.1 that should avoid the problem:
> https://codereview.qt-project.org/#/c/231408/

I created Qt packages with this patch in case someone wants to try them:
https://download.opensuse.org/repositories/home:/wolfi323:/branches:/KDE:/Qt5/openSUSE_Factory/
Comment 5 Stefan Dirsch 2018-06-12 18:15:56 UTC
Thanks a lot! Steffen, could you give the qt5 packages a try?
Comment 6 Steffen Winterfeldt 2018-06-13 08:35:31 UTC
This works. Thanks!
Comment 7 Stefan Dirsch 2018-06-13 09:12:47 UTC
Wonderful! Wolfgang, could you please create a SR for KDE:Qt5? Thanks!
Comment 8 Wolfgang Bauer 2018-06-13 09:25:05 UTC
(In reply to Stefan Dirsch from comment #7)
> Wonderful! Wolfgang, could you please create a SR for KDE:Qt5? Thanks!

Yes, I already did:
https://build.opensuse.org/request/show/616470

The X server fix might still be a good idea though I suppose, but I'll leave that up to you... ;-)
Comment 9 Stefan Dirsch 2018-06-13 10:22:35 UTC
(In reply to Wolfgang Bauer from comment #8)
> The X server fix might still be a good idea though I suppose, but I'll leave
> that up to you... ;-)

Honestly I would like to see this patch upstream first ...
Comment 10 Swamp Workflow Management 2018-06-13 15:50:13 UTC
This is an autogenerated message for OBS integration:
This bug (1097227) was mentioned in
https://build.opensuse.org/request/show/616568 Factory / libqt5-qtbase
Comment 11 Wolfgang Bauer 2018-06-20 14:02:44 UTC
*** Bug 1098431 has been marked as a duplicate of this bug. ***
Comment 12 Wolfgang Bauer 2018-06-20 14:39:20 UTC
(In reply to Stefan Dirsch from comment #9)
> Honestly I would like to see this patch upstream first ...

It has been merged last Thursday:
https://lists.x.org/archives/xorg-devel/2018-June/057133.html
https://cgit.freedesktop.org/xorg/xserver/commit/?id=ec7e2b54c5b4a34b2a077082967bc3ead30e227e
Comment 13 Stefan Dirsch 2018-06-20 15:53:26 UTC
(In reply to Wolfgang Bauer from comment #12)
> (In reply to Stefan Dirsch from comment #9)
> > Honestly I would like to see this patch upstream first ...
> 
> It has been merged last Thursday:
> https://lists.x.org/archives/xorg-devel/2018-June/057133.html
> https://cgit.freedesktop.org/xorg/xserver/commit/
> ?id=ec7e2b54c5b4a34b2a077082967bc3ead30e227e

Thanks! Just added to obs://X11:XOrg/xorg-x11-server and submitrequested to openSUSE:Factory.  So let's close this one as fixed.
Comment 14 Swamp Workflow Management 2018-06-20 16:30:05 UTC
This is an autogenerated message for OBS integration:
This bug (1097227) was mentioned in
https://build.opensuse.org/request/show/618107 Factory / xorg-x11-server
Comment 15 Libor Pechacek 2018-06-21 08:19:16 UTC
(In reply to Swamp Workflow Management from comment #10)
> https://build.opensuse.org/request/show/616568 Factory / libqt5-qtbase

Gave a shot to packages from https://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Factory/ and the freeze is gone. Thanks!

lpechacek@fmn:~> rpm -q --changelog libqt5-qtbase-devel | head
* Wed Jun 13 2018 fabian@ritter-vogt.de
- Add patch allow fallback from the xcb platform to others (QTBUG-68859):
  * 0001-Hack-together-a-way-to-get-fallback-from-xcb-working.patch
- Use "xcb;wayland" as default platform plugin list

* Tue Jun 12 2018 wbauer@tmo.at
- Add patch to fix running Qt applications via ssh (boo#1096806,
  boo#1097227):
  * xcb-fix-regression-with-remote-X11-clients.patch
lpechacek@fmn:~> rpm -q libqt5-qtbase-devel 
libqt5-qtbase-devel-5.11.0-4.2.x86_64
Comment 16 Wolfgang Bauer 2018-06-23 13:53:29 UTC
*** Bug 1098911 has been marked as a duplicate of this bug. ***
Comment 17 Swamp Workflow Management 2018-07-19 14:20:07 UTC
This is an autogenerated message for OBS integration:
This bug (1097227) was mentioned in
https://build.opensuse.org/request/show/624084 Factory / xorg-x11-server