Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] WINE --MIDI is not working over USB [mmdevapi.dll & wineusb.sys errors] (Read 1039 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] WINE --MIDI is not working over USB [mmdevapi.dll & wineusb.sys errors]

i am trying to install X-Edit editor/librarian 32bit utility for my guitar processors from Digitech and that is a Windows app so i use Wine for running it. i used it before for long time and it needs .NET v3.5 installed but it was always satisfied with linux`s 'mono'.

now i cannot get it started and it complains on missing device [i.e. guitar processor] suggesting improperly installed USB MIDI drivers [that`s WindowsOS-derived error message]. it usually happens in a case of some USB connection issue so i have checked it with jack server running [it is not related to mode operation of X-Edit that does not transfer any sound just presets` data]. i also tried to re-plug the cable [with jackd stopped, naturally].
qjackctl shows my processor in settings and starts jack server so USB is OK.

i tried to install .NET from winetricks but there was an error message about missed DLL [i have not fixed that info] and then when i tried to execute 'wine netfx_setupverifier.exe' i`ve gotten 'Application could not be started, or no application associated with the specified file.'.
i am attaching a 'backtrace.txt' received after that.

i have checked terminal output of X-Edit & Wine and there were TWO TALE-TELLING ERRORS:
a. X-Edit starting
Code: [Select]
01f8:err:mmdevapi:DllGetClassObject Driver initialization failed
01f8:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004005 for dll L"C:\\windows\\system32\\mmdevapi.dll"
01f8:err:ole:com_get_class_object no class object {bcde0395-e52f-467c-8e3d-c4579291692e} could be created for context 0x1
01f8:err:winmm:MMDRV_Init CoCreateInstance failed: 80004005

b. Wine prefix creation
Code: [Select]
0090:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
0090:err:winediag:gnutls_process_attach failed to load libgnutls, no support for encryption
0090:err:winediag:process_attach failed to load libgnutls, no support for pfx import/export


i have tried installing 32bit version of gnuTLS but could not retrieve lib32-nettle.
Code: [Select]
sudo pacman -S lib32-gnutls
[sudo] password for sov-thade-tage:
resolving dependencies...
looking for conflicting packages...

Package (5)           New Version  Net Change  Download Size

lib32/lib32-gmp       6.2.1-1        0.77 MiB              
lib32/lib32-libtasn1  4.19.0-1       0.09 MiB              
lib32/lib32-nettle    3.8-1          0.59 MiB       0.32 MiB
lib32/lib32-p11-kit   0.24.1-1       2.44 MiB              
lib32/lib32-gnutls    3.7.8-1        2.30 MiB              

Total Download Size:   0.32 MiB
Total Installed Size:  6.19 MiB

Code: [Select]
lib32/lib32-nettle    3.8-1          0.59 MiB       0.32 MiB
/* a bunch of similar errors */
error: failed retrieving file 'lib32-nettle-3.8-1-x86_64.pkg.tar.zst' from mirror.f4st.host : The requested URL returned error: 404

i even tried switching to archlinux repositories [i know that is discouraged] but to zero success
Code: [Select]
multilib/lib32-nettle    3.8-1          0.59 MiB       0.32 MiB
/* a bunch of similar errors */
error: failed retrieving file 'lib32-nettle-3.8-1-x86_64.pkg.tar.zst' from mirrors.dotsrc.org : The requested URL returned error: 404


ALSO i have followed instruction from Wine`s wiki page on MIDI.

Code: [Select]
sov-x550cc:[sov-thade-tage]:~% aconnect -o
client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
client 16: 'DigiTech BP355' [type=kernel,card=0]
    0 'DigiTech BP355 MIDI 1'

sov-x550cc:[sov-thade-tage]:~% winecfg
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0080:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0118:fixme:imm:ImeSetActiveContext (000000000001005A, 1): stub
0118:fixme:imm:ImmReleaseContext (0000000000010064, 000000000001005A): stub
0088:fixme:imm:ImeSetActiveContext (0000000000010026, 0): stub
0088:fixme:imm:ImmReleaseContext (0000000000010020, 0000000000010026): stub
sov-x550cc:[sov-thade-tage]:~%
AND I HAVE FOUND VERY PECULIAR THING
winecfg shows my USB audio interface [BP355] in 'Audio' tab if i invoke winecfg from bash command line BUT
it does not show BP355 if i invoke winecfg from inside winetricks!!! :o
in latter case there is only one entry '(default)' instead of five entries in former case.

i tried to run X-Edit from both 32bit wineprefix and 64bit wineprefix but the issue is the same. i see startup splash and then that error window.
maybe i can see my processor in 'Audio' tab because with winetricks 'default' wineprefix is created 64bit ...but idk how Wine does work and i have only '~/home/sov-thade-tage/.local/share/wineprefixes/Wine32b' folder that i have created from command line after deleting 64bit prefix.


p.s.: i used to install X-Edit in my earlier linux systems in a quiet long while ago so i do not remember in what kind of wineprefix it was installed
[actually i have my old HDDs intact after swapping them for SDDs so i may check if that was 32 or 64 bit prefix --i do not comprehend Windows system directories structure however...]
shean shi eth Ynnwn. Aisha

 

Re: WINE --cannot get MIDI working over USB [mmdevapi.dll & wineusb.sys errors]

Reply #1
i am trying to install X-Edit editor/librarian 32bit utility for my guitar processors from Digitech and that is a Windows app so i use Wine for running it.
i hope i have found a solution to the problem with wine in my system [and i guess i know an explanation for lib`s downloading failure]:
Code: [Select]
sov-x550cc:[sov-thade-tage]:~% wine --version
wine-7.19
sov-x550cc:[sov-thade-tage]:~%
as i have found in new version of wine [7.22] devs introduced 32-on-64 functionality so no more hassle with separate prefixes [as i can comprehend it].
and as for failed update process --i have this my install broken probably because i am trying to keep an older version of another software piece [my DAW] and as wiki says: 'update your system regularly and avoid partial upgrades'.
i am working on that other issue [old version of DAW] right now so when completed it would not be annoying pacman and so on...
shean shi eth Ynnwn. Aisha