Denoise restart fallback hands LiveKit the raw mic as processedTrack, which later gets stopped
#2
Closed
opened 2026-09-12 02:12:57 -04:00 by jared
·
1 comment
No Branch/Tag Specified
lotus
chore/dev-tool-security
feat/expected-devices
lotus-upstream-v0.28.0
feat/call-summary-details
feat/soundboard-mic-mix
feat/mobile-self-tile
feat/screenshare-audio-state
feat/decorations-origin
docs/lotus-call-error
lotus-stall-retry
docs/lotus-protocol
lotus-soundboard-not-permitted
lotus-mic-sampler-churn
lotus-call-error
fix/audio-output-list
lotus-notify-none
lotus-screenshare-prompt
lotus-call-origin
v0.28.0-lotus.4
v0.28.0-lotus.3
v0.28.0-lotus.2
v0.28.0-lotus.1
v0.25.0-lotus.29
v0.25.0-lotus.28
v0.25.0-lotus.27
v0.25.0-lotus.26
v0.25.0-lotus.25
v0.25.0-lotus.24
v0.25.0-lotus.23
v0.25.0-lotus.22
v0.25.0-lotus.21
v0.25.0-lotus.20
v0.25.0-lotus.19
v0.25.0-lotus.18
v0.25.0-lotus.17
v0.25.0-lotus.16
v0.25.0-lotus.15
v0.25.0-lotus.14
v0.25.0-lotus.13
v0.25.0-lotus.12
v0.25.0-lotus.11
v0.25.0-lotus.10
v0.25.0-lotus.9
v0.25.0-lotus.8
v0.25.0-lotus.7
v0.25.0-lotus.6
v0.25.0-lotus.5
v0.25.0-lotus.4
v0.25.0-lotus.3
v0.25.0-lotus.2
v0.25.0-lotus.1
v0.20.1
Labels
Clear labels
a11y
area: audio-pipeline
area: build-publish
area: deafen
area: decorations
area: denoise
area: livekit
area: mobile-ui
area: soundboard-inject
area: upstream-sync
area: widget-actions
bug
dependencies
docs
enhancement
performance
priority: critical
priority: high
priority: low
priority: medium
research
security
tech-debt
ux
Accessibility
Fork area: audio-pipeline
Fork area: build-publish
Fork area: deafen
Fork area: decorations
Fork area: denoise
Fork area: livekit
Fork area: mobile-ui
Fork area: soundboard-inject
Fork area: upstream-sync
Fork area: widget-actions
Something is not working
Package versions and advisories
Docs wrong or missing
New feature
Audio pipeline cost, re-render storms, leaks
Data loss, security hole, or crash on a main path
Broken feature or serious usability problem
Minor issue or polish
Wrong behaviour in an edge case or notable degradation
Origin checks, capability leaks, media/key handling
Code health, fragile patterns
Usability or visual inconsistency
Milestone
No items
No Milestone
EC fork audit 2026-09 · High
Projects
Clear projects
No projects
Notifications
Due Date
Dependencies
No dependencies set.
Reference: LotusGuild/element-call#2
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Severity: high · Type: bug · Confidence: high
Location:
src/lotus/lotusDenoiseProcessor.ts:181-188,src/lotus/lotusDenoise.ts:151Problem
When
restart()fails it setsthis.processedTrack = opts.track— the rawMediaStreamTrackLiveKit owns as_mediaStreamTrack. LiveKit'sinternalStopProcessor()doesthis.processor.processedTrack?.stop()and thensetMediaStreamTrack(this._mediaStreamTrack, true)(livekit-client 2.18.x,livekit-client.esm.mjs:19621). Since the two are now the same object, any laterstopProcessor()— including the module's own teardown atlotusDenoise.ts:151, or a secondsetProcessor()— stops the live microphone and then re-publishes the dead track. That is the A7 "mic dead after reconnect" class of bug the processor was written to fix, reintroduced on the degrade path.How to trigger
Force one
restart()failure (e.g. device switch while the denoise assets 404, or anAudioContextsample-rate mismatch), then leave the call / re-enter, or let anything callstopProcessor(). Mic is permanently silent for the rest of the session.Suggested fix
On the fallback path set
this.processedTrack = undefined(LiveKit then falls through to_mediaStreamTrackatlivekit-client.esm.mjs:19141and19201), and never assign LiveKit-owned tracks toprocessedTrack.Filed from the September 2026 audit (branch
lotus).Fixed in
936a0835, shipped in0.25.0-lotus.1(published by CI from tag v0.25.0-lotus.1) and consumed by cinny at 9a85a487.