Bug 105851 - xorg-server 1.19.99.902 stops kwin from working with advertised Present 1.2
Summary: xorg-server 1.19.99.902 stops kwin from working with advertised Present 1.2
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL: https://bugs.kde.org/show_bug.cgi?id=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-02 18:13 UTC by Mike Lothian
Modified: 2018-04-09 13:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log with intel & amdgpu DDXs (25.37 KB, text/plain)
2018-04-02 18:14 UTC, Mike Lothian
no flags Details
Xorg.0.log with modesetting DDX (38.32 KB, text/plain)
2018-04-02 18:14 UTC, Mike Lothian
no flags Details
Dmesg (73.85 KB, text/plain)
2018-04-02 18:15 UTC, Mike Lothian
no flags Details
journalctl (375.49 KB, text/plain)
2018-04-02 18:16 UTC, Mike Lothian
no flags Details
Coredumps (7.13 MB, application/x-xz)
2018-04-05 10:38 UTC, Mike Lothian
no flags Details

Description Mike Lothian 2018-04-02 18:13:44 UTC
Hi 

Something has changed between rc1 and rc2

I can get kwin to start if compositing is off or xrender with the modesetting driver, if it's on X appears to start but doesn't show anything

I can't however get it to start at all with xf86-video-intel and xf86-video-amdgpu (PRIME system)

I'll attach the logs
Comment 1 Mike Lothian 2018-04-02 18:14:25 UTC
Created attachment 138502 [details]
Xorg.0.log with intel & amdgpu DDXs
Comment 2 Mike Lothian 2018-04-02 18:14:57 UTC
Created attachment 138503 [details]
Xorg.0.log with modesetting DDX
Comment 3 Mike Lothian 2018-04-02 18:15:14 UTC
Created attachment 138504 [details]
Dmesg
Comment 4 Mike Lothian 2018-04-02 18:16:29 UTC
Created attachment 138505 [details]
journalctl
Comment 5 Mike Lothian 2018-04-02 18:17:53 UTC
This was with git master as I noticed it had a fix for dmabuf

Could this be a PRIME issue? Is there anything I could attempt before doing a bisect?
Comment 6 Mike Lothian 2018-04-03 03:10:15 UTC
Noticed this when starting steam:

/home/fireburn/.local/share/Steam/ubuntu12_32/steam: symbol lookup error: /usr/lib/libGL.so.1: undefined symbol: xcb_dri3_get_supported_modifiers
Comment 7 Mike Lothian 2018-04-03 03:50:40 UTC
Never mind I just needed to delete the steam version of libxcb-dri3
Comment 8 Mike Lothian 2018-04-03 06:12:29 UTC
So I've bisected the issue back to:

commit abb9b58d1af9a0286162e52ef9db390d0c950fc1
Author: Thierry Reding <treding@nvidia.com>
Date:   Fri Mar 16 14:24:21 2018 +0100

    present: Advertise protocol version 1.2
    
    Everything is implemented to support protocol version 1.2. Make it
    official.
    
    Reviewed-by: Daniel Stone <daniels@collabora.com>
    Signed-off-by: Thierry Reding <treding@nvidia.com>
    Reviewed-by: Emil Velikov <emil.velikov@collabora.com>

Reverting this allows Kwin to start

I think more accurately 6a5d51e0823b43280e3646b7a0c919a3b76146ea isn't working with kwin
Comment 9 Mike Lothian 2018-04-05 10:38:36 UTC
I've raised a bug with the KDE folk, I've tried the latest master and it still doesn't work without the revert of abb9b58d1af9a0286162e52ef9db390d0c950fc1
Comment 10 Mike Lothian 2018-04-05 10:38:57 UTC
Created attachment 138619 [details]
Coredumps
Comment 11 Daniel Stone 2018-04-05 16:31:46 UTC
Is it any better with master now, 99f9b077c62e14ba955b9c1f7afda47f7799d317
Comment 12 Mike Lothian 2018-04-05 18:08:18 UTC
Nope still not working

Intel DDX didn't launch, Modesetting did however compositing was disabled due to the previous failure. Upon reenabling the screen went blank, however things were still running, when I went to the top left corner I could see the window titles, then the outline of the kicker menu too

This is what I think I was seeing before

Are you sure you're testing kwin with compositing enabled?

System Settings > Display and Monitor > Compositor

It'll warn you if it's been disabled
Comment 13 Roman Gilg 2018-04-09 13:11:54 UTC
According to Mike on the mailing list the problem with KWin not starting went away when he removed an old config key that enforces the OpenGl EGL on X backend on KWin.

This backend is basically unsupported nowadays in KWin and therefore enforcing its usage is discouraged.

But as in this case the config key might be left over from before we removed the option in UI to select it.

Therefore I created a patch downstream to ignore such a left-over config key in the future: https://phabricator.kde.org/D12066


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.