Notifications
Clear all

Unify Mutex error when loading a library in Unify when Unify is loaded in Rapidcomposer

14 Posts
3 Users
1 Reactions
944 Views
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter   [#5482]

It seems there is a bug in Unify 11 (I am on the latest release).  When I  Unify in Rapidcomposer,  all is fine, but when I want to add a library to Unify, Unify is stalling.  I worked with the Developer of Rapidcomposer and he provided me with the Sample Process file.  Rapidcomposer is in the market of over 15 years. 

I am on MACOS 15.4

here is the file.  I hope this helps.   Cheers, Hendrik

 In the main thread Unify is waiting on a mutex, that is why it was hanging:

    +                                 1793 juce::Timer::TimerThread::callTimers()  (in Unify) + 248  [0x11ee9d04c]
    +                                   1793 juce::WaitableEvent::signal() const  (in Unify) + 28  [0x11ee5f628]
    +                                     1793 std::mutex::lock()  (in libc++.1.dylib) + 16  [0x18fb6b40c]

The audio rendering thread is also waiting, a typical deadlock situation:

    +       1447 UnifyProcessor::processOneBlock(juce::AudioBuffer&, juce::MidiBuffer&, int)  (in Unify) + 2256  [0x11eca24f8]
    +       ! 1447 juce::WaitableEvent::wait(double) const  (in Unify) + 544  [0x11ee5f3d0]
    +       !   1447 std::condition_variable::__do_timed_wait(std::unique_lock&, std::chrono::time_point<std::chrono::system_clock,



   
Quote
Topic Tags
(@getdunne)
Illustrious Member Admin
Joined: 7 years ago
Posts: 4905
 

@nordiclight

Thank you for the report. I don't think such a deadlock has ever been noted before. @wavesequencer please note.

For the moment, all I can suggest is that you run Unify in stand-alone mode to add libraries.



   
ReplyQuote
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter  

@getdunne 

Thank you for the response.  

At current I am running Unify separately on other tracks in my DAW, but for my composing it is very beneficial to have Unify run as part inside of Rapidcomposer (As I create my ideas in Rapidcomposer).   I have no other plugin issues within Rapidcomposer.  

When I run Unify in Logic Pro 11 I I can run Unify in the DAW and load libraries without issues.  



   
ReplyQuote
(@getdunne)
Illustrious Member Admin
Joined: 7 years ago
Posts: 4905
 

Posted by: @nordiclight
↑

for my composing it is very beneficial to have Unify run as part inside of Rapidcomposer  

Perhaps I misunderstood. You said at first that Unify in Rapidcomposer locks up "when I want to add a library to Unify". If this is the only problem situation, or is Unify also locking up at other times, e.g., when you simply try to load patches from an already-installed library?

 



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 555
 

Noted - thanks Shane for responding. It would be good to confirm if it's only library addition/patch addition that locks up in Rapidcomposer (a product I'm not familiar with - hopefully something I can get hold of to verify).



   
ReplyQuote
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter  

Ok.. Let me try to clarify this further.  When I start Rapidcomposer, I can add VST's to the product. 

1. Start Rapidcomposer

2. Load Unify as a VST in Rapidcomposer. All still fine. 

3. Load a Unify patch from a library in Unify - Unify is stalling. (Mutex Waiting Error).

So, I can not load any Unify libraries in Unify whilst Unify is sitting inside of Rapidcomposer. 

 

---- When start Unify as a standalone app I have no issues.  When I load Unify within Logic Pro I have no issues. 



   
ReplyQuote
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter  

@wavesequencer I am sure Attila is willing to work with you to sort out this issue.  

You can find Rapidcomposer here: https://www.musicdevelopments.com/

When you send an email to the the Support email, Atilla is responding very fast.  You can reference my issue. Attila is aware of me and my issue. 

Thank you. 



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 555
 

Confirming, I can see that Unify hangs on trying to load a patch in RapidComposer on a Mac M4 system  - the plugin itself opens fine, but hangs on selection of a patch. Will take a closer look.



   
NordicLight reacted
ReplyQuote
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter  

@wavesequencer Thank you for confirming.  Hopefully you can fix the issue.



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 555
 

There's seems to be a fundamental issue with Rapid Composer + Unify which is not even just patch loading, but even just opening the plugin, the audio callbacks get stalled to a very low rate and trying to close Rapid Composer stalls (this is on a M4 mini/OS 15.4.1).

A complete guess at the moment is that it's related to automation parameter updates, but I will investigate - it's certainly not something we are seeing in any other DAW/Plugin hosts.

 

 



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 555
 

One red flag is that Rapid Composer appears to request (on first call to set the audio configuration) the plugin to run at a audio block size of 2560 (this coming in at the VST3 API level) - even though the audio interface I'm testing with is set to 512 samples currently - that 5X the expected size.. If anything, we would expect a host to request block sizes that are smaller than the hardware audio buffer setting - post initial 'prepare to play' (unless doing some offline rendering). 

More testing/investigation required, but if the block size is being requested as much bigger than the actual hardware block size it can lead to incorrect  thread initialization settings (and I'm observing that Unify render threads never get to call their main render function after the thread is started).



   
ReplyQuote
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter  

@wavesequencer As this issue is taking longer than anticipated, I have reached out to the developer of Rapidcomposer.  He was so kind to optimise the audio initialization. 

When it comes to software development it would be great when companies reach out to each other to solve the issues.  I have worked 30 years in Software IT and I know how important this is to create great products.  

Rapidcomposer as Music Theory composing tool is far ahead of Scaler.  The learning curve is somewhat steep, but that is the same for unify. Once you understand it, it is easier. 

Perhaps there is an opportunity to work together. 

Cheers,

. Hendrik 



   
ReplyQuote
(@wavesequencer)
Honorable Member Admin
Joined: 2 years ago
Posts: 555
 

Hi Hendrick,

I've just not had time to look into this further honestly. 

Glad to hear the developer of Rapidcomposer has made a change to the initialisation code - it seems that it is a bug on their initial max block size setting, but maybe Unify could work around it. Did you have any luck with the updated version of that software + Unify? I'd be happy to try out any update to confirm if it resolves the issue - I'll drop them a message.

Paul.

 

 

 

 



   
ReplyQuote
(@nordiclight)
Trusted Member
Joined: 2 years ago
Posts: 37
Topic starter  

@wavesequencer Hi Paul, When you install RC 5.5.2 all should be fine.  In this new version, I was able to load Unify and add any patches into Unify without any issues. 

Cheers,

- Hendrik 

 



   
ReplyQuote
Share: