r/LogitechG • • 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_agent 2026.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

  1. Start G HUB and note the lghub_agent start time.
  2. Monitor pool tag Etwr allocations (poolmon, or NtQuerySystemInformation(SystemPoolTagInformation)).
  3. Make any app go from silence to playing audio (unpause a video, receive a Discord notification sound).
  4. Each transition allocates a burst of Etwr/EtwD entries. 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 stateEtwr allocations per sound start
up ~1,047 min31,205
up ~1,091 min32,645
up ~1,100 min32,907 (bursts of 2× and 4× this when several sessions start together)
G HUB quitnone; background < 1/s
G HUB restarted, up ~4 min154, 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: Etwr 84.1M allocs / 6.7 GB nonpaged; EtwD 84.1M allocs / 44.5 GB paged.
  • A raw scan of the dump found 89,071,273 _ETW_QUEUE_ENTRY allocations, all pointing at one EtwRegistration owned by lghub_agent.exe (PID 17248). The registration had flags DbgUserRegistration | DbgClosed and HandleCount 1.
  • Notification headers: NotificationType = 6 (EtwNotificationTypeAudio), GUID 60d201f4-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.

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.

4 Upvotes

4 comments sorted by

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.

3

u/TheLimpLungs Oct 30 '26

No offense but you're literally replying. Why can't you collect them here

1

u/Logi_Praveen Oct 30 '26

u/TheLimpLungs u/BaronVonPietri Our team has identified a similar issue, and a fix should be part of the upcoming G HUB release. To help us verify if you are experiencing this exact problem, could you please send your logs to communitymanagement@logitech.com?

Steps to collect G HUB logs:

1.  Open the G HUB app.
2.  Navigate to the Settings page.
3.  Click Analytics.
4.  Press and hold Shift + Enter, then click "Analytics and Data Usage".
5.  Click "Start Logging".
6.  Restart G HUB.
7.  Attempt to reproduce the issue.
8.  Repeat Steps 6 and 7 a couple of times, then click "Stop Logging". (The collected logs will be saved to your desktop.)
9.  Locate the log file on your desktop and send it over.