Skip to content

Jamulus 3.7 hangs -eventually- on Mac Big Sur #1791

Closed

Description

@RonCohen1

Describe the bug

Jamulus hangs -- pretty much every time -- after a while -- can be 5 minutes, can be an hour, on my Macbook Pro (2020, 2 GHz Intel quad-core I5) running Big Sur 11.2.3. Not a problem with same Jamulus version on an older Mac running an older OS.

To Reproduce
Join a Jamulus session, then don't touch anything. Eventually I will get a spinning ball and can't activate any Jamulus controls. Sometimes Jamulus continues to function; at other times, the connection drops. (does not happen with current Jamulus on an old Mac running High Sierra.)

Expected behavior

Expected behavior is a normal Jamulus session.

Screenshots

Operating system

MacOS 11.2.3

Version of Jamulus

Jamulus on this same machine seems to have buffer underruns/overflows -- sound gets glitchy: I can temporarily cure it by re-setting the buffer delay. It seems to be when I don't do reset the buffer delay that the hang occurs.

Activity

  1. hoffie commented on May 31, 2021

    @hoffie
    Member

    Hi!
    Thanks for the report. This sounds very similar to #1643, but I'd like to keep it open for now as the other issue mainly targeted a regression introduced in 3.8.0 (despite the initial report).

    We suspect a general problem in the Qt event handling on Mac with recent Qt versions and yet have to find a way to work around it.

    It would help if you could try the following:

  2. hoffie commented on May 31, 2021

    @hoffie
    Member

    Linked another build to try based on #1794 in the comment above now.

  3. softins commented on May 31, 2021

    @softins
    Member

    Also @RonCohen1 could you say which skin you are using? Normal, Compact or Fancy? And could you try using a different one to see if it makes any difference?

  4. RonCohen1 commented on May 31, 2021

    @RonCohen1
    Author
  5. hoffie commented on May 31, 2021

    @hoffie
    Member

    @RonCohen1 Thanks for the feedback!

    Just a short brain dump of things to play around with, although all of it seems QML-related so might have no effect for us:
    https://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph.html QSG_RENDER_LOOP=threaded vs QSG_RENDER_LOOP=basic.

    https://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph-renderer.html#performance

    https://bugreports.qt.io/browse/QTBUG-88248 sounds related (event-related leaks), but seems to only occur with Qt 5.14 or newer while our previous builds were based on 5.9, IIRC.

  6. added a commit that references this issue on May 31, 2021
  7. 21 remaining items

  8. hoffie commented on Jan 27, 2022

    @hoffie
    Member

    There is a small chance that moving our builds to Qt6 might help with this issue.
    If someone wants to try, feel free to download the completely untested Qt6 Mac build from PR #2300. Expect breakage though.

    Please post in this issue, if you can still observe the described bug with this build or if things get better or worse.
    Please post to #2300 if you find any other issues with this build.

  9. MattMerz-Violin commented on Feb 4, 2022

    @MattMerz-Violin

    Tried it today with latest MacOS 11 version. Still the same issue unfortunately :-(

  10. chrisrimple commented on Feb 4, 2022

    @chrisrimple

    This seems to be (1) not specific to a MacOS version (has been reported on Mojave, Big Sur, and maybe others) and (2) requires that no Jamulus windows have focus for some time (amount of time varies). I haven't seen any reports for a M1 Mac (all seem to be Intel), but I have an M1 so will see if I can replicate.

  11. hoffie commented on Mar 4, 2022

    @hoffie
    Member

    Here's another build to try: https://github.com/jamulussoftware/jamulus/suites/5504510055/artifacts/176206626
    It's from #2449 which uses a newer Xcode/macOS SDK. Again, there's only a rather small chance that it helps, but it would be helpful to know.

    Feedback appreciated!

  12. hoffie commented on Mar 7, 2022

    @hoffie
    Member

    Another thing to try: Could someone try running export QT_MAC_WANTS_LAYER=1 and starting Jamulus via command line (from the same Terminal)?

    (The linked bug report does not match exactly what's reported here. Still, it's also about UI-related hangs starting with Big Sur, so there's at least some chance... And btw, Qt 5.12.3 5.15.3, which was just released, claims to have a fix for exactly the linked issue).

  13. MattMerz-Violin commented on Mar 10, 2022

    @MattMerz-Violin

    I tried it today in an online session. The bug is still there, but it is much better now. memory usage does only increase slowly. Here you can find a few videos showing the activity window of MacOS 11.6.4. when Jamulus is in front or not and when quitting Jamulus.

    http://www.vaskez.de/jamulus_bug/Jamulus_in_front.mov
    http://www.vaskez.de/jamulus_bug/Jamulus_not_in_front.mov
    http://www.vaskez.de/jamulus_bug/Quit_Jamulus.mov

    So it looks like the switch to QT6 at least brings some changes. I hope this is helpful.

  14. MattMerz-Violin commented on Jul 21, 2022

    @MattMerz-Violin

    Hi, under Jamulus 3.9 beta 2 and MacOS 11.6.8 this bug is no longer exiting. I had a session today with Jamulus running in the background a lot and it remained responsive and there was no hang at all :-)

    Great improvement!

  15. pljones commented on Jul 22, 2022

    @pljones
    Collaborator

    Can you confirm which MacOS build you used?
    image
    Thanks!

  16. MattMerz-Violin commented on Jul 22, 2022

    @MattMerz-Violin

    Hi, I used the jamulus_3.9.0beta_mac.dmg build.

    Best regards, Matt

  17. pljones commented on Jul 22, 2022

    @pljones
    Collaborator

    @MattMerz-Violin

    Cheers

    @RonCohen1 @Rob-NY @chrisrimple,

    Can you comment at all on the 3.9.0beta2 release?

    Thanks

  18. hoffie commented on Aug 16, 2022

    @hoffie
    Member

    As there is at least one positive report that this issue should be fixed as of 3.9.0, I'm closing this for now. If someone has different experiences, please comment or open a new issue. Thanks.

  19. added this to the Release 3.9.0 milestone on Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions