"low-graphics mode" in VirtualBox guest, but X server running
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lightdm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I sometimes get the "low-graphics mode" message when starting an Ubuntu 16.04 virtual machine inside of VirtualBox (current development code trunk, somewhere past version 5.1 beta 3 and a debug build). When I switch to VT-7 I find the X server running without any visible issues (I am the upstream developer of the guest graphics drivers, so I have a reasonable but not infallible understanding of the X server).
The virtual machine has Guest Additions installed, same vintage and also a debug build. Two screens are enabled as is 3D acceleration. The host system is also Ubuntu 16.04. I am still trying to work out what triggers the message, but in my last attempts a cold boot failed to produce it, while a clean reboot did, but only when the host system was not under load (under load as in building VirtualBox).
Searching the lightdm log files led me to the message "CRITICAL **: session_
https:/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: lightdm 1.18.1-0ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jul 7 10:49:27 2016
InstallationDate: Installed on 2016-06-08 (28 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: lightdm
UpgradeStatus: No upgrade log present (probably fresh install)
IRC discussion at:
https:/
Just checked, I do not have that message in the current log file, attached the file from yesterday containing the message.
I asked about this on #ubuntu-devel, here are the relevant logs:
(17:09:06) michael-vb: Afternoon. Not sure if this is the right place to ask, but someone will probably know what is.
(17:09:06) michael-vb: I have the following problem with my VirtualBox Ubuntu 16.04 guest with development Guest Additions installed: when I start the guest I get the message "The system is running in low-graphics mode" (on VT 2) even though the X server is running fine (on VT 7).
(17:09:06) michael-vb: I would very much like to know exactly what logic triggers that message so I can work out why I am triggering it and change whatever is responsible (I am the developer of the VirtualBox guest driver and Additions installer).
(18:04:34) michael-vb: Interesting - I just booted the guest system twice with a loaded host (rebuilding VirtualBox) and did not get the "low-graphics mode" message.
(18:27:01) michael-vb: CRITICAL: session_ get_login1_ session_ id: assertion 'session != NULL' failed in the lightdm log file.
(18:31:13) michael-vb: https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 814760
(09:57:21) sladen: michael-vb: http:// askubuntu. com/questions/ 141606/ how-to- fix-the- system- is-running- in-low- graphics- mode-error
(09:57:35) michael-vb: Found that already.
(09:57:50) michael-vb: I am wanting to understand this as a developer, not as a user.
(09:59:07) michael-vb: sladen: it was following from that askubuntu question that I found the system log entry.
(09:59:34) michael-vb: The session clearly gets started just after lightdm checks whether it is running.
(10:01:04) michael-vb: As I said, this does not happen under high load. I suppose the question is, who would understand this stuff well enough to tell me how I can avoid triggering it.
(10:01:15) michael-vb: Or what causes the session to start too late, or lightdm too early.
(10:03:00) michael-vb: I assume that some dependency is not specified well enough somewhere.
(10:03:31) sladen: michael-vb: apt-get source lightdm && grep -r "Error message" is probably the most effective way of identifing the logic causing the error (if it is coming from lightdm)
(10:03:31) michael-vb: But it is annoying, because if it hits users they will blame us first, not you!
(10:04:15) sladen: michael-vb: I'm not too familiar with the inner workings of lightdm; the developer was Robert Ancell in the DX team /irclogs. ubuntu. com/2016/ 07/07/% 23ubuntu- devel.html# t07:52 onwards
(10:04:57) sladen: michael-vb: if it's happening so of the time (seemingly randomly), then there's probably a race condition
(10:06:33) michael-vb: I'm sort of suspecting that it is related to the change to systemd which upset some expectation in lightdm.
(10:08:13) sladen: willcooke: if you're around later, could you get in contact with michael-vb (upstream developer of VirtualBox guest driver), about debugging and resolving the "The system is running in low-graphics mode" message. https:/
(10:08:50) michael-vb: willcooke: and michael dot thayer at oracle if I am not on IRC at that time.
(10:08:56) michael-vb: sladen, willcooke: thank...