Skip to content

Comments

Updating AudioSockets to eliminate dependency on QApplication#1434

Merged
mikedickey merged 1 commit intodevfrom
bugfix/audio-socket-deadlocks
Jun 25, 2025
Merged

Updating AudioSockets to eliminate dependency on QApplication#1434
mikedickey merged 1 commit intodevfrom
bugfix/audio-socket-deadlocks

Conversation

@mikedickey
Copy link
Collaborator

Creating a static QApplication and using QThread's EventLoop with signals and slots doesn't seem to work well in the context of plugins that can be loaded and unloaded dynamically.

In particular, I encountered some problems with Windows VST hosts where the first plugin you create works OK. But if you delete it and then create a second one, it locks up. It appears that there is some static flag getting set deep in QThread's EventLoop processing that basically just makes all threads exit.

@mikedickey mikedickey force-pushed the bugfix/audio-socket-deadlocks branch from 18f0db8 to 3660ee0 Compare June 25, 2025 03:46
Creating a static QApplication and using QThread's EventLoop with
signals and slots doesn't seem to work well in the context of
plugins that can be loaded and unloaded dynamically.

In particular, I encountered some problems with Windows VST hosts
where the first plugin you create works OK. But if you delete it
and then create a second one, it locks up. It appears that there
is some static flag getting set deep in QThread's EventLoop
processing that basically just makes all threads exit.
@mikedickey mikedickey force-pushed the bugfix/audio-socket-deadlocks branch from 3660ee0 to e3af743 Compare June 25, 2025 03:51
@mikedickey mikedickey marked this pull request as ready for review June 25, 2025 03:51
@mikedickey mikedickey merged commit fa9234c into dev Jun 25, 2025
19 checks passed
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.

1 participant