[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread Daniel van Vugt
I'm not sure what changed to make 19.10 heavier than 19.04, but I can
explain what you are seeing.

What you are seeing is an OpenGL-based application (Firefox or Chromium)
that is being forced to update its entire window constantly. Since it is
OpenGL-based, gnome-shell does not have the opportunity to identify just
the small area of the screen that is changing, but has to update the
entire application window at full frame rate. To do that in software
without a GPU is expected to use a lot of CPU and multiple threads,
sorry.


** Summary changed:

- gnome-shell 100% CPU usage on all cores when animated gif is displayed
+ gnome-shell (via Mesa/LLVMpipe in a virtual machine) uses all CPU cores just 
to update the screen

** Changed in: gnome-shell (Ubuntu)
   Importance: Undecided => Low

** Changed in: gnome-shell (Ubuntu)
   Status: Incomplete => Triaged

** Also affects: mesa (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: mutter (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: mesa (Ubuntu)
   Importance: Undecided => Low

** Changed in: mesa (Ubuntu)
   Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell (via Mesa/LLVMpipe in a virtual machine) uses all CPU
  cores just to update the screen

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread TomaszChmielewski
Yes, it is a virtual machine (and hence 3 CPUs!) - though it didn't show
these symptoms with Ubuntu 19.04 (noticed by laptop fans going on as
soon as I visit a page with animated gifs, i.e. showing build status and
such).

There are no gnome extensions installed.

** Attachment added: "dmesg.txt"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+attachment/5301944/+files/dmesg.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread TomaszChmielewski
** Attachment added: "lspci.txt"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+attachment/5301946/+files/lspci.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread TomaszChmielewski
** Attachment added: "glxinfo.txt"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+attachment/5301945/+files/glxinfo.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread Daniel van Vugt
4. Run: dmesg > dmesg.txt
   and attach the file 'dmesg.txt'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread Daniel van Vugt
3. Run: dmesg > dmesg.txt
   and attach the file 'dmesg.txt'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-11-01 Thread Daniel van Vugt
Thanks. The above attachment suggests to me that this is a virtual
machine or something unusual, because:

[   34.403367] tomasz gnome-shell[1410]: Failed to initialize accelerated 
iGPU/dGPU framebuffer sharing: Do not want to use software renderer (llvmpipe 
(LLVM 9.0, 256 bits)), falling back to CPU copy path
[   34.918603] tomasz gnome-shell[1410]: glamor: 'wl_drm' not supported
[   34.918603] tomasz gnome-shell[1410]: Missing Wayland requirements for 
glamor GBM backend
[   34.918603] tomasz gnome-shell[1410]: Failed to initialize glamor, falling 
back to sw

So that's where all the CPU is going... It's Mesa trying to use all the
CPU cores to emulate a GPU in software. Probably.

Next, please:

1. Run: lspci -k > lspcik.txt
   and attach the file 'lspcik.txt'

2. Run: glxinfo > glxinfo.txt
   and attach the file 'glxinfo.txt'

3. Tell us if you have any gnome-shell extensions installed.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-10-31 Thread TomaszChmielewski
apport information

** Tags added: apport-collected

** Description changed:

  This started to happen with Ubuntu 19.10.
  
  When an animated gif is displayed in a browser, gnome-shell begins using
  100% CPU on all cores.
  
  To reproduce:
  
  1) open Firefox, or Chromium
  
  2) load an URL where an animated gif is displayed - you can also use
  this direct link to https://i.stack.imgur.com/h6viz.gif
  
- 3) gnome-shell will start using 100% CPU on all cores (as long as
- Firefox/Chromium window is in the foreground)
+ 3) gnome-shell will start using 100% CPU on all cores (as long as 
Firefox/Chromium window is in the foreground)
+ --- 
+ ProblemType: Bug
+ ApportVersion: 2.20.11-0ubuntu8.1
+ Architecture: amd64
+ DisplayManager: gdm3
+ DistroRelease: Ubuntu 19.10
+ GsettingsChanges:
+  
+ InstallationDate: Installed on 2019-05-12 (172 days ago)
+ InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
+ Package: gnome-shell 3.34.1-1ubuntu1
+ PackageArchitecture: amd64
+ ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
+ RelatedPackageVersions: mutter-common 3.34.1-1ubuntu1
+ Tags:  eoan
+ Uname: Linux 5.3.0-19-generic x86_64
+ UpgradeStatus: Upgraded to eoan on 2019-10-16 (15 days ago)
+ UserGroups:
+  
+ _MarkForUpload: True

** Attachment added: "Dependencies.txt"
   
https://bugs.launchpad.net/bugs/1850874/+attachment/5301936/+files/Dependencies.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-10-31 Thread Daniel van Vugt
Wow, yes. That is unusual. Multiple threads exist in gnome-shell but
they're pretty well hidden from the main code, mostly handling
asynchronous IO etc...

Next we need to see more information about the machine. Please run this
command to send it automatically:

  apport-collect 1850874


** No longer affects: mutter (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-10-31 Thread TomaszChmielewski
** Attachment added: "gnome-shell threads"
   
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+attachment/5301916/+files/Screenshot_20191101_115659.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-10-31 Thread TomaszChmielewski
In "ps -eLf":

tomasz1410  1265  1410  1   10 Oct31 ?00:33:23 /usr/bin/gnome-shell
tomasz1410  1265  1421  0   10 Oct31 ?00:00:00 /usr/bin/gnome-shell
tomasz1410  1265  1423  0   10 Oct31 ?00:00:02 /usr/bin/gnome-shell
tomasz1410  1265  1424  0   10 Oct31 ?00:00:00 /usr/bin/gnome-shell
tomasz1410  1265  1425  7   10 Oct31 ?02:33:40 /usr/bin/gnome-shell
tomasz1410  1265  1426  7   10 Oct31 ?02:32:22 /usr/bin/gnome-shell
tomasz1410  1265  1427  7   10 Oct31 ?02:32:50 /usr/bin/gnome-shell
tomasz1410  1265  1434  0   10 Oct31 ?00:00:02 /usr/bin/gnome-shell
tomasz1410  1265  1435  0   10 Oct31 ?00:00:02 /usr/bin/gnome-shell
tomasz1410  1265  1436  0   10 Oct31 ?00:00:02 /usr/bin/gnome-shell


So it's definitely using multiple threads.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1850874] Re: gnome-shell 100% CPU usage on all cores when animated gif is displayed

2019-10-31 Thread Daniel van Vugt
Hmm, gnome-shell is mostly single threaded so it shouldn't be able to
use "all cores". It should saturate only one core at most.

Please provide a screenshot of 'top' running in a Terminal window,
showing that gnome-shell (or anything) is using the CPU.

** Tags added: eoan performance

** Also affects: mutter (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: gnome-shell (Ubuntu)
   Status: New => Incomplete

** Changed in: mutter (Ubuntu)
   Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1850874

Title:
  gnome-shell 100% CPU usage on all cores when animated gif is displayed

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/1850874/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs