Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55732 - [linux] Failed to submit rendering commands (Invalid argument)

Attached to Project: Arch Linux
Opened by Stefan (steinwanderer) - Sunday, 24 September 2017, 16:04 GMT
Last edited by Doug Newgard (Scimmia) - Tuesday, 03 October 2017, 14:50 GMT
Task Type Bug Report
Category Kernel
Status Assigned
Assigned To Tobias Powalowski (tpowa)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 2
Private No

Details

Description:

I experiencing randomly lockups with Firefox, Epiphany and other. Nether of them are able to display a webpage, when this happens. Only a white page shows up. The hole UI (gnome) feels kind of slow after that. Firefox UI shows some "flickering" in his Iconbar and seems not to be able to display the UI correctly. Other programs are very slow.

Only a complete restart or using "linux-lts" kernel fixes this. No logs or error messages, beside of:

Sep 24 16:16:16 /usr/lib/gdm/gdm-x-session[1387]: (EE) intel(0): Failed to submit rendering commands (Invalid argument), disabling acceleration.

Affected: linux-zen 4.13.3-1
Not affected: linux-lts 4.9.51-1

I can only guess it is either the i915 Module and/or some of the latest GTK Updates.
This task depends upon

Comment by Doug Newgard (Scimmia) - Sunday, 24 September 2017, 16:29 GMT
Same as FS#55718?
Comment by Stefan (steinwanderer) - Sunday, 24 September 2017, 23:11 GMT
Usure, could be. For me it works fine until I surf to a website with a lot of "transitional animations", like Endless-Scrolling, Image blend-in/out and such fancy stuff. At some point gdm-x-session throws this "Failed to submit rendering commands" error and the problems start.

Otherwise I noticed a general more frequently use of the fan even under light load conditions. I don't have gnome animation enabled by default, so I'll first reenable the animations in gnome and test again.

Output of lspci for the records:

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset MEI Controller (rev 07)
00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
03:00.0 Network controller: Intel Corporation Ultimate N WiFi Link 5300
04:00.0 Multimedia controller: Broadcom Limited BCM70015 Video Decoder [Crystal HD]

and my kernel upgrade history:

[2017-08-25 16:30] [ALPM] upgraded linux-zen (4.12.8-1 -> 4.12.8-2)
[2017-08-25 16:30] [ALPM] upgraded linux-zen-headers (4.12.8-1 -> 4.12.8-2)
[2017-08-25 23:54] [ALPM] upgraded linux-zen (4.12.8-2 -> 4.12.9-1)
[2017-08-25 23:55] [ALPM] upgraded linux-zen-headers (4.12.8-2 -> 4.12.9-1)
[2017-09-02 18:48] [ALPM] upgraded linux-zen (4.12.9-1 -> 4.12.10-1)
[2017-09-02 18:48] [ALPM] upgraded linux-zen-headers (4.12.9-1 -> 4.12.10-1)
[2017-09-06 00:42] [ALPM] upgraded linux-zen (4.12.10-1 -> 4.12.10-2)
[2017-09-06 00:42] [ALPM] upgraded linux-zen-headers (4.12.10-1 -> 4.12.10-2)
[2017-09-15 03:35] [ALPM] upgraded linux-zen-headers (4.12.10-2 -> 4.13.2-1)
[2017-09-15 03:35] [ALPM] upgraded linux-zen (4.12.10-2 -> 4.13.2-1)
[2017-09-23 12:18] [ALPM] upgraded linux-zen (4.13.2-1 -> 4.13.3-1)
[2017-09-23 12:18] [ALPM] upgraded linux-zen-headers (4.13.2-1 -> 4.13.3-1)
Comment by Stefan (steinwanderer) - Wednesday, 27 September 2017, 16:16 GMT
I've reenable the gnome animations, but can't really point my finger on what is wrong. But something is wrong for sure.
I feel a "generally slowness" in everything that has "transitions" or "alpha blending" or such stuff in it. Animations are not really choppy, but kind of slower as normal and also CPU/GPU heavy, as my fan starts very often. Animated Webcontent is also slow sometimes, some animated Ads (from Google) are flickering bad.

