[BUG] Heavy shadertoy demos slow down the X.org server and make the system unresponsive

Steps to reproduce:

  1. Open in your web browser this URL:

Ladybug by iq

  1. ???

  2. Profit!

Linux 4.14.2
NVIDIA Drivers 384.98
GeForce GTX 1060 6GB

Can confirm on 387.34
970

What browser are you using? It may be a browser bug, not a driver.

I can reproduce with chromium 62.0.3202.89, but I have no problem with firefox 57.0.
I’ve tested on debian linux / Linux-4.13.12 / 387.34.

GPU usages goes up according to nvidia-smi. Xorg CPU usage goes up to 10%.

Google Chrome 62.0.3202.94 and Mozilla Firefox 56.

Also which part of “slows down the X.org server and makes the system unresponsive” didn’t you understand? I wasn’t talking about my browser. I can barely move the mouse pointer on the screen when this demo is running. I cannot switch to other applications, everything crawls to a halt.

Did you try firefox 57.x?

I could not reproduce the issue with firefox 57.0

Most heavy shader toys still cause huge lags in the X.org server.

GPU: GTX 1060
OS: Fedora 29
NVIDIA 415.25
Firefox 64/Chrome 71

Will this bug ever be fixed?

Another lovely demo to make your system completely unresponsive:

Happy Jumping

I’m now running Fedora 30 with kernel 5.3.4 and NVIDIA drivers 435.21.

We have file internal bug 200559065 for tracking purpose.
I tried to replicate issue internally on below setup and observed below points -

Fedora release 29 + kernel 5.2.9 + Driver 435.21 + GeForce GTX 1080

  1. GPU utilization goes to 100%
  2. Xorg consumes CPU utilization up to 100% for a minute or so once i open browser https://www.shadertoy.com/view/4tByz3 and scroll it.
  3. System becomes very slow while accessing URL, but If we stop scrolling URL, system becomes normal after some time.

Conclusion from my setup - system responds very slow during scrolling on demos but once we stop scrolling and demo is still open, it becomes normal after few minutes.

Please confirm if you have similar observation.

Thank you!

Left the demo running for three minutes in Mozilla Firefox without scrolling or doing anything.

Results:

  1. Two CPU cores 100% busy
  2. Mouse is jerky as hell
  3. The X session is slow as hell - it’s pretty much unusable

GPU: GTX 1060 6GB

Fedora 30, Linux 5.3.6, NVIDIA drivers 435.21.

I kept demo running for 10 minutes but CPU never reached to 100%.
X session becomes only slow when I keep scrolling URL for few seconds and cpu utilization also reaches 100%.
I am using below setup config -

Precision T7610 + Fedora release 29 + Kernel 5.2.9 + GeForce GTX 1080 + Driver GeForce GTX 1080

I will keep URL running and wont touch system for an hour and see if causes slowness in system and update you accordingly.

Please retest with this config as my symptoms look more severe:

Section "Device"
    Identifier  "Videocard0"
    Driver      "nvidia"
    Option      "Coolbits" "28"
    Option      "metamodes" "nvidia-auto-select +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
    Option      "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3"
    Option      "UseNvKmsCompositionPipeline" "Off"
    Option      "TripleBuffer" "On"
EndSection

I change X11 config file to match yours and observed mouse is jerky, movement of mouse is not smooth at all even w/o scrolling down the page.
However when I opened anther tab on firefox and browse anything, it works smoothly as expected.
Issue only occurs while being on the shadertoy URL

Please add this config to the bug report.

I’m sure one of the options is responsible for the issue but I’m just too lazy to test which one and also, none of them should have this effect in the first place.

I think you missed to mention/upload config in comment #14.
I checked with config which you told in comment #12 and share my results on my last comment.

Hi birdie,

I think you missed to mention/upload config in comment #14.
I checked with config which you told in comment #12 and share my results on my last comment.

@amrits

It looks like you misunderstood me - I’m sorry for the confusion.

In message 14 I referred to the config in message 12 and I asked to add it to the bug report. There are no more configs.

With config provided in message 12, below were my test results. If you confirm similar behavior at your end then we will start debugging issue else I will need to reattempt to replicate issue locally.

Fedora release 29 + kernel 5.2.9 + Driver 435.21 + GeForce GTX 1080

  1. GPU utilization goes to 100%
  2. Xorg consumes CPU utilization up to 100% for a minute or so once i open browser https://www.shadertoy.com/view/4tByz3 and scroll it.
  3. System becomes very slow while accessing URL, but If we stop scrolling URL, system becomes normal after some time.

Conclusion from my setup - system responds very slow during scrolling on demos but once we stop scrolling and demo is still open, it becomes normal after few minutes.

Hi birdie,

With config provided in message 12, below were my test results. If you confirm similar behavior at your end then we will start debugging issue else I will need to reattempt to replicate issue locally.

Fedora release 29 + kernel 5.2.9 + Driver 435.21 + GeForce GTX 1080

  1. GPU utilization goes to 100%
  2. Xorg consumes CPU utilization up to 100% for a minute or so once i open browser https://www.shadertoy.com/view/4tByz3 and scroll it.
  3. System becomes very slow while accessing URL, but If we stop scrolling URL, system becomes normal after some time.

Conclusion from my setup - system responds very slow during scrolling on demos but once we stop scrolling and demo is still open, it becomes normal after few minutes.

Hi birdie,

With config provided in message 12, below were my test results. If you confirm similar behavior at your end then we will start debugging issue else I will need to reattempt to replicate issue locally.

Fedora release 29 + kernel 5.2.9 + Driver 435.21 + GeForce GTX 1080

  1. GPU utilization goes to 100%
  2. Xorg consumes CPU utilization up to 100% for a minute or so once i open browser https://www.shadertoy.com/view/4tByz3 and scroll it.
  3. System becomes very slow while accessing URL, but If we stop scrolling URL, system becomes normal after some time.

Conclusion from my setup - system responds very slow during scrolling on demos but once we stop scrolling and demo is still open, it becomes normal after few minutes.