-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Description
I have tried using Winject and Chaoslauncher. Chaoslauncher runs with WMode just fine, but the following error occurs when running with BWAPI.
The original issue was posted by Florian Richoux in the facebook group. This is a recent issue that appeared when BWAPI was updated to use Visual C++ 2013.
The relevant (and only) error message is:
err:module:import_dll Loading library MSVCP120.dll (which is needed by L"C:\\Program Files (x86)\\StarCraft\\bwapi-data\\BWAPI.dll") failed (error c000007b).
Full log:
192725.451:0016:trace:module:load_dll looking for L"MSVCP120.dll" in L"C:\\Program Files (x86)\\StarCraft;.;C:\\windows\\system32;C:\\windows\\system;C:\\windows;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem"
192725.451:0016:trace:actctx:RtlFindActivationContextSectionString 00000001 (null) 2 L"MSVCP120.dll" 0x34f430
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000005c): returning 0x12f648
192725.451:0016:trace:file:RtlDosPathNameToNtPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll",0x34f2e8,(nil),(nil))
192725.451:0016:trace:file:RtlGetFullPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" 520 0x34f098 (nil))
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000006c): returning 0x12f6b8
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,00000152): returning 0x12f738
192725.451:0016:trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" -> "/home/heinermann/.wine/dosdevices/c:/Program Files (x86)/StarCraft/msvcp120.dll"
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f738): returning TRUE
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f6b8): returning TRUE
192725.451:0016:trace:file:RtlGetFullPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" 64 0x34f4f6 0x34f41c)
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000005c): returning 0x12f8a0
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f8a0): returning TRUE
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f648): returning TRUE
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000005e): returning 0x12f910
192725.451:0016:trace:actctx:RtlFindActivationContextSectionString 00000001 (null) 2 L"MSVCP120.dll" 0x34f430
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000005c): returning 0x12f980
192725.451:0016:trace:file:RtlDosPathNameToNtPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll",0x34f2e8,(nil),(nil))
192725.451:0016:trace:file:RtlGetFullPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" 520 0x34f098 (nil))
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000006c): returning 0x12f9f0
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,00000152): returning 0x12fa70
192725.451:0016:trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" -> "/home/heinermann/.wine/dosdevices/c:/Program Files (x86)/StarCraft/msvcp120.dll"
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12fa70): returning TRUE
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f9f0): returning TRUE
192725.451:0016:trace:file:RtlGetFullPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" 94 0x12f910 0x34f41c)
192725.451:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f980): returning TRUE
192725.451:0016:trace:file:RtlDosPathNameToNtPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll",0x34f420,(nil),(nil))
192725.451:0016:trace:file:RtlGetFullPathName_U (L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" 520 0x34f198 (nil))
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000006c): returning 0x12fbd8
192725.451:0016:trace:ntdll:FILE_CreateFile handle=0x34f4dc access=80000000 name=L"\\??\\C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" objattr=00000040 root=(nil) sec=(nil) io=0x34f428 alloc_size=(nil) attr=00000000 sharing=00000005 disp=1 options=00000060 ea=(nil).0x00000000
192725.451:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,00000152): returning 0x12fc58
192725.452:0016:trace:file:wine_nt_to_unix_file_name L"\\??\\C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll" -> "/home/heinermann/.wine/dosdevices/c:/Program Files (x86)/StarCraft/msvcp120.dll"
192725.452:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12fc58): returning TRUE
192725.452:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12fbd8): returning TRUE
192725.452:0016:trace:module:get_load_order looking for L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll"
192725.452:0016:trace:heap:RtlAllocateHeap (0x110000,70000062,0000005e): returning 0x12fdc0
192725.452:0016:trace:reg:NtQueryValueKey (0x2c,L"C:\\Program Files (x86)\\StarCraft\\MSVCP120",2,0x34f32c,80)
192725.452:0016:trace:reg:NtQueryValueKey (0x2c,L"*MSVCP120",2,0x34f32c,80)
192725.452:0016:trace:reg:NtQueryValueKey (0x2c,L"MSVCP120",2,0x34f32c,80)
192725.452:0016:trace:module:get_load_order_value got standard key n,b for L"MSVCP120"
192725.452:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12fdc0): returning TRUE
192725.452:0016:trace:ntdll:NtReadFile (0x38,(nil),(nil),(nil),0x34f4ec,0x34f537,0x00000055,0x34f4e0,(nil)),partial stub!
192725.452:0016:trace:ntdll:NtReadFile = SUCCESS (85)
192725.452:0016:trace:module:load_native_dll Trying native dll L"C:\\Program Files (x86)\\StarCraft\\MSVCP120.dll"
192725.452:0016:warn:module:load_dll Failed to load module L"MSVCP120.dll"; status=c000007b
192725.452:0016:trace:heap:RtlFreeHeap (0x110000,70000062,0x12f910): returning TRUE
192725.452:0016:err:module:import_dll Loading library MSVCP120.dll (which is needed by L"C:\\Program Files (x86)\\StarCraft\\bwapi-data\\BWAPI.dll") failed (error c000007b).
MSVCP120.dll exists, it is loading it that fails. This is essentially a WINE issue.
A solution route that BWAPI can take is to statically link the VS 2013 runtime library, as in 93efa53 for the plugin injector. This will not work for bot DLL modules, however.
Reactions are currently unavailable
