Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

CPU consumption #268

Open
JimReprogle opened this issue Dec 1, 2020 · 9 comments
Open

CPU consumption #268

JimReprogle opened this issue Dec 1, 2020 · 9 comments

Comments

@JimReprogle
Copy link

Opening current release of scap-workbench on Mac OS 11.0.1 results in 100% cpu consumption and an unresponsive app.

@matejak
Copy link
Contributor

matejak commented Dec 8, 2020

That's a touch nut for those not fortunate enough to have a MacOS machine to reproduce this, such as us, scap-workbench developers. Unless any owner of such system helps us to nail this one down, we can't do anything about it.

@JimReprogle
Copy link
Author

How can I help? What information can I provide?

@matejak
Copy link
Contributor

matejak commented Dec 10, 2020

Try to execute the command in a console, and see whether there is any output that could point towards the cause.
Secondly, Workbench is supposed to load SCAP content on startup, so how does the unresponsive app look like? Does it have some content loaded, or are the fields empty?

@JimReprogle
Copy link
Author

Ok, when I get some time later today, I'll take a look and see. It may be that the SCAP content is taking a while to load, but I'll test and see.

@JimReprogle
Copy link
Author

So far, the app just shows an icon in the dock, with no foreground window. It's used about 12GB of memory according to Activity Monitor, and from the command line, only shows this:

09:19:15 | info | SCAP Workbench 1.2.1, compiled with Qt 5.13.2, using OpenSCAP 1.4.0

I'm going to let it run some more to see if it ever comes up, or if it gets killed by the OOM killer or something.

@JimReprogle
Copy link
Author

18GB and counting...

@JimReprogle
Copy link
Author

A list of the open files and ports (from Activity Monitor)

cwd
/Applications/scap-workbench.app/Contents/MacOS
txt
/Applications/scap-workbench.app/Contents/MacOS/scap-workbench
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtWidgets.framework/Versions/5/QtWidgets
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtXmlPatterns.framework/Versions/5/QtXmlPatterns
txt
/Applications/scap-workbench.app/Contents/Frameworks/libopenscap.25.dylib
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtGui.framework/Versions/5/QtGui
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtNetwork.framework/Versions/5/QtNetwork
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtCore.framework/Versions/5/QtCore
txt
/Applications/scap-workbench.app/Contents/Frameworks/libpcre.1.dylib
txt
/Applications/scap-workbench.app/Contents/Frameworks/libgcrypt.20.dylib
txt
/Applications/scap-workbench.app/Contents/Frameworks/libgpg-error.0.dylib
txt
/Library/Preferences/Logging/.plist-cache.Zyob55tB
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtDBus.framework/Versions/5/QtDBus
txt
/Applications/scap-workbench.app/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/SystemAppearance.car
txt
/usr/lib/libobjc-trampolines.dylib
txt
/System/Library/Caches/com.apple.IntlDataCache.le.kbdx
txt
/private/var/db/analyticsd/events.whitelist
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/FauxVibrantDark.car
txt
/usr/share/icu/icudt66l.dat
txt
/Applications/scap-workbench.app/Contents/PlugIns/platforms/libqcocoa.dylib
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Aqua.car
txt
/System/Library/Keyboard Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
txt
/private/var/db/timezone/tz/2020d.1.0/icutz/icutz44l.dat
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkAqua.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantDark.car
txt
/System/Library/Fonts/SFNS.ttf
txt
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/Extras2.rsrc
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLight.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Graphite.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/FauxVibrantLight.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/FauxVibrantLightGraphite.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLightGraphite.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/AquaAX.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/GraphiteAX.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLightAX.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/VibrantLightGraphiteAX.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/DarkGraphite.car
txt
/System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/FauxVibrantDarkGraphite.car
txt
/System/Library/Fonts/SFNSMono.ttf
txt
/Applications/scap-workbench.app/Contents/PlugIns/styles/libqmacstyle.dylib
txt
/System/Library/Fonts/Apple Symbols.ttf
txt
/System/Library/Fonts/ArabicUIText.ttc
txt
/System/Library/Fonts/Supplemental/Khmer Sangam MN.ttf
txt
/System/Library/Fonts/Supplemental/Lao Sangam MN.ttf
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqwbmp.dylib
txt
/usr/lib/dyld
txt
/System/Library/Fonts/Helvetica.ttc
txt
/System/Library/Fonts/PingFang.ttc
txt
/System/Library/Fonts/\xe3\x83\x92\xe3\x83\xa9\xe3\x82\xad\xe3\x82\x99\xe3\x83\x8e\xe8\xa7\x92\xe3\x82\xb3\xe3\x82\x99\xe3\x82\xb7\xe3\x83\x83\xe3\x82\xaf W3.ttc
txt
/System/Library/Fonts/AppleSDGothicNeo.ttc
txt
/System/Library/Fonts/NotoNastaliq.ttc
txt
/System/Library/Fonts/NotoSansMyanmar.ttc
txt
/System/Library/Fonts/ArialHB.ttc
txt
/System/Library/Fonts/Thonburi.ttc
txt
/System/Library/Fonts/Kohinoor.ttc
txt
/System/Library/Fonts/Supplemental/Kokonor.ttf
txt
/System/Library/Fonts/KohinoorBangla.ttc
txt
/System/Library/Fonts/KohinoorGujarati.ttc
txt
/System/Library/Fonts/MuktaMahee.ttc
txt
/System/Library/Fonts/NotoSansKannada.ttc
txt
/System/Library/Fonts/Supplemental/Malayalam Sangam MN.ttc
txt
/System/Library/Fonts/NotoSansOriya.ttc
txt
/System/Library/Fonts/Supplemental/Sinhala Sangam MN.ttc
txt
/System/Library/Fonts/LucidaGrande.ttc
txt
/System/Library/Fonts/Supplemental/Tamil Sangam MN.ttc
txt
/System/Library/Fonts/KohinoorTelugu.ttc
txt
/System/Library/Fonts/NotoSansArmenian.ttc
txt
/System/Library/Fonts/Supplemental/EuphemiaCAS.ttc
txt
/System/Library/Fonts/Menlo.ttc
txt
/System/Library/Fonts/Supplemental/STIXGeneral.otf
txt
/System/Library/Fonts/Supplemental/Galvji.ttc
txt
/System/Library/Fonts/Supplemental/Kefa.ttc
txt
/System/Library/Fonts/Supplemental/NotoSansSyriac-Regular.ttf
txt
/System/Library/Fonts/Apple Color Emoji.ttc
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqgif.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqicns.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqico.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqjpeg.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqmacheif.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqmacjp2.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqtga.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqtiff.dylib
txt
/Applications/scap-workbench.app/Contents/PlugIns/imageformats/libqwebp.dylib
txt
/private/var/folders/cq/2l_6vp4d4573hh_nqdckzhxm0000gn/C/com.apple.iconservices/store.index
txt
/Library/Caches/com.apple.iconservices.store/3D535103-74E8-3D9C-928D-E279B4956F6F.isdata
0
/dev/ttys000
1
/dev/ttys000
2
/dev/ttys000

@JimReprogle
Copy link
Author

The app showed 0 bytes written to disk, and only 44KB read from disk. I finally just killed it, since it didn't seem to be reading SCAP content from disk.

@pllewis72
Copy link

I'm pretty sure this is a QT5 issue. There are numerous bugs out there with big sur and other QT apps.

The app probably just need to be rebuilt with an update to QT for the big sur patching. I'm not skilled enough myself to make that happen, especially on a mac.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants