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

Omnimidi Causing Programs to Crash #250

Closed
ar065 opened this issue Apr 22, 2023 · 10 comments
Closed

Omnimidi Causing Programs to Crash #250

ar065 opened this issue Apr 22, 2023 · 10 comments
Labels
Bug Issue that affects the stability of the driver. Host application issue Issue caused by the host MIDI application, not by the driver.

Comments

@ar065
Copy link

ar065 commented Apr 22, 2023

Problem
Any program that attempts to connect to omnimidi will crash. The programs that seem to be affected by this issue are one's that do not use KDMAPI. For example, if any Chromium based browser tries to connect to omnimidi, or in my case get any info about it, the browser will crash.

Steps to reproduce

  1. Open the browser
  2. Browser crashes

Expected behavior
For midi connections in my browser to be listed properly without a crash happening.

Screenshots/Videos
If you need a video, I will be happy to provide one if asked.

Environment

  • Operating system: Windows 11 Pro x86_64
  • CPU: AMD Ryzen 7 5700X (16) @ 3.600GHz
  • RAM: 32678MiB (32GB)
  • MIDI application: Chromium (Version 112.0.5615.138)
  • Version of the driver: 14.7.1.0

Additional context
Related to previous Issue #195

@ar065
Copy link
Author

ar065 commented Apr 22, 2023

I should note I was visiting a site that has midi input

@ar065
Copy link
Author

ar065 commented May 24, 2023

Update:
I tried running Kiva, which can use KDMAPI. I then switched to KDMAPI, and experienced the worst audio I've ever heard from OmniMidi. There is so much crackling/popping that it's hard to even hear the midi playing. This is the same config I had in the last stable release of OmniMidi, so I haven't changed anything on my end. Switching to WinMM seems to have the same issue in Kiva. Note: Kiva does pop up a warning regarding DLL hell

@ar065
Copy link
Author

ar065 commented May 24, 2023

Another update:
Reverting back to previous versions of OmniMidi doesn't fix the issue unfortunately. I have no idea why either. OmniMidi was working great before I updated to 14.7.1.0, but now even reverting back doesn't fix the issue. I've uninstalled it from my system and reinstalled it, but the issue still happens. Maybe the uninstall didn't clean up everything OmniMidi left? I'm not completely sure

@KaleidonKep99
Copy link
Collaborator

Hi.

This issue seems to be extremely random, I tried reproducing it on my end but all browsers seem to be able to interface with the driver just fine.
That doesn't mean that the issue does not exist, other users seem to have it, but it doesn't seem to be that common either...
Would you be able to send a debug log of the driver? You can enable it from the Settings tab.

@KaleidonKep99 KaleidonKep99 added Bug Issue that affects the stability of the driver. Host application issue Issue caused by the host MIDI application, not by the driver. labels May 29, 2023
@ar065
Copy link
Author

ar065 commented Jun 8, 2023

Hey, sorry for the late response. Where exactly would I get the debug log from? I'm looking in settings under "Debug and Legacy settings" and can't seem to find it

@ar065
Copy link
Author

ar065 commented Jun 8, 2023

@KaleidonKep99
Copy link
Collaborator

It seems to crash on basswasapi.dll... I'll look into it.

@ar065
Copy link
Author

ar065 commented Jun 9, 2023

Alright, thanks

@ar065
Copy link
Author

ar065 commented Jun 21, 2023

@KaleidonKep99
I managed to fix it by downloading the basswasapi.dll from https://www.un4seen.com/ (BASSWASAPI)
I then guessed which parts of omnimidi were using x64 or x32 based on file size.
C:\Windows\System32\OmniMIDI appeared to be using x64, so I replaced basswasapi.dll with the new (x64) one
C:\Windows\SysWOW64\OmniMIDI appeared to be using x32, so I replaced the dll with the new x32 dll.
This appeared to solve my issue

@KaleidonKep99
Copy link
Collaborator

Sorry for not getting back to you earlier, and thank you for the finding!

I guess BASSWASAPI was having some issues with Chromium based browsers, since I still wasn't able to reproduce it on Firefox... (Even though Vivaldi also had no issues...)

I'll update the libraries in version 14.8!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issue that affects the stability of the driver. Host application issue Issue caused by the host MIDI application, not by the driver.
Projects
None yet
Development

No branches or pull requests

2 participants