Qt6: High CPU load after opening large files
Summary
After Wireshark opened a large trace (e.g., 4 million frames) for some time (seems like a few minutes) one CPU core is stuck at 100%.
I am not sure that this is intended or an issue.
Sample capture file
Cannot share due to NDAs. But it was a large pcapng trace with 4.1 million packets mainly Ethernet.
Steps to reproduce
Start Wireshark. Open Trace. Look at CPU load.
It also happens when you reload the trace.
What is the current bug behavior?
What is the expected correct behavior?
The CPU load should not be that high for so long after loading the trace!?
Build information
Version 4.2.0 (v4.2.0-0-g54eedfc63953).
Compiled (64-bit) using Clang 14.0.3 (clang-1403.0.22.14.1), with GLib 2.68.4,
with Qt 6.2.4, with libpcap, without POSIX capabilities, with zlib 1.2.11, with
PCRE2, with Lua 5.2.4, with GnuTLS 3.7.8 and PKCS #11 support, with Gcrypt
1.10.2, with Kerberos (MIT), with MaxMind, with nghttp2 1.56.0, with nghttp3
0.15.0, with brotli, with LZ4, with Zstandard, with Snappy, with libxml2 2.11.5,
with libsmi 0.4.8, with QtMultimedia, with automatic updates using Sparkle, with
Minizip, with binary plugins.
Running on macOS 14.0, build 23A344 (Darwin 23.0.0), with Apple M1 Max, with
32768 MB of physical memory, with GLib 2.68.4, with Qt 6.2.4, with libpcap
1.10.1, with zlib 1.2.12, with PCRE2 10.39 2021-10-29, with c-ares 1.19.1, with
GnuTLS 3.7.8, with Gcrypt 1.10.2, with nghttp2 1.56.0, with nghttp3 0.15.0, with
brotli 1.0.9, with LZ4 1.9.4, with Zstandard 1.4.5, with libsmi 0.4.8, with dark
display mode, with HiDPI, with QPA plugin "cocoa", with LC_TYPE=C, binary
plugins supported.
But also Wireshark 4.2 on Windows (64bit):
Version 4.2.0 (v4.2.0-0-g54eedfc63953).
Compiled (64-bit) using Microsoft Visual Studio 2022 (VC++ 14.37, build 32822),
with GLib 2.78.0, with Qt 6.5.3, with libpcap, with zlib 1.3.0, with PCRE2, with
Lua 5.2.4 (with UfW patches), with GnuTLS 3.7.9 and PKCS #11 support, with
Gcrypt 1.10.2-unknown, with Kerberos (MIT), with MaxMind, with nghttp2 1.57.0,
with nghttp3 1.0.0, with brotli, with LZ4, with Zstandard, with Snappy, with
libxml2 2.11.5, with libsmi 0.5.0, with QtMultimedia, with automatic updates
using WinSparkle 0.8.0, with AirPcap, with Minizip, with binary plugins.
Running on 64-bit Windows 10 (21H2), build 19044, with Intel(R) Core(TM)
i5-10310U CPU @ 1.70GHz (with SSE4.2), with 16157 MB of physical memory, with
GLib 2.78.0, with Qt 6.5.3, with Npcap version 1.71, based on libpcap version
1.10.2-PRE-GIT, with PCRE2 10.42 2022-12-11, with c-ares 1.19.0, with GnuTLS
3.7.9, with Gcrypt 1.10.2-unknown, with nghttp2 1.57.0, with nghttp3 1.0.0, with
brotli 1.0.9, with LZ4 1.9.3, with Zstandard 1.5.2, without AirPcap, with light
display mode, without HiDPI, with QPA plugin "windows", with
LC_TYPE=Swedish_Sweden.utf8, binary plugins supported.