Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DP7 Arm64 Console fails due to SDK load problem (includes workaround) #430

Closed
Psychlist1972 opened this issue Nov 6, 2024 · 2 comments
Assignees
Labels
area-sdk 🔧 Related to the application SDK area-user-tools ⚙️ Related to the user-focused tools like Settings bug 🐞 Something isn't working dp8-fixed Fixed in developer preview 8

Comments

@Psychlist1972
Copy link
Contributor

I'm still debugging the root cause here. It may impact all Arm64 apps using the SDK. When running the console, if you see a COM Interop exception 0x800401F9 CO_E_ERRORINDLL, then read on.

Image

To work around the console problem, you can use the Intel/AMD x64 version of the SDK and tools while continuing to use the Arm64 version of the service. This will keep the service native, while running the client tools under emulation.

Workaround Instructions, for Arm64 devices only

Uninstall the Arm64 Tools & SDKs install. Leave the Arm64 service install in place, as it will remain Arm64.

Install the Intel/AMD x64 Windows MIDI Services Tools and SDK installer from the release.
https://github.com/microsoft/MIDI/releases/tag/dev-preview-7

Install the Intel/AMD x64 version of the .NET 8 Desktop Runtime from here
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-8.0.10-windows-x64-installer

In the end, you should see mismatched installs like this:

Image

At that point, the console and other in-box tools from this release will work under emulation.

@Psychlist1972 Psychlist1972 added area-sdk 🔧 Related to the application SDK area-user-tools ⚙️ Related to the user-focused tools like Settings bug 🐞 Something isn't working labels Nov 6, 2024
@Psychlist1972 Psychlist1972 self-assigned this Nov 6, 2024
@AmeNote-MikeKent
Copy link
Collaborator

I have found fleeting success in using the workaround as suggested by Pete. Often when running the Console command "midi endpoint monitor" it hangs, never shows any endpoints (not even the loopback endpoints). I have not been able to isolate the difference between when it does work and when it does not. I have spent several hours trying.

Also: I found that if I do not unplug and reconnect after updating the device to use the USBMidi2 driver, then a green screen occurs. I believe this is the prior bug #181, which has been closed. Perhaps it is fixed on x64 but not on arm64? Or an anomaly of the workaround?

@Psychlist1972 Psychlist1972 added the dp8-fixed Fixed in developer preview 8 label Dec 4, 2024
@Psychlist1972
Copy link
Contributor Author

In DP8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-sdk 🔧 Related to the application SDK area-user-tools ⚙️ Related to the user-focused tools like Settings bug 🐞 Something isn't working dp8-fixed Fixed in developer preview 8
Projects
Status: No status
Development

No branches or pull requests

2 participants