Add new comment to Closing/exiting Qtractor hangs sometimes

Permalink

I asked Grok and it says:

-- snip --
This sounds like a known (or at least reported) JACK2 shutdown/disconnection problem that gets worse with a high number of ports/connections. Qtractor (and other clients) get stuck during cleanup when exiting because they can't properly unregister their JACK ports.

Why this happens

Qtractor registers a lot of JACK ports (one pair per track/bus/channel, plus MIDI, etc.) in complex sessions.
On exit, it (and the JACK server) tries to disconnect and unregister everything.
JACK2 can deadlock or hang in this phase under heavy load (many ports + many external connections). Other clients appear frozen because the JACK server itself is blocked in the client shutdown path.
This is more common with jack2 than jack1, and especially when there are complex graphs involving plugins, sends/returns, or many external apps.

This is a classic "JACK graph teardown" fragility that shows up in bigger sessions. Reducing port count or using jack1 often resolves it immediately.
-- snip --

Maybe it can be mitigated if Qtractor disconnects all jack-connections serially before disconnecting from jack. This might make it easier for jackd to cleanup.

The content of this field is kept private and will not be shown publicly.

Markdown

  • Parses markdown and converts it to HTML.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id> <img src alt height width> <strike> <pre> <p> <br>
  • Lines and paragraphs break automatically.

Filtered HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <b> <i> <pre> <img src alt height width> <strike>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
File attachments
Unlimited number of files can be uploaded to this field.
2 MB limit.
Allowed types: jpg jpeg gif png txt doc docx xls xlsx pdf ppt pps odt ods odp zip gz bz2 xz patch diff wav ogg flac ogv mp4 qtz.