Skip to content

#1802 Channels Stuck in TEARDOWN & Application Crash From Out Of Memory #1829

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

DSheirer
Copy link
Owner

@DSheirer DSheirer commented Feb 9, 2024

Closes #1802 Traffic channels stuck in TEARDOWN.

Symptoms:

  • Traffic channels stuck in the Now Playing window with a TEARDOWN state
  • Application crashes from out of memory
  • Channels simply stop decoding any activity as each thread becomes deadlocked.

Resolves:

  1. Tuner channel source sample processing runnables were being interruptibly shutdown, preventing the channel from clearing any owned locks (ie DMRTrafficChannelManager) causing thread deadlock and eventually causing out of memory situation or tying up all threads in the thread pool to the point that the application stopped processing any data.

  2. DMR Traffic Channel Manager was erroneously processing non-owned traffic channel events.

1. Tuner channel processing runnables were being interruptibly shutdown, preventing the channel from clearing any owned locks (ie DMRTrafficChannelManager) causing thread deadlock and eventually causing out of memory situation or tying up all threads in the thread pool to the point that the application stopped processing any data.

2. DMR Traffic Channel Manager was erroneously processing non-owned traffic channel events.
@DSheirer DSheirer self-assigned this Feb 9, 2024
@DSheirer DSheirer added this to the Version 0.6.1 milestone Feb 9, 2024
@DSheirer DSheirer merged commit 6b5a1fb into master Feb 9, 2024
@DSheirer DSheirer deleted the 1802-teardown-thread-deadlock branch February 9, 2024 11:05
@DSheirer DSheirer mentioned this pull request Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dozens of channels stuck in TEARDOWN state, and continue decoding data
1 participant