Helpful Reply2017.3 UWP Midi Driver Mode

Author
MattyBoy
Max Output Level: -90 dBFS
  • Total Posts : 38
  • Joined: 2013/10/09 08:58:36
  • Status: offline
2017/03/22 11:49:52 (permalink)
0

2017.3 UWP Midi Driver Mode

TL;DR - Not compatible with the Output ports in virtual midi port utilities
 
I changed my midi mode to UWP, and when loading a new project I had a strange lock up, from which the only way out was to kill Sonar via the Task Manager
 
Steps taken:
1. Open Sonar (no project loaded, just started Sonar without a project)
2. Set Midi Mode to UWP
3. Re-Enabled the Midi Ins & Outs  (as changing to UWP loses any MME settings)
4. Opened an existing project
5. Sonar starts opening the project, then stalls, then I get the following modal dialog:
 
Server Busy
This action cannot be completed because the other program is busy. Choose "Switch To" to activate the busy program and correct the problem.
 
6. There are three options
  Retry - Doesn't do anything, just causes a screen refresh and dialog is still there
  Cancel - Is disabled (greyed out, so can't be clicked)
  Switch To - Pressing this opens the Windows start menu, but doesn't close the dialog
 
7. As the dialog is modal, I can't click on anything in Sonar, even the close window button, so only option is Task Manager
 
After re-starting Sonar, I get a message in a 'MIDI Device Failure' dialog, which tells me the MIDI output devices could not be enabled, as 'The specified device handle is invalid'.
 
The midi output device in question is a virtual midi port created using Tobias Erichsen's loopMIDI.  A known issue with Microsoft's UWP MIDI implementation is that any virtual MIDI output port created will always show up with the name 'MIDI', regardless of how it's named in the loopMIDI utility (The windows MME implementation picks up the correct name).  I reported it to Microsoft and apparently it's on a bug list, so it might get fixed one day... It seems likely that this is related to the issue in Sonar.
 
Would be great if Cakewalk could implement a workaround for this, while we wait for Microsoft, as I'm sure other users out there use loopMIDI, and this will be a showstopper.
 
I've now switched back to using MME, as i need loopMIDI in my setup.  It's a pain as the MME drivers are not multi-client, which is why I was so excited so see Sonar switch to UWP.
 
Update 1: 
Seems any virtual midi cable may be a problem. If i try to use a LoopBE virtual midi cable as an input/output I get the same issue 'The specified device handle is invalid'.  
 
Update 2:
Seems the issue only occurs when selecting a virtual port as a Midi Out device. Once the 'Server Busy' dialog has happened, any midi device, virtual or otherwise, can suffer from the 'The specified device handle is invalid' error, until after a re-boot (could be a consequence of having to use task manager to kill Sonar). Made it a bit tricky to pinpoint the exact cause.
post edited by MattyBoy - 2017/03/22 17:12:12
#1
tenfoot
Max Output Level: -53.5 dBFS
  • Total Posts : 2186
  • Joined: 2015/01/22 18:12:07
  • Location: Qld, Australia
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 12:32:25 (permalink)
0
Bummer - I too use loopbe 30. I haven't tried 2017-03 yet but I have seen the "server busy" message occasionally. Whatever causes that may predate this release.

Bruce.
 
Sonar Platinum 2017-09, Studio One 3.5.3, Win 10 x64, Quad core i7, RME Fireface, Behringer X32 Producer, Behringer X32 Rack, Presonus Faderport, Lemure Software Controller (Android), Enttec DMXIS VST lighting controller, Xtempo POK.
#2
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 13:09:46 (permalink)
0
LoopBe1 works for me using UWP mode. I do not have LoopBe30 or LoopMIDI installed.
#3
MattyBoy
Max Output Level: -90 dBFS
  • Total Posts : 38
  • Joined: 2013/10/09 08:58:36
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 16:46:46 (permalink)
0
Thanks for testing scook - can you confirm you can open a project when you have loopBE1 selected as a MIDI output device? 
 
After a re-start I was able to select LoopBE1 as an input device OK, but got the issue when I selected it as an output. It seems that once the error has occurred, there can be issues with any midi device, virtual or not, until after a reboot.. could be a consequence of having to use task manager to close Sonar I guess.
#4
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 17:45:20 (permalink)
0
Yes
  1. added a MIDI track to a project
    • input set to my controller
    • output to LoopBe1
  2. added TTS-1 as an instrument track,
    • input set to LoopBe1
    • output to master bus
  3. tested OK
  4. saved
  5. closed SONAR
  6. re-opened project (which launched SONAR)
  7. tested OK
running 64bit Win10 Home
#5
Keni
Max Output Level: -17.5 dBFS
  • Total Posts : 5769
  • Joined: 2003/11/04 10:42:15
  • Location: Willits, CA USA
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 17:53:01 (permalink)
0
I don't seem to be able to select UWP?
 
The only driver available appears to be MME. Is this a limitation of my (Presonus) MIDI connection?
 
I tried this both prior to opening a project and afterwards. Only the MME appears in the drop down.
 

Keni Fink
Keni - Facebook
Deep Space Records
http://www.reverbnation.com/inexile
http://www.cdbaby.com/artist/inexile
Out Of My Head Music (BMI)

SPlat/MacPro/Dual Xeon 3.06GHz 6-core (12 total)/64GB/Win8.1X64/Presonus 1818VSL/Soundscape SS8IO-1
#6
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 17:55:36 (permalink) ☄ Helpfulby Keni 2017/03/22 18:00:39
0
Only available in Win10
#7
Keni
Max Output Level: -17.5 dBFS
  • Total Posts : 5769
  • Joined: 2003/11/04 10:42:15
  • Location: Willits, CA USA
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 18:00:53 (permalink)
0
scook
Only available in Win10




Thanks Steve!
 

Keni Fink
Keni - Facebook
Deep Space Records
http://www.reverbnation.com/inexile
http://www.cdbaby.com/artist/inexile
Out Of My Head Music (BMI)

SPlat/MacPro/Dual Xeon 3.06GHz 6-core (12 total)/64GB/Win8.1X64/Presonus 1818VSL/Soundscape SS8IO-1
#8
Jim Lima [Cakewalk]
Administrator
  • Total Posts : 615
  • Joined: 2003/11/10 09:09:11
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 19:58:36 (permalink) ☄ Helpfulby Keni 2017/03/22 21:21:11
0
@Keni, scook - just want to note that in is x64 only as well.  [Edit] Correction, for final release x86 will be enabled.
 
@MattyBoy - your issue regarding the naming has been added to a related, existing bug in our database.   The developer also has an open case with Microsoft for them to address this.
 
Thank you,
Jim
post edited by Jim Lima [Cakewalk] - 2017/03/22 21:22:34

Jim Lima
Cakewalk, Inc.

#9
Keni
Max Output Level: -17.5 dBFS
  • Total Posts : 5769
  • Joined: 2003/11/04 10:42:15
  • Location: Willits, CA USA
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 21:22:27 (permalink)
0
Jim Lima [Cakewalk]
@Keni, scook - just want to note that in is x64 only as well.
 
@MattyBoy - your issue regarding the naming has been added to a related, existing bug in our database.   The developer also has an open case with Microsoft for them to address this.
 
Thank you,
Jim




Thanks Jim...
 
This powerhouse DAW I'm running is on a machine hardware/software limited from running win10 so I'm trapped at win8.1
 

Keni Fink
Keni - Facebook
Deep Space Records
http://www.reverbnation.com/inexile
http://www.cdbaby.com/artist/inexile
Out Of My Head Music (BMI)

SPlat/MacPro/Dual Xeon 3.06GHz 6-core (12 total)/64GB/Win8.1X64/Presonus 1818VSL/Soundscape SS8IO-1
#10
Jim Lima [Cakewalk]
Administrator
  • Total Posts : 615
  • Joined: 2003/11/10 09:09:11
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 21:25:17 (permalink)
0
Also, just had to edit my post above - for final release x86 will be enabled.
 
Jim

Jim Lima
Cakewalk, Inc.

#11
MattyBoy
Max Output Level: -90 dBFS
  • Total Posts : 38
  • Joined: 2013/10/09 08:58:36
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/22 23:05:03 (permalink)
0
Thanks scook, guess we'll just have to see if anyone else gets the issue to see if it's just me..
 
I even uninstalled loopMIDI and rebooted, but this sequence is 100% repeatable for me with driver mode set to UWP
 
1. Open Sonar (no project loaded, Sonar started without a project), 
2. Enable the loopBe1 midi output
4. Open an existing project
5. Sonar starts opening the project, then stalls, then displays the following modal dialog:
 
Server Busy
This action cannot be completed because the other program is busy. Choose "Switch To" to activate the busy program and correct the problem.
 
6. Only way out is task manager
7. After that enabling any midi device is likely to generate the 'The specified device handle is invalid' error
 
So for me, using any virtual Midi port (loopBe1 or loopMIDI) as an output is a no go in UWP mode.
#12
Noel Borthwick [Cakewalk]
Cakewalk Staff
  • Total Posts : 6475
  • Joined: 2003/11/03 17:22:50
  • Location: Boston, MA, USA
  • Status: offline
Re: 2017.3 UWP Midi Driver Mode 2017/03/23 11:55:19 (permalink)
0
The issue isn't with virtual MIDI drivers per se. Its that UWP currently doesn't properly support some multi-port MIDI devices. Also UWP is only available with Win 10 anniversary update and higher.

Noel Borthwick
Senior Manager Audio Core, BandLab
My Blog, Twitter, BandLab Profile
#13
Jump to:
© 2024 APG vNext Commercial Version 5.1