Multiple Catanya instances working for certain configs?

Page: < 12 Showing page 2 of 2
Author
Yendor
Max Output Level: -90 dBFS
  • Total Posts : 46
  • Joined: 2009/09/23 17:24:00
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/12 13:56:01 (permalink)
Just wanted to bump this to see if some other can try to see if the multiple Cantana implementation issue goes away w/ using ASIO, opposed to WDM.   Also, please note your audio interface.
Thanks!
post edited by Yendor - 2010/03/12 13:59:11
#31
SilkTone
Max Output Level: -59.5 dBFS
  • Total Posts : 1566
  • Joined: 2003/11/10 17:41:28
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/13 18:18:53 (permalink)
Yendor


Just wanted to bump this to see if some other can try to see if the multiple Cantana implementation issue goes away w/ using ASIO, opposed to WDM.   Also, please note your audio interface.
Thanks!

Well I can confirm that this issue happens with ASIO for me. Choosing between WDM and ASIO makes no difference in my case at least. I think the difference between it working or not is whether you have multithreading engine enabled or not.
 
I personally believe that this is closely tied to the MIDI crosstalk bug, in that Sonar gets its MIDI buffers mixed up, whether during recording or during handling MIDI output form VSTis. So far all of the "workarounds" are usually not enough to eliminate the problem. The proposed workarounds usually work in simple example projects, but once you start getting into more complex songs, you end up playing musical chairs with MIDI channels just to keep things working. And turning the multiprocessor engine off is like a car dealer telling you to pull off all the spark plugs except for one off of your new Corvette's engine because of some issue that came up.

Windows 10 Pro x64, SONAR Platinum 64-bit
Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
#32
Yendor
Max Output Level: -90 dBFS
  • Total Posts : 46
  • Joined: 2009/09/23 17:24:00
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/13 19:49:30 (permalink)

Thanks for trying!

Just to clarify I had to turn off multi-threading AND use ASIO, with Catanya 1.0.1 and 8.5.3 to get multiple instances to work.  I'm just not sure if I should open a ticket with Presonus now, too!   Granted, this was in a simple configuration just to 'try'.    There's no doubt that the multiprocessing is a bug, too, and yes the Midi Crosstalk is still an issue.   

And on top of that WDM has better latency for me,  than ASIO, so overall I'm still not happy, just curious, and surprised that I got it to work with the above mentioned details.






#33
greysound
Max Output Level: -89 dBFS
  • Total Posts : 55
  • Joined: 2007/03/27 20:30:21
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/15 18:41:09 (permalink)
Yendor,

Thanks for the comparison, but I'm not quite sure where you're going with this.  We've already demonstrated that the bug precludes multi-threading and MIDI VSTi being used together.  (If you're willing to have all of Sonar run in such a handicapped state then, yes, you can run multiple MIDI VSTi.  I would expect that most folks would find this limitation too severe for complex projects.)

However as a test of your WDM versus ASIO theory, try the tests with multi-threading on and let us know the results.  I'm guessing it will make no difference but you never know.
#34
huffy
Max Output Level: -87 dBFS
  • Total Posts : 173
  • Joined: 2004/02/12 15:25:48
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/16 03:34:10 (permalink)
greysound


Yendor,

Thanks for the comparison, but I'm not quite sure where you're going with this.  We've already demonstrated that the bug precludes multi-threading and MIDI VSTi being used together.  (If you're willing to have all of Sonar run in such a handicapped state then, yes, you can run multiple MIDI VSTi.  I would expect that most folks would find this limitation too severe for complex projects.)

However as a test of your WDM versus ASIO theory, try the tests with multi-threading on and let us know the results.  I'm guessing it will make no difference but you never know.

I don't think Yendor is talking about or disputing either of the following two statements, as regards multiple instances of Catanya (or other MIDI VSTi that send MIDI Out) :
 
"Multi-threading on" + WDM = No joy.
"Multi-threading on" + ASIO = No joy.
 
I just think he's proposing (and asking others to confirm) the following additional two statements:
 
"Multi-threading OFF" + WDM = No joy.
"Multi-threading OFF" + ASIO = Happy Happy Joy Joy. (...albeit within a "handicapped" Sonar, as you said) 
 
Also, from posts #5, #30 and #33, we can deduce that between the two of them (auto-da-fe and Yendor), they've already tested both driver modes with multi-threading on.  So we're sort of past that now.
 
