v0.73.1: opening DJ mode no longer crashes after enough openings
Each opening started a new audio thread, and Qt's PipeWire backend leaks
~24 file descriptors per thread that ends. At the desktop's 1024-fd limit
QAudioSink.start() failed ("Too many open files") and segfaulted in
pw_stream_connect. The thread now lives as long as the output: stop()
only silences the pump, shutdown() (window close / aboutToQuit) ends it.
This commit is contained in:
@@ -33,6 +33,7 @@ def _no_dj_sound(monkeypatch):
|
||||
from lintunes.dj import output
|
||||
monkeypatch.setattr(output.DjOutput, "start", lambda self: None)
|
||||
monkeypatch.setattr(output.DjOutput, "stop", lambda self: None)
|
||||
monkeypatch.setattr(output.DjOutput, "shutdown", lambda self: None)
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
|
||||
Reference in New Issue
Block a user