After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789489 - Can't start up using Wayland in Ubuntu 17.10: error: linking with uncompiled shader
Can't start up using Wayland in Ubuntu 17.10: error: linking with uncompiled ...
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
3.26.x
Other Linux
: Normal blocker
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-10-25 17:32 UTC by Traumflug
Modified: 2018-10-25 21:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Diff for removing all shader code (43.63 KB, text/plain)
2017-10-31 18:45 UTC, Traumflug
Details

Description Traumflug 2017-10-25 17:32:44 UTC
Upgraded to the shiny new Ubuntu 17.10 today which replaced Unity by Gnome 3  and also introduced Wayland. I can't log in using Wayland, see https://bugs.launchpad.net/bugs/1727356 . The same OS installation works fine when using 'Ubuntu with Xorg'.

The reason for this report is, debug logs there hint on a failure in gnome-shell:

gnome-shell[5180]: Shader compilation failed:#0120:44(42): warning: `cogl_texel0' used uninitialized#0120:72(36): error: could not implicitly convert operands to arithmetic operator#0120:72(18): error: operands to arithmetic operators must be numeric

gnome-shell[5180]: Failed to link GLSL program:#012error: linking with uncompiled shader

gnome-shell[5180]: driver/gl/cogl-pipeline-progend-glsl.c:384: GL error (1282): Invalid operation

I'm a developer, but by no means an OpenGL expert, so I googled and found this: https://www.khronos.org/opengl/wiki/Shader_Compilation

Putting this together, it looks like gnome-shell tries to compile and use GLSL shaders, which are a OpenGL 4+ feature, and bails out if this doesn't work. This PC has Intel integrated graphics, supporting OpenGL 1.2.
Comment 1 Daniel van Vugt 2017-10-26 02:51:14 UTC
Logs from the Launchpad bug show that the hardware is:

Integrated Graphics Chipset: Intel(R) G33
Comment 2 Traumflug 2017-10-31 18:45:33 UTC
Created attachment 362689 [details]
Diff for removing all shader code

In an attempt to narrow down the problematic area I pretty boldly commented out all code with 'shader' or 'GLSL'. Without understanding how the code works, simply by grep'ing.

That's a success. Xorg sessions still work fine. For Wayland sessions, all gnome-shell messages are gone from syslog. Session initialization gets a lot farther, apparently past gnome-shell stuff.

Still not a solution, of course, but now one can narrow down further by bisecting, like reducing the amount of commented out code.
Comment 3 Daniel van Vugt 2018-08-15 03:52:18 UTC
If this fix works:

  https://gitlab.gnome.org/GNOME/mutter/commit/f7af32a3eaef

then I think this bug will turn out to be moot. Maybe see this one instead:

  https://gitlab.gnome.org/GNOME/mutter/issues/127
Comment 4 Daniel van Vugt 2018-10-24 06:26:41 UTC
Traumflug,

Please try Ubuntu 18.10. If that works then I think you will find the real problem was https://gitlab.gnome.org/GNOME/mutter/issues/127
Comment 5 Traumflug 2018-10-25 21:20:54 UTC
Yes, going into a Wayland session works just fine after the upgrade to 18.10 (coming with mutter 3.30.1).