At least that's how I'm understanding it. 
post edited by huffy - 2010/03/16 04:07:26
#35
Yendor
Max Output Level: -90 dBFS
  • Total Posts : 46
  • Joined: 2009/09/23 17:24:00
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/16 11:25:41 (permalink)
Thanks for the feedback guys, and sorry that it wasn't clear.
Huffy, nail on the head - exactly and thanks!

Basically, auto_da_fe is having success with multiple instances of Catanya, and I wanted to understand why.   We worked together to determine that ASIO and Win7 were the major differences.  He, too can only get it to run with multithreading turned off.  Graysound, I think at one time you flagged that catanya was working with multithreading turned off, but just that wasn't working for me, either.    Just not sure if you were running ASIO or WDM.

Huffy put it best:

"Multi-threading on" + WDM = No joy.
"Multi-threading on" + ASIO = No joy.
"Multi-threading OFF" + WDM = No joy.
"Multi-threading OFF" + ASIO = Happy Happy Joy Joy (At least 3 instances of Catanya 1.0.1 working)
With it working with ASIO, at least in the configuration that i'm seeing, is it coincidence?   Would an ASIO/WDM issue be a Sonar issue, or the Hardware MFG?
Yes, there is a multithreading issue and a Midi crosstalk bug, and now a possible ASIO/WDM issue that still needs to be worked out.  But my point in having Catanya was the multiple instances and add some fun.  With Multi-threading Off + ASIO, I'm now able to do that, aleast with a small project, and was curious if others could do the same, and help out with the trouble shooting process.  

The issues at hand, in my opinion:
Multi-threading issue
Midi Crosstalk bug issue
WDM/ASIO difference issue
 
We've opened tickets regarding the Midi Crosstalk Bug and catanya not working.   Have we put trouble tickets in on Multi-threading?  What about WDM/ASIO, or would that even be Cakewalk?  I just find it curious that it works with ASIO and not WDM.  The midi crosstalk bug will still be there, along with the multi-threading isue, but hey, i'm having fun with it now. 
 
Just wanted to get a bit more feedback on our awesome forum on the WDM/ASIO issue. 
 
Thanks!
 
 
post edited by Yendor - 2010/03/16 11:27:07
#36
SilkTone
Max Output Level: -59.5 dBFS
  • Total Posts : 1566
  • Joined: 2003/11/10 17:41:28
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/16 19:24:49 (permalink)
As I mentioned previously, I really think the crosstalk bug and multithreading crashing is caused by the same issue. The crosstalk bug is caused by Sonar sharing buffers between different areas of the application when they should really be using separate buffers. Now as anyone can tell you that has done some multithreaded programming, if you have multiple threads all accessing the same buffer in memory at the same time, the end result is usually a crash, so that right there explains the multiple instance crash. Still the same underlying bug related to improper MIDI buffer handling.

