r/LogitechG • u/BaronVonPietri • Oct 29 '26
GHUB kernel memory leak bug report
Hi everyone, since i cant find a way to send more feedback to the devs than 512 characters in the app i thought i would post it here.
sorry for the ai generated bug report but since this was diving into esoteric levels of kernel debugging it was much easier to have it write it up.
This all started when i was working yesterday and my dev vm froze on disk write. Eventually i noticed my host desktop C drive was full and started falling down a hole of trying to find out why so much kernel memory was filling it with swap. Eventually started having ai start doing kernel debugging. Turns out ghub leaks audio event listeners. Here is the report.
G HUB: lghub_agent leaks audio-session listeners → unbounded ETW kernel pool growth
Summary
lghub_agent.exe accumulates audio-session notification listeners at about 30 per minute (one every ~2 s) and never releases them. Every time any application's audio session goes from silent to playing, the Windows Audio service (Audiosrv) sends one ETW notification per accumulated listener to lghub_agent. Each notification costs kernel pool (Etwr nonpaged, ~80 B, plus EtwD paged, ~530 B).
The current build drains the notifications quickly, so the cost is CPU and kernel churn that grows with uptime. On this machine an earlier session stopped draining them. After 14 days that left ~48 GB of kernel pool, exhausted system commit, and crashed Audiosrv. The rest of the system destabilized with it.
Environment
- Windows 11 Pro, build 26100 / 26200, 64 GB RAM
- G HUB
lghub_agent2026.7.992920 (updated 2026-10-28; the crash happened on the prior build) - Headset: Astro A50 (endpoint "A50 Game"), USB base station
- Other audio clients: Chrome, Discord
Reproduction
- Start G HUB and note the
lghub_agentstart time. - Monitor pool tag
Etwrallocations (poolmon, orNtQuerySystemInformation(SystemPoolTagInformation)). - Make any app go from silence to playing audio (unpause a video, receive a Discord notification sound).
- Each transition allocates a burst of
Etwr/EtwDentries. The burst size is ≈ 30 × minutes of lghub_agent uptime.
Muting or unmuting a tab while another stream from the same process keeps playing does not trigger a burst. Only session starts do.
Measurements (2026-10-29)
| lghub_agent state | Etwr allocations per sound start |
|---|---|
| up ~1,047 min | 31,205 |
| up ~1,091 min | 32,645 |
| up ~1,100 min | 32,907 (bursts of 2× and 4× this when several sessions start together) |
| G HUB quit | none; background < 1/s |
| G HUB restarted, up ~4 min | 154, 127 |
Peak instantaneous queue: 182,791 outstanding Etwr entries during testing.
Crash-time evidence (kernel dump, 2026-10-28, 14 d 13 h uptime)
!poolused:Etwr84.1M allocs / 6.7 GB nonpaged;EtwD84.1M allocs / 44.5 GB paged.- A raw scan of the dump found 89,071,273
_ETW_QUEUE_ENTRYallocations, all pointing at oneEtwRegistrationowned bylghub_agent.exe(PID 17248). The registration had flagsDbgUserRegistration | DbgClosedand HandleCount 1. - Notification headers:
NotificationType = 6(EtwNotificationTypeAudio), GUID60d201f4-741e-4792-b5b3-673fc6c25b3b, source = the Audiosrv svchost, target = lghub_agent. - Payloads are audio-session events for Chrome (91%) and Discord (8.5%) on the A50 Game endpoint.
Event log, 2026-10-28:
- 15:43:00, Resource-Exhaustion-Detector 2004 (low virtual memory). Top consumer:
lghub_agent.exe (17248). - 15:43:05, Audiosrv crashed (0xC0000409, ucrtbase.dll). It restarted at 15:44.
- 15:43:00, Resource-Exhaustion-Detector 2004 (low virtual memory). Top consumer:
Impact
Audio dropouts and endpoint failures, browser video-player hangs, and finally system-wide commit exhaustion: audio failure, WSL/Hyper-V hangs, a blank Task Manager.
Available on request
The full kernel dump (65 GB), per-10-second and per-burst CSV logs, and the scan tools.
1
u/TheSuperSonic16 11h ago
I have been having a very similar if not same issue with rapid memory growth from ETWR when someone talks on Discord, generally as fast as 1GB per second. Closing G HUB freed all the memory, but when I restarted G HUB it started an update, and there is this in the release notes:
> Fixed a memory leak in the agent that could cause fast memory consumption on start.
There is a chance this issue has been fixed, althrough not sure what they mean by "start". I cannot tell right now if the issue is resolved as it generally gets really bad after a couple of days of uptime.
-2
u/LogitechG_Andy Support Community Manager Oct 29 '26
Best bet would be to contact support and let them know you're seeing this issue - they can collect the logs from you and pass it along to our team that way.