Manuel-Kehl / elementaryPlus

This theme is an addition to elementary OS's default icon theme. It contains icons for several third party applications that resemble elementary OS's style.
GNU General Public License v3.0
355 stars 38 forks source link

High CPU usage during snippet rendering #421

Closed tanev closed 7 years ago

tanev commented 7 years ago

Not sure if this was reported, couldn't find similar issue, apologies if it is a known issue.

Tried sending a large output and as usual slack alerted that the size is too big and suggested to convert it to snippet. The snippet was converted and sent successfully.

The issue is apparent once the snippet have to be expanded (207 lines). From this point on everything becomes very laggy (a full CPU core is saturated) until either another tab is selected or the snippet is edited and reduced (deleted). Editing back the snippet and adding the 200+ lines are immediately getting back to saturated CPU and rendering speed to a crawl. Folding back the snippet does not help as well.

Starting with --debug does not reveal anything suspicious.

Steps to reproduce:

  1. create large snippet (~ 200 lines triggered the above issue)
  2. send to someone
  3. unfold the snippet

Version:

$ apt show scudcloud 
Package: scudcloud
Version: 1.34-1
Priority: optional
Section: python
Maintainer: Rael Gugelmin Cunha <rael.gc@gmail.com>
Installed-Size: 426 kB
Depends: libqtwebkit4 (>= 2.3.2), python3, python3-setuptools, python3-dbus, python3-dbus.mainloop.qt, python3-pyqt4, gir1.2-notify-0.7, xdg-utils, python3:any (>= 3.3.2-2~)
Recommends: sni-qt, fonts-lato, gir1.2-unity-5.0, libqtwebkit-qupzillaplugins, python3-hunspell, python3-notify2, python3-gi, ttf-mscorefonts-installer
Download-Size: 42.9 kB
APT-Manual-Installed: yes
APT-Sources: http://ppa.launchpad.net/rael-gc/scudcloud/ubuntu xenial/main amd64 Packages
Description: ScudCloud is a non official desktop client for Slack
 ScudCloud is a non official desktop client for Slack.
 Slack (http://slack.com) is a platform for team communication.
$ scudcloud --version
/usr/lib/python3/dist-packages/scudcloud/notifier.py:3: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
ScudCloud 1.34
Python 3.5.2
Qt 4.8.7
PyQt 4.11.4
SIP 4.17

OS:

$ cat /etc/os-release 
NAME="Linux Mint"
VERSION="18 (Sarah)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18"
VERSION_ID="18"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
UBUNTU_CODENAME=xenial

Kernel:

$ uname -r
4.4.0-43-generic
$ uname -v    
#63-Ubuntu SMP Wed Oct 12 13:48:03 UTC 2016
$ uname -m
x86_64

Some hardware info:

lscpu 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    2
Socket(s):             1
NUMA node(s):          1
Vendor ID:             AuthenticAMD
CPU family:            21
Model:                 16
Model name:            AMD A10-4655M APU with Radeon(tm) HD Graphics
Stepping:              1
CPU MHz:               1400.000
CPU max MHz:           2000.0000
CPU min MHz:           1400.0000
BogoMIPS:              3992.49
Virtualization:        AMD-V
L1d cache:             16K
L1i cache:             64K
L2 cache:              2048K
NUMA node0 CPU(s):     0-3
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
$ inxi -M
Machine:   System: ASUSTeK (portable) product: U38N v: 1.0
           Mobo: ASUSTeK model: U38N v: 1.0 Bios: American Megatrends v: U38N.211 date: 12/05/2013

If rendering is involved:

$ glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD ARUBA (DRM 2.43.0, LLVM 3.8.0)
OpenGL core profile version string: 4.1 (Core Profile) Mesa 11.2.0
OpenGL core profile shading language version string: 4.10
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.2.0
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 11.2.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:
quassy commented 7 years ago

I believe you are in the wrong place for this report. elementaryPlus is an desktop / indicator icon theme (including a configurator app) enhancing the default elementary icon theme, and while it includes graphics for Scudcloud, it does not have anything to do with the application itself. A better place for your report seems to be raelgc/scudcloud.

If the problems are in any way related to elementaryPlus (which I doubt), feel free to reopen / comment.

tanev commented 7 years ago

Hi quassy, apologies, I have no idea how that happened.

Thanks for your reply, I will open this in scudcloud.