And not to complicate things more (but we need to take all variables into account), I have also found that having more than one MIDI input driver enabled at a time could also alter the results. For instance, if you have just one MIDI driver enabled, and you use a VSTi that outputs MIDI data (and has its "Enable MIDI Output" option selected), you will record those MIDI events directly into an unrelated MIDI track that has its input set to a completely different port. Now if you enable a second MIDI driver (as if you have two MIDI keyboards connected at once), you will find that it no longer records the MIDI events from the VSTi on the incorrect track (but the two MIDI tracks will cross-record each other's events from the external MIDI keyboards), yet it will still cut off MIDI events being recorded on the unrelated track.

But even if this is caused by the same underlying bug (just my speculation), we should still log a bug report for every use case that we find that does not work as expected. Even if others have logged bugs for a particular use case, if you run into the same issue, please be so kind and also log a report. Cakewalk triages the bugs based on how many people filed reports, so they need to be made aware that more people do run into these issues.

And once again, the "workarounds" do not work well at all, especially in more complex projects.

Windows 10 Pro x64, SONAR Platinum 64-bit
Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
#37
Yendor
Max Output Level: -90 dBFS
  • Total Posts : 46
  • Joined: 2009/09/23 17:24:00
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/16 23:01:44 (permalink)

Silktone,

Believe me, I'm with you on this, and maybe you can help me clarify a couple things, for my understanding. 

ASIO and WDM are audio drivers only, right - nothing to do with MIDI?

When you're programing VSTi's, is the use of ASIO and WDM transparent?  In other words, there's no "if WDM" ..., or "IF ASIO"

Lastly, as I'm seeing differences in WDM and ASIO, would you also agree that one of these could be causing an issue with the audio hardware?

Mucho thanks!
#38
SilkTone
Max Output Level: -59.5 dBFS
  • Total Posts : 1566
  • Joined: 2003/11/10 17:41:28
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2010/03/17 02:00:46 (permalink)
Yendor


Silktone,

Believe me, I'm with you on this, and maybe you can help me clarify a couple things, for my understanding. 

ASIO and WDM are audio drivers only, right - nothing to do with MIDI?

When you're programing VSTi's, is the use of ASIO and WDM transparent?  In other words, there's no "if WDM" ..., or "IF ASIO"

Lastly, as I'm seeing differences in WDM and ASIO, would you also agree that one of these could be causing an issue with the audio hardware?

Mucho thanks!

The VSTi never talks to the audio driver directly, so to a VSTi, switching between WDM or ASIO should makes no difference in theory. In the VSTi spec, there is no concept of an audio driver, since all interaction is only with the host itself. Even so, the reason you are seeing differences when switching between WDM and ASIO most likely is just a combination of many different things working together to expose this bug in different ways. For instance, multithreaded bugs are often very sensitive to timing differences from the operations they perform, so different drivers might change the interaction between threads in such a way that the bug may be masked in some cases, but reproduce in other cases. This is called a "race condition" because the result of the outcome depends on the timing between threads. These bugs are often very difficult to track down because sometimes just running the application within a debugger changes the timing enough so that the problem cannot be reproduced. Or the bug may only reproduce on very specific hardware or specific conditions. Or it may only reproduce once in a thousand times, etc.
 
Fortunately, if my theory is correct that it is indeed caused by the same bug that is causing the crosstalk issue, then it should be (relatively) easy to track down since that reproduces 100% of the time and is not dependent on the multithreading engine being enabled. For that all you need is to record on two MIDI tracks at the same time from two different MIDI keyboards.

Windows 10 Pro x64, SONAR Platinum 64-bit
Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
#39
auto_da_fe
Max Output Level: -56.5 dBFS
  • Total Posts : 1866
  • Joined: 2004/08/04 21:32:18
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2011/01/10 15:33:51 (permalink)
Does anyone know if this midi x-talk issue is fixed in X1 ?

I searched the X1 forum and saw nothing.

There seems to have been a lot of confirmed strange behavior using enable midi out in synth rack, if this was fixed it may convince me that X1 is worth it.

JR

HP DV6T - 2670QM, 8 GB RAM,
Sonar Platypus,  Octa Capture, BFD2 & Jamstix3, Komplete 10 and Komplete Kontrol
Win 10 64 
SLS PS8R Monitors and KRK Ergo
https://soundcloud.com/airportface
#40
auto_da_fe
Max Output Level: -56.5 dBFS
  • Total Posts : 1866
  • Joined: 2004/08/04 21:32:18
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2011/01/10 15:44:47 (permalink)
http://forum.cakewalk.com/tm.aspx?m=2184706&high=crosstalk

Nevermind...looks like it is still there in X1

JR

HP DV6T - 2670QM, 8 GB RAM,
Sonar Platypus,  Octa Capture, BFD2 & Jamstix3, Komplete 10 and Komplete Kontrol
Win 10 64 
SLS PS8R Monitors and KRK Ergo
https://soundcloud.com/airportface
#41
SilkTone
Max Output Level: -59.5 dBFS
  • Total Posts : 1566
  • Joined: 2003/11/10 17:41:28
  • Status: offline
Re:Multiple Catanya instances working for certain configs? 2011/01/11 00:26:59 (permalink)
Yep, it is alive and well in X1. Unfortunately there are use cases for which there are no effective work-arounds. While choosing different MIDI channels within different ports might stop the 100% crosstalk you get otherwise, it still results in cut short/hung notes if those different note on/off events on the different channels and different ports happen to occur at the same time (I think the note events only need to be within the same buffer timeframe).

Windows 10 Pro x64, SONAR Platinum 64-bit
Focusrite Scarlett 18i8 USB, ASRock Z97 Pro4, Haswell 4790k @ 4.4GHz
32GB DDR3/1600, 500GB SSD (OS) + 256 GB SSD + 3TB MD
NVIDIA GTX-1070, 40" 4K Monitor + 1 Monitor in ISO booth
#42
Page: < 12 Showing page 2 of 2
Jump to:
© 2024 APG vNext Commercial Version 5.1