Skip to content
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

USB Hotplug Support Can Block UI Thread #1827

Closed
DSheirer opened this issue Feb 8, 2024 · 0 comments · Fixed by #1828
Closed

USB Hotplug Support Can Block UI Thread #1827

DSheirer opened this issue Feb 8, 2024 · 0 comments · Fixed by #1828
Assignees
Milestone

Comments

@DSheirer
Copy link
Owner

DSheirer commented Feb 8, 2024

sdrtrunk Version
master

Describe the bug

A tuner error that causes the tuner to be stopped and removed can block the Swing User Interface (UI) thread on trying to remove the tuner.

DiscoveredTunerModel:246 invokes EventQueuue.invokeAndWait() while it already holds a lock and the launched runnable, running on the UI thread, attempts to acquire the same lock, causing a deadlock.

The sdrtrunk application will either freeze or turn white as an indicator that the UI thread is deadlocked.

Expected behavior

The code should be changed to spin off the UI runnable and not wait for it to complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant