msvcp140.dll error

Questions about Wine on Linux
Locked
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

msvcp140.dll error

Post by DrCarsonBeckett »

Hi there,

I receive the following error message during a game start. It worked until I rebooted the root server.
Unhandled exception: unimplemented function msvcp140.dll.?_IsNonBlockingThread@_Task_impl_base@details@Concurrency@@SA_NXZ called in 64-bit code (0x000000007b449a2c).

I found this topic, but I dont know how to change that via the command line (remote desktop doesn't work).
viewtopic.php?f=8&t=29466

I installed winetricks too but that didn't do it.


Any help?


Best regards
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

Okay, I found a workaround. I need to delete one folder and two files (from the game) every time I reboot the root server.
After that it works, but that doesn't solve the error itself.
Is there a way how to avoid deleting the files every time?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: msvcp140.dll error

Post by DarkShadow44 »

Your wine version is too old, you should update. This specific error is already fixed.

Alternatively, try

Code: Select all

winetricks -q vcrun2015
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

I use the winehq-stable version 3.0.1. Its the latest stable version.

That command returns the status 120 and aborts.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: msvcp140.dll error

Post by DarkShadow44 »

Aborts with what terminal log?
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

Which log file do I need to attach? And where to find it. Could only find winetricks log:
w_workaround_wine_bug-37781
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: msvcp140.dll error

Post by DarkShadow44 »

When you run winetricks, it prints something to the terminal, that's what I want to see.
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

root@root:~# winetricks -q vcrun2015
------------------------------------------------------
You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20170101 - sha1sum: c844fda0cca25ac9ed0ed1b55cd138cab6a4af16 with wine-3.0.1 and WINEARCH=win64
Executing w_do_call vcrun2015
Executing load_vcrun2015
------------------------------------------------------
Working around wine bug 37781
------------------------------------------------------
------------------------------------------------------
This may fail in non-XP mode, see https://bugs.winehq.org/show_bug.cgi?id=37781
------------------------------------------------------
Using native,builtin override for following DLLs: api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 atl140 msvcp140 msvcr140 ucrtbase vcomp140 vcruntime140
Executing winetricks_early_wine regedit /S C:\windows\Temp\_vcrun2015\override-dll.reg
Executing cd /root/.cache/winetricks/vcrun2015
Executing wine vc_redist.x86.exe /q
0033:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0033:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0033:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0036:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0036:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0036:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0036:fixme:advapi:DecryptFileW (L"C:\\users\\root\\Temp\\{74d0e5db-b326-4dae-a6b2-445b9de1836e}\\", 00000000): stub
0038:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0038:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0039:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0039:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
------------------------------------------------------
Note: command wine vc_redist.x86.exe /q returned status 120. Aborting.
------------------------------------------------------
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: msvcp140.dll error

Post by DarkShadow44 »

Using winetricks 20170101
This is a bit old, you should update winetricks. But that's not the issue here.
0038:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
That's your problem here, the vcruntime installer wants to create a window, but you are having commandline only, right?
You might want to update to wine-3.10 and try again - since that has this particular error fixed, it might work without native msvcp140.
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

Winetricks is the latest version via apt-get.
I will try the mentioned version and will report back.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: msvcp140.dll error

Post by Bob Wya »

DrCarsonBeckett wrote:Winetricks is the latest version via apt-get.
I will try the mentioned version and will report back.
Debian (/ Ubuntu) are notorious for shipping out-of-date software.
So what's in your repositories means diddly squat...

You'll need to pull the latest release of winetricks manually (which was 3rd June 2018)...
See: WineHQ Wiki: Winetricks.
Download URL's often need updating, etc.

Bob
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

So I upgraded wine and winetricks but its still not working as expected.

root@root:/usr/bin# winetricks -q vcrun2015
------------------------------------------------------
Running Wine/winetricks as root is highly discouraged. See https://wiki.winehq.org/FAQ#Should_I_ru ... as_root.3F
------------------------------------------------------
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20180603-next - sha256sum: cda3b23abab3e8fa58459796824465ba04d45baa0326288780acf432d1d9cfd0 with wine-3.10 and WINEARCH=win64
Executing w_do_call vcrun2015
Executing load_vcrun2015
------------------------------------------------------
Working around wine bug 37781
------------------------------------------------------
------------------------------------------------------
This may fail in non-XP mode, see https://bugs.winehq.org/show_bug.cgi?id=37781
------------------------------------------------------
Using native,builtin override for following DLLs: api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase vcomp140 vcruntime140
Executing wine regedit /S C:\windows\Temp\_vcrun2015\override-dll.reg
Executing wine64 regedit /S C:\windows\Temp\_vcrun2015\override-dll.reg
Setting Windows version to winxp
Executing wine regedit /S C:\windows\Temp\_vcrun2015\set-winver.reg
Executing wine64 regedit /S C:\windows\Temp\_vcrun2015\set-winver.reg
------------------------------------------------------
Running wineserver -w. This will hang until all wine processes in prefix=/root/.wine terminate
------------------------------------------------------
Executing cd /root/.cache/winetricks/vcrun2015
Executing wine vc_redist.x86.exe /q
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
002f:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002f:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002f:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
002f:fixme:advapi:DecryptFileW (L"C:\\users\\root\\Temp\\{74d0e5db-b326-4dae-a6b2-445b9de1836e}\\", 00000000): stub
0032:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0032:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0031:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0031:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0009:fixme:ole:CoInitializeSecurity (0x32f584,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
------------------------------------------------------
Note: command wine vc_redist.x86.exe /q returned status 120. Aborting.
------------------------------------------------------


root@root:/usr/bin# wine --version
wine-3.10

root@root:/usr/bin# winetricks --version
20180603-next - sha256sum: cda3b23abab3e8fa58459796824465ba04d45baa0326288780acf432d1d9cfd0
spoon0042
Level 6
Level 6
Posts: 572
Joined: Thu Dec 24, 2009 11:00 am

Re: msvcp140.dll error

Post by spoon0042 »

DrCarsonBeckett wrote: ------------------------------------------------------
Running Wine/winetricks as root is highly discouraged. See https://wiki.winehq.org/FAQ#Should_I_ru ... as_root.3F
------------------------------------------------------
It's possible this is also causing the "application tried to create a window" problem.
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

conan@root:~$ winetricks -q vcrun2015
------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20180603-next - sha256sum: cda3b23abab3e8fa58459796824465ba04d45baa0326288780acf432d1d9cfd0 with wine-3.10 and WINEARCH=win64
Executing w_do_call vcrun2015
Executing load_vcrun2015
Executing mkdir -p /home/conan/.cache/winetricks/vcrun2015
Executing cd /home/conan/.cache/winetricks/vcrun2015
Downloading https://download.microsoft.com/download ... st.x86.exe to /home/conan/.cache/winetricks/vcrun2015
--2018-06-17 17:36:28-- https://download.microsoft.com/download ... st.x86.exe
Resolving download.microsoft.com (download.microsoft.com)... 23.210.248.197, 2a02:26f0:f1:282::e59, 2a02:26f0:f1:286::e59
Connecting to download.microsoft.com (download.microsoft.com)|23.210.248.197|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13767776 (13M) [application/octet-stream]
Saving to: ‘vc_redist.x86.exe’

vc_redist.x86.exe 100%[===================>] 13.13M 11.6MB/s in 1.1s

2018-06-17 17:36:30 (11.6 MB/s) - ‘vc_redist.x86.exe’ saved [13767776/13767776]

Executing cd /home/conan
------------------------------------------------------
Working around wine bug 37781
------------------------------------------------------
------------------------------------------------------
This may fail in non-XP mode, see https://bugs.winehq.org/show_bug.cgi?id=37781
------------------------------------------------------
Using native,builtin override for following DLLs: api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase vcomp140 vcruntime140
Executing wine regedit /S C:\windows\Temp\_vcrun2015\override-dll.reg
Executing wine64 regedit /S C:\windows\Temp\_vcrun2015\override-dll.reg
Setting Windows version to winxp
Executing wine regedit /S C:\windows\Temp\_vcrun2015\set-winver.reg
Executing wine64 regedit /S C:\windows\Temp\_vcrun2015\set-winver.reg
------------------------------------------------------
Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/conan/.wine terminate
------------------------------------------------------
Executing cd /home/conan/.cache/winetricks/vcrun2015
Executing wine vc_redist.x86.exe /q
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
002e:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002e:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002e:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
002e:fixme:advapi:DecryptFileW (L"C:\\users\\conan\\Temp\\{74d0e5db-b326-4dae-a6b2-445b9de1836e}\\", 00000000): stub
0030:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0030:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0031:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
0031:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.
0009:fixme:ole:CoInitializeSecurity (0x33f584,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
------------------------------------------------------
Note: command wine vc_redist.x86.exe /q returned status 120. Aborting.
------------------------------------------------------

Non root user. I only test winetricks under root rights during the configuration. I normally don't run such things with root rights.
Last edited by DrCarsonBeckett on Sun Jun 17, 2018 10:40 am, edited 1 time in total.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: msvcp140.dll error

Post by DarkShadow44 »

Did you already try to just run the program (without winetricks) with wine-3.10, like I suggested?
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

I would need to reboot the root server to test it. I will do that after the eco map was successfully generated and report after that.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: msvcp140.dll error

Post by DarkShadow44 »

Why do you need to reboot after updating wine?
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

I need to reboot the server to replicate the error message. Thats what I meant.
That error appears only after I try to start the Conan Exiles server after I rebooted the root server.
User avatar
DrCarsonBeckett
Level 2
Level 2
Posts: 13
Joined: Sun Jun 10, 2018 5:23 am

Re: msvcp140.dll error

Post by DrCarsonBeckett »

Seems to work now. If I get problems again, I will open a new topic or bump this one. Thanks.
karak
Newbie
Newbie
Posts: 3
Joined: Thu Aug 16, 2018 6:19 pm

Re: msvcp140.dll error

Post by karak »

DrCarsonBeckett - which files / folders were you deleting? I'm running into the same issue.
Locked