I've tested a few older kernel (zen and lts), with intel (sna,xua) and the framebuffer driver, but with no difference. Maybe it is not kernel? However, it must have been introduced after 1. September, that I can tell for sure!

To sum up, what I have tested/proved, so far:

1) Generally slowness in gnome with or without animations enabled.
2) Generally slowness and CPU/GPU Hog with a lot of webcontent.
3) When the error "intel(0): Failed to submit rendering commands" appears:
Gnome UI gets really choppy.
Epiphany is not able to render a (any) page.
Firefox UI choppy and flickering, not able to render a (any) page.
Reboot required.

And if it is important, I use Xorg not Wayland.
Comment by Martin Mísař (misarm) - Monday, 02 October 2017, 15:41 GMT
I have similar problems on my notebook,
after yesterday upgrade to newest kernel/drivers...
Today during play movie via Xine on external monitor, and running jstest /dev/input/js2 (intensive console output Terminal on xfce4) on my notebook's X200T display

xine crashed (unfortunatelly I have no output)
and can not start it again (with the default ouput driver) - during start it outputs this:

Toto je xine (GUI pro X11) - svobodný videopřehrávač v0.99.9-[DEBUG].
(c) 2000-2014 The xine Team.
videowin: display is using xinerama with 2 screens
videowin: going to assume we are using the first screen.
videowin: size of the first screen is 1280x800.
videowin: Xinerama fullscreen parameters: X_origin=0 Y_origin=0 Width=3200 Height=1080
pixel_aspect: 1.000000
libva info: VA-API version 0.40.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_40
libva info: va_openDriver() returns 0
vo_vdpau: Failed to check vdpau get/put bits native capability : VDP_STATUS_NO_IMPLEMENTATION
xv_set_property: property=1, value=0
do_connect: could not connect to socket
connect: Adresář nebo soubor neexistuje
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 151 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 2905
Current serial number in output stream: 2906


uname -a
Linux jitkaNB 4.13.3-1-ARCH #1 SMP PREEMPT Thu Sep 21 20:33:16 CEST 2017 x86_64 GNU/Linux


last snippet from /var/log/Xorg.0.log
[ 19.287] (II) intel(0): EDID vendor "LEN", prod id 16401
[ 19.287] (II) intel(0): Printing DDC gathered Modelines:
[ 19.287] (II) intel(0): Modeline "1280x800"x0.0 71.04 1280 1332 1396 1451 800 803 806 816 -hsync -vsync (49.0 kHz eP)
[ 27.226] (II) intel(0): resizing framebuffer to 3200x1080
[ 27.293] (II) intel(0): switch to mode 1920x1080@60.0 on HDMI2 using pipe 1, position (1280, 0), rotation normal, reflection none
[ 4317.879] (II) config/udev: Adding input device Chinese-made Xbox Controller (/dev/input/js2)
[ 4317.879] (II) No input driver specified, ignoring this device.
[ 4317.879] (II) This device may have been added with another device file.
[ 4317.916] (II) config/udev: Adding input device Chinese-made Xbox Controller (/dev/input/event21)
[ 4317.917] (II) No input driver specified, ignoring this device.
[ 4317.917] (II) This device may have been added with another device file.
[ 4500.960] (EE) intel(0): Failed to submit rendering commands (Invalid argument), disabling acceleration.

in dmesg/journalctl output is nothing unusual
reboot solves this
Comment by Stefan (steinwanderer) - Wednesday, 04 October 2017, 14:55 GMT
Despite the fact, that i used "intel_iommu=on" without any problems on my hardware for ages now, setting "intel_iommu=off" or "intel_iommu=igfx_off" avoids the "Failed to submit rendering commands" error for me. However overall graphics performance was once and could be better, still.
Comment by Stefan (steinwanderer) - Wednesday, 04 October 2017, 23:46 GMT
Sorry, that was a little early. It just wrecked my Desktop again. Happend this time with mpv while watching a movie. mpv got stuck between two frames and that was the end of it. So, "intel_iommu=off|igfx_off" doesn't help.
Comment by Urs Fleisch (ufleisch) - Friday, 29 December 2017, 19:30 GMT
I am not sure if I have the same problem, but there are some similarities.

