error: Failed to get msvcp140.dll version info size

Questions about Wine on Linux
Locked
thelabcat
Level 1
Level 1
Posts: 8
Joined: Sun Nov 10, 2024 5:19 pm

error: Failed to get msvcp140.dll version info size

Post by thelabcat »

I am trying to run PRISM Live Studio. My Wine version is 9.17 (Staging). I am using Fedora 41 x64. The error in the title, "error: Failed to get msvcp140.dll version info size", is the only thing printed to CLI when running the installed executable (the installer for the program runs fine). Said DLL is included in the program installation and lands in the same directory as the executable. What does this error mean, and is there a workaround?
qwertymnb
Level 5
Level 5
Posts: 272
Joined: Sun Jan 17, 2016 4:36 pm

Re: error: Failed to get msvcp140.dll version info size

Post by qwertymnb »

Hi, I sent a patch to fix this, meanwhile I guess you could use 'winetricks vcrun2022' to workaround this issue
thelabcat
Level 1
Level 1
Posts: 8
Joined: Sun Nov 10, 2024 5:19 pm

Re: error: Failed to get msvcp140.dll version info size

Post by thelabcat »

Thank you, that worked! I am curious as to what's happening under the hood. My guess is that msvcp140 is provided by Visual C++ Runtime 2022, and...
- The included DLL with PrismLive has some caveat that makes it not work with Wine and it is thus being replaced by an installed version, which Wine will look for first, OR...
- Wine is somehow expecting the system installed version of the DLL?
Anyways, thanks again. Merry Christmas! :-)
qwertymnb
Level 5
Level 5
Posts: 272
Joined: Sun Jan 17, 2016 4:36 pm

Re: error: Failed to get msvcp140.dll version info size

Post by qwertymnb »

Hi, to answer your questions:

>- The included DLL with PrismLive has some caveat that makes it not work with Wine and it is thus being replaced by an >installed version, which Wine will look for first, OR...

wine will just load it's own msvcp140.dll by default, which lacked a version resource--> bug . BTW, I should have read your post more carefully: the app comes with it's own msvcp140.dll, so you don't need a 'winetricks vcrun2022' really; just setting msvcp140 to native in winecfg would suffice really...

>- Wine is somehow expecting the system installed version of the DLL?
The system installed msvcp140 is wine's dll which lacked a version resource. Anyway, the aforementioned patch is upstream, so in next wine release (wine-9.23) no workarounds should be needed any more, and this bug should be gone

Regards
Locked