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] Loopback endpoints specified in midi config file cause service to crash on startup (DP8) #477

Open
Psychlist1972 opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
area-transports 🚌 General transports like USB, BLE, Network, etc. bug 🐞 Something isn't working dp9-fixed Fixed in developer preview 9

Comments

@Psychlist1972
Copy link
Contributor

Due to a race condition with initialization, specifying loopback endpoints in the midiconfig json will cause the service to crash on startup.

Repro

update the default.midiconfig.json file (assuming that is the current config file specified in the registry) in %allusersprofile%\Microsoft\MIDI (will require permissions changes in current Canary releases) with the following:

        "{942BF02D-93C0-4EA8-B03E-D51156CA75E1}":
        {
            "_comment": "Loopback Endpoint Pairs",
            "create":
            {
                "{f2e50be3-b43e-4d5b-abab-0e0e633888a3}":
                {
                    "endpointA":
                    {
                        "name": "Loopback Endpoint A",
                        "description": "A loopback endpoint created from the config file.",
                        "uniqueIdentifier" : "5150-OU812-PMB-A"
                    },
                    "endpointB":
                    {
                        "name": "Loopback Endpoint B",
                        "description": "A loopback endpoint created from the config file.",
                        "uniqueIdentifier" : "5150-OU812-PMB-B"
                    }
                }
            }
        },

(ensure you replace the contents of the existing Loopback GUID section and do not create a duplicate section)

Restart the service. It will fail to start.

Fixed in DP9. Capturing here in case anyone runs into it.

@Psychlist1972 Psychlist1972 added area-transports 🚌 General transports like USB, BLE, Network, etc. bug 🐞 Something isn't working dp9-fixed Fixed in developer preview 9 labels Dec 20, 2024
@Psychlist1972 Psychlist1972 self-assigned this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-transports 🚌 General transports like USB, BLE, Network, etc. bug 🐞 Something isn't working dp9-fixed Fixed in developer preview 9
Projects
Status: No status
Development

No branches or pull requests

1 participant