Xorg crash on 3d-enabled virgl (Haswell host)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mesa (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
xorg-server (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I am running a KVM virtual machine with 3D acceleration (virgl). The host is Arch Linux, the guest is Ubuntu 18.04. However, recently, the session started crashing just after the login. In xorg logs, I see this:
[ 15.338] (WW) modeset(0): Page flip failed: Invalid argument
[ 15.338] (EE) modeset(0): present flip failed
[ 15.397] (WW) modeset(0): Page flip failed: Invalid argument
[ 15.397] (EE) modeset(0): present flip failed
[ 15.418] (WW) modeset(0): Page flip failed: Invalid argument
[ 15.419] (EE) modeset(0): present flip failed
[ 15.440] (WW) modeset(0): Page flip failed: Invalid argument
[ 15.440] (EE) modeset(0): present flip failed
[ 15.460] (WW) modeset(0): Page flip failed: Invalid argument
[ 15.460] (EE) modeset(0): present flip failed
[ 15.975] (WW) modeset(0): Page flip failed: Invalid argument
[ 15.976] (EE) modeset(0): present flip failed
[ 16.039] (WW) modeset(0): Page flip failed: Invalid argument
[ 16.040] (EE) modeset(0): present flip failed
[ 16.064] (WW) modeset(0): Page flip failed: Invalid argument
[ 16.064] (EE) modeset(0): present flip failed
[ 16.096] Failed to compile FS: 0:11(2): error: `color0' undeclared
0:11(2): error: value of type vec4 cannot be assigned to variable of type error
0:12(2): error: `color1' undeclared
0:12(2): error: value of type vec4 cannot be assigned to variable of type error
[ 16.096] Program source:
#ifdef GL_ES
precision mediump float;
#endif
#define ATLAS_DIM_INV 0.0009765625000
varying vec2 glyph_pos;
uniform vec4 fg;
uniform sampler2D atlas;
void main() {
vec4 mask = texture2D(atlas, glyph_pos);
vec4 source = fg;
color0 = source * mask;
color1 = source.a * mask;
}
[ 16.096] (EE)
Fatal server error:
[ 16.096] (EE) GLSL compile failure
Downgrading libgl1-mesa-dri from 19.0.2-
Arch on Arch does not fail this way. Mesa version is 19.1.1-1 there.
On the host, the GPU is Intel Haswell:
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)
The CPU is Intel(R) Core(TM) i7-4770S CPU.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: xorg 1:7.7+19ubuntu7.1
ProcVersionSign
Uname: Linux 4.15.0-54-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 16 20:52:03 2019
DistUpgraded: Fresh install
DistroCodename: bionic
DistroVariant: ubuntu
DpkgLog:
ExtraDebuggingI
GraphicsCard:
Red Hat, Inc. Virtio GPU [1af4:1050] (rev 01) (prog-if 00 [VGA controller])
Subsystem: Red Hat, Inc. Virtio GPU [1af4:1100]
Lsusb: Error: command ['lsusb'] failed with exit code 1:
MachineType: QEMU Standard PC (Q35 + ICH9, 2009)
ProcEnviron:
TERM=xterm-
PATH=(custom, no username)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: xorg
Symptom: display
Title: Xorg crash
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.12.0-
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (Q35 + ICH9, 2009)
dmi.product.
dmi.sys.vendor: QEMU
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.97-
version.
version.
version.
version.
version.
version.
version.
Changed in mesa (Ubuntu): | |
status: | Incomplete → Confirmed |
Before we debug anything here, one of your packages is broken, which might be relevant:
libgl1-mesa-dri 18.0.0~rc5-1ubuntu1
It should be version 19. To fix this please run:
sudo apt update
sudo apt full-upgrade
If that doesn't fix it then download and install the missing package:
https:/ /launchpad. net/ubuntu/ +archive/ primary/ +files/ libgl1- mesa-dri_ 19.0.2- 1ubuntu1. 1~18.04. 1_amd64. deb
and reboot.