How to troubleshoot Wayland problems in Ubuntu?

by rpseu   Last Updated August 14, 2019 19:02 PM

I was basically doing the same thing as this guy, but haven't been as lucky. When I got to the same step in the same tutorial, I also had errors, and as that thread was the only thing that seemed relevant, I updated from 16.04.x LTS to 18.04.3 LTS.

Unfortunately, the upgrade not only failed to resolve my problems, but also introduced new ones. Specifically, mouse and keyboard input at the login screen are now very choppy (mouse moves and freezes, several keypresses appear at once and then none for a brief period with some lost if the buffer is exceeded). The issue goes away after I log in using default settings, but if I click the gear icon during login and choose Ubuntu on Wayland, the choppiness continues inside my login session. This seems likely to indicate a Wayland problem that needs resolved.

In the meantime, in case it is useful, here is the terminal output when I run "sudo miral-app" while logged in using X (presumably, but specifically, the "Ubuntu" option vs the "Ubuntu on Wayland" option):

[2019-08-14 13:33:35.752191] <information> mirserver: Starting
[2019-08-14 13:33:35.752288] < - debug - > mirserver: Not trying logind: "DISPLAY" is set and X need not have claimed the VT
[2019-08-14 13:33:35.752527] < - debug - > mirserver: Using Linux VT subsystem for session management
[2019-08-14 13:33:35.752611] <information> mircommon: Loading modules from: /usr/lib/x86_64-linux-gnu/mir/server-platform
[2019-08-14 13:33:35.752647] <information> mircommon: Loading module: /usr/lib/x86_64-linux-gnu/mir/server-platform/
[2019-08-14 13:33:35.752665] <information> mircommon: Loading module: /usr/lib/x86_64-linux-gnu/mir/server-platform/
[2019-08-14 13:33:35.752679] <information> mircommon: Loading module: /usr/lib/x86_64-linux-gnu/mir/server-platform/
[2019-08-14 13:33:35.753943] <information> mirplatform: Found graphics driver: mir:mesa-x11 (version 1.4.0) Support priority: 0
[2019-08-14 13:33:35.754644] <information> mesa-kms: EGL platform does not support EGL_KHR_platform_gbm extension
[2019-08-14 13:33:35.754816] <information> mesa-kms: Failed to claim DRM master: Invalid argument
[2019-08-14 13:33:35.754878] <information> mirplatform: Found graphics driver: mir:mesa-kms (version 1.4.0) Support priority: 0
ERROR: /build/mir-4z9EK5/mir-1.4.0/src/server/graphics/default_configuration.cpp(172): Throw in function mir::DefaultServerConfiguration::the_graphics_platform()::<lambda()>
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
std::exception::what: Exception while creating graphics platform
ERROR: /build/mir-4z9EK5/mir-1.4.0/src/platform/graphics/platform_probe.cpp(109): Throw in function std::shared_ptr<mir::SharedLibrary> mir::graphics::module_for_device(const std::vector<std::shared_ptr<mir::SharedLibrary> >&, const mir::options::ProgramOption&, const std::shared_ptr<mir::ConsoleServices>&)
Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >
std::exception::what: Failed to find platform for current system

waiting for wayland-0
waiting for wayland-0
waiting for wayland-0

Note that the "waiting for wayland-0" output seems to repeat endlessly if I don't terminate using CTRL+C. The output may have been the same in 16.04.x, but I didn't record it. Further, I see similar output when running the same command while logged in using the Ubuntu on Wayland setting, but the repeating message is then "waiting for wayland-1". I haven't recorded that output, either, but it is repeatable, so I can if it would be useful.

Where do I need to go and/or what do I need to do to troubleshoot this issue?

Tags : 18.04 wayland

Related Questions

How to find the version of Wayland?

Updated May 26, 2017 20:02 PM

Why did Canonical go for Mir and now Wayland?

Updated June 28, 2017 13:02 PM

no more text console on artful

Updated October 11, 2017 20:02 PM

Gl development libraries on Ubuntu 17.10

Updated October 23, 2017 12:02 PM