Hardware: HP Compaq DC7800 with Intel GMA 3100 graphics (Mesa DRI Intel(R) Q35, OpenGL 2.1, DRI driver: i915)

I have the latest Arch Linux packages as of 2017-12-29

pacman -Q linux linux-lts mesa xorg-server xf86-video-intel
linux 4.14.9-1
linux-lts 4.9.72-1
mesa 17.3.1-2
xorg-server 1.19.6-2
xf86-video-intel 1:2.99.917+802+gaf6d8e9e-1

When I use kernel 4.14 (maybe it was already happening with 4.13, but I had to switch to linux-lts for some time because of the iommu hanger bug), and start Chromium after visiting some web sites, things start to get unusable. The address bar of Chromium is not drawn anymore, just when I hover over it, but no longer usable. Closing Chromium is not possible. The Plasma Panel vanishes, it is not possible to use the start menu (just starting applications using Alt-F2). This happens with both KDE Plasma and LxQt. The easiest way to reproduce the problem is opening Google Maps in Chromium. I have to log out and start a new session (restarting the X server) to fix the problem. When the problem happens, the following line is added to /var/log/Xorg.0.log

(EE) intel(0): Failed to submit rendering commands (Invalid argument), disabling acceleration.

I tried to get some more information using the "drm.debug=0x1e log_buf_len=1M" kernel parameters, but there does not seem to be anything special reported. glxgears still displays a frame rate of 60 FPS, so it does not seem to be the same problem as the degradation to 40 FPS reported by others (https://forum.manjaro.org/t/poor-opengl-performance-on-linux-4-14/35453/75, https://bbs.archlinux.org/viewtopic.php?pid=1753036#p1753036). When I open "chrome://gpu" in Chromium, the following differences exist when hitting the problem compared with the sane state:

GPU process crash count 1
Log Messages
GpuProcessHostUIShim: The GPU process exited with code 256.

The problem does not happen with linux-lts, so I switched to that kernel again.
Comment by Urs Fleisch (ufleisch) - Tuesday, 02 January 2018, 08:12 GMT
Still happens with linux 4.14.10-1

After Google Maps in Chromium:

chrome://gpu

Log Messages
GpuProcessHostUIShim: The GPU process exited with code 256.
[1248:1248:0102/090622.369686:ERROR:gles2_cmd_decoder.cc(17977)] : [.DisplayCompositor-0x19b4b9052200]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[1248:1248:0102/090622.378490:ERROR:gles2_cmd_decoder.cc(9881)] : [.DisplayCompositor-0x19b4b9052200]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[1248:1248:0102/090622.378900:ERROR:gles2_cmd_decoder.cc(17977)] : [.DisplayCompositor-0x19b4b9052200]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[1248:1248:0102/090622.385597:ERROR:gles2_cmd_decoder.cc(9881)] : [.DisplayCompositor-0x19b4b9052200]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[1248:1248:0102/090622.387051:ERROR:gles2_cmd_decoder.cc(17977)] : [.DisplayCompositor-0x19b4b9052200]GL ERROR :GL_INVALID_OPERATION : glCreateAndConsumeTextureCHROMIUM: invalid mailbox name
[1248:1248:0102/090622.387453:ERROR:gles2_cmd_decoder.cc(9881)] : [.DisplayCompositor-0x19b4b9052200]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
(..)
[1248:1248:0102/090635.231307:ERROR:gles2_cmd_decoder.cc(9881)] : [.DisplayCompositor-0x19b4b9052200]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[1248:1248:0102/090635.237591:ERROR:logger.cc(47)] : Too many GL errors, not reporting any more for this context. use --disable-gl-error-limit to see all errors.

Loading...