Can still use crossdev with USE=crossdev-mingw if prefer to keep current setup though.
mingw64-toolchain's compiler is essentially same as crossdev except for using -m32 rather than a separate compiler for i686, and it's not in PATH to avoid conflicting with crossdev -- aka need PATH=/usr/lib/mingw64-toolchain/bin:$PATH which is set in ebuilds, but may not be found remotely. Not that I use distcc myself, so I can't really say.Aiken wrote:Last night I tried mingw64-toolchain and the only question I have is can it be used with distcc? It worked for wine-vanilla and wine-staging but I missed distcc being used. I am tempted to go back to the crossdev tools for that reason.
That's a very new thing, albeit it existed in overlays for a long time. Building it with crossdev is a bit more complicated than Wine (out-of-the-box crossdev gcc can't build it, needs another stage and option) so it was typically simpler to use winetricks or dxvk-bin ebuilds. ebuild installs a script with a --symlink option that let you run it once in a wine prefix and forget as it'll just update with your system's copy, also handy with the -9999 live ebuild if need latest fixes.Did not realize about dxvk being in portage. I am used to using wintricks to install it. That is something for me to try today. Gives me an excuse to spend an overcast sunday playing gw2 and wow.


Code: Select all
03ac:err:module:map_image_into_view Could not map L"\\??\\C:\\ProgramData\\Battle.net\\Agent\\Agent.8012\\Agent.exe" section .rdata, file probably truncated
wine: failed to start L"C:\\ProgramData\\Battle.net\\Agent\\Agent.8012\\Agent.exe"




Code: Select all
0214:err:module:map_image_into_view Could not map L"\\??\\C:\\ProgramData\\Battle.net\\Agent\\Agent.8012\\Agent.exe" section .rdata, file probably truncated
wine: failed to start L"c:\\ProgramData\\Battle.net\\Agent\\Agent.8012\\Agent.exe"

Can you delete the old one and will the launcher re-download it, similar to how I used the old install to run in the new prefix.eccerr0r wrote:Something wrong with the prefix it seems. I getwhen using the old prefix but not the new one. This is with Wow.exe and not Launcher ...Code: Select all
0214:err:module:map_image_into_view Could not map L"\\??\\C:\\ProgramData\\Battle.net\\Agent\\Agent.8012\\Agent.exe" section .rdata, file probably truncated wine: failed to start L"c:\\ProgramData\\Battle.net\\Agent\\Agent.8012\\Agent.exe"
Ugh. Using a new prefix is the equivalent of reinstalling Windows, this shouldn't be this painful...
I did not need to do this for the quick test I just did here.Frautoincnam wrote:Hello,
Since the last update of wow and the launcher, to manage to make the updates of the game, it is necessary to replace the Agent.exe of 8012 by that of the 7947 (from memory) and to apply a chattr +i to it so that he is no longer replaced. There is a topic about it on the wow forums and on the wine bug tracker.
You have to delete drive_c/ProgramData/Battle.net/Agent Agent.dat before starting launcher.
https://us.forums.blizzard.com/en/blizz ... 122?page=6

Thanks, was able to restore operation with a new prefix and wine-staging-7.17. I think it downloaded agent.exe 8020 and this one appears to work and got an update. The old versions seem to loop or not load.Frautoincnam wrote:Hello,
Since the last update of wow and the launcher, to manage to make the updates of the game, it is necessary to replace the Agent.exe of 8012 by that of the 7947 (from memory) and to apply a chattr +i to it so that he is no longer replaced. There is a topic about it on the wow forums and on the wine bug tracker.
You have to delete drive_c/ProgramData/Battle.net/Agent Agent.dat before starting launcher.
https://us.forums.blizzard.com/en/blizz ... 122?page=6



Code: Select all
setfattr -x user.DOSATTRIB ~/".wine/drive_c/Program Files (x86)/Battle.net/Battle.net.13894/platforms/qwindows.dll"Code: Select all
Unhandled exception: page fault on read access to 0x00000010 in 32-bit code (0x6f49d494).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:6f49d494 ESP:0070e280 EBP:0070e29c EFLAGS:00210247( R- -- I Z- -P-C)
EAX:00000004 EBX:0070e3a8 ECX:00000000 EDX:00e43e08
ESI:0070e2e0 EDI:6f5f8990
Stack dump:
0x0070e280: 00e43e08 6f5f8990 00000013 7bc2ce03
0x0070e290: 0088eba8 00000013 0070e2c8 0070e33c
0x0070e2a0: ffffffff 00000000 0070e3c8 6f4d7cbb
0x0070e2b0: 00000000 6f5da700 6f5edd1c 6f4d7c25
0x0070e2c0: 00000000 00000000 0070e388 7bc2edaa
0x0070e2d0: 7bc6c460 00000013 00e43e08 00000013
Backtrace:
=>0 0x6f49d494 in dxgi (+0x9d494) (0x0070e29c)
1 0xffffffff (0x0070e33c)
2 0x00000001 (0x0070e40c)
3 0x00000002 (0x0070e48c)
0x6f49d494 dxgi+0x9d494: cmpl $20,0xc(%eax)
Modules:
Module Address Debug info Name (132 modules)
PE 00400000-00510000 Deferred battle.net
PE 01b60000-01b6e000 Deferred imagehlp
PE 01b70000-080e7000 Deferred libcef
PE 080f0000-0810f000 Deferred msacm32
PE 08110000-081e1000 Deferred chrome_elf
PE 081f0000-08221000 Deferred propsys
PE 08230000-08232000 Deferred usp10
PE 08240000-08550000 Deferred d3d9
PE 08550000-088ca000 Deferred d3d11
PE 088d0000-088da000 Deferred vcruntime140
PE 08ae0000-08af0000 Deferred msv1_0
PE 0a4d0000-0a547000 Deferred mf
PE 0a850000-0abd5000 Deferred d3dcompiler_47
PE 0abe0000-0b51d000 Deferred libglesv2
PE 0b520000-0b540000 Deferred libegl
PE 10000000-1041a000 Deferred battle.net helper
PE 1ff00000-1ff13000 Deferred dxva2
PE 53830000-53858000 Deferred uiautomationcore
PE 61c40000-61c4c000 Deferred userenv
PE 622c0000-622f0000 Deferred rsaenh
PE 62500000-6261a000 Deferred oleaut32
PE 62a00000-62a09000 Deferred msmpeg2vdec
PE 62c40000-62c66000 Deferred concrt140
PE 62e40000-62e65000 Deferred credui
PE 63580000-635c0000 Deferred oleacc
PE 63880000-638a7000 Deferred wintrust
PE 63c00000-63c4d000 Deferred winhttp
PE 64180000-641ae000 Deferred winspool
PE 643c0000-643e7000 Deferred ws2_32
PE 646c0000-646f3000 Deferred iphlpapi
PE 64a80000-64ab9000 Deferred win32u
PE 65200000-6520f000 Deferred esent
PE 65480000-65509000 Deferred rpcrt4
PE 65680000-6571b000 Deferred msvcrt
PE 65e80000-65ef5000 Deferred dwrite
PE 66080000-660d7000 Deferred shlwapi
PE 66380000-6649f000 Deferred ole32
PE 66640000-6664c000 Deferred version
PE 667c0000-667d9000 Deferred shcore
PE 66fc0000-66fd4000 Deferred compstui
PE 67500000-67519000 Deferred imm32
PE 67bc0000-67d14000 Deferred comctl32
PE 68000000-68110000 Deferred cryptui
PE 68280000-682a5000 Deferred jsproxy
PE 684c0000-6851b000 Deferred combase
PE 68880000-68a2e000 Deferred user32
PE 68cc0000-68d8b000 Deferred crypt32
PE 68e40000-68e64000 Deferred netapi32
PE 69040000-69148000 Deferred comdlg32
PE 69840000-6987f000 Deferred advapi32
PE 6a500000-6a562000 Deferred mfplat
PE 6a600000-6a60c000 Deferred kerberos
PE 6a680000-6a68c000 Deferred wtsapi32
PE 6aac0000-6ab84000 Deferred ucrtbase
PE 6afc0000-6afd0000 Deferred aclui
PE 6b140000-6b14f000 Deferred rtworkq
PE 6bb40000-6bb6e000 Deferred winex11
PE 6bbc0000-6bbe9000 Deferred sechost
PE 6c100000-6c17f000 Deferred wininet
PE 6c980000-6ca53000 Deferred msvcp140
PE 6d480000-6d4a0000 Deferred secur32
PE 6da80000-6dafe000 Deferred gdi32
PE 6e200000-6e215000 Deferred bcrypt
PE 6e800000-6e80e000 Deferred ncrypt
PE 6ecc0000-6ecd5000 Deferred dnsapi
PE 6f240000-6f302000 Deferred winmm
PE 6f400000-6f657000 Export dxgi
PE 6f6c0000-6f6ca000 Deferred nsi
PE 70000000-70070000 Deferred dbghelp
PE 700c0000-700cb000 Deferred dhcpcsvc
PE 70380000-70421000 Deferred urlmon
PE 704c0000-704cd000 Deferred dwmapi
PE 70580000-7058b000 Deferred dcomp
PE 70d80000-70db5000 Deferred uxtheme
PE 71080000-7108e000 Deferred hid
PE 712c0000-712de000 Deferred mpr
PE 71400000-71d47000 Deferred shell32
PE 7b000000-7b290000 Deferred kernelbase
PE 7b600000-7b659000 Deferred kernel32
PE 7bc00000-7bc9e000 Deferred ntdll
ELF 7d000000-7d005000 Deferred <wine-loader>
ELF 7d379000-7d400000 Deferred libvulkan.so.1
ELF 7d4c7000-7d4ec000 Deferred libgcc_s.so.1
ELF 7d524000-7d529000 Deferred winspool.so
ELF 7d529000-7d52f000 Deferred dwrite.so
ELF 7d52f000-7d534000 Deferred msv1_0.so
ELF 7d534000-7d539000 Deferred netapi32.so
ELF 7d539000-7d53e000 Deferred kerberos.so
ELF 7d53e000-7d5c9000 Deferred libgmp.so.10
ELF 7d5c9000-7d613000 Deferred libhogweed.so.6
ELF 7d613000-7d663000 Deferred libnettle.so.8
ELF 7d663000-7d67a000 Deferred libtasn1.so.6
ELF 7d67a000-7d7fe000 Deferred libunistring.so.2
ELF 7d7fe000-7d854000 Deferred libidn2.so.0
ELF 7d854000-7da75000 Deferred libgnutls.so.30
ELF 7da76000-7da80000 Deferred secur32.so
ELF 7da80000-7da92000 Deferred libresolv.so.2
ELF 7da92000-7da97000 Deferred dnsapi.so
ELF 7da97000-7da9d000 Deferred crypt32.so
ELF 7da9d000-7daa8000 Deferred bcrypt.so
ELF 7daca000-7dad2000 Deferred libxfixes.so.3
ELF 7dad2000-7dadf000 Deferred libxcursor.so.1
ELF 7dbdf000-7dbf4000 Deferred libxi.so.6
ELF 7dbf4000-7dc03000 Deferred libxrandr.so.2
ELF 7dd8d000-7dd94000 Deferred ws2_32.so
ELF 7dd94000-7dd99000 Deferred libxcomposite.so.1
ELF 7dd99000-7dda7000 Deferred libxrender.so.1
ELF 7dda7000-7ddaf000 Deferred libxxf86vm.so.1
ELF 7ddaf000-7ddb6000 Deferred libxdmcp.so.6
ELF 7ddb6000-7dde4000 Deferred libxcb.so.1
ELF 7dde4000-7df37000 Deferred libx11.so.6
ELF 7df37000-7df4d000 Deferred libxext.so.6
ELF 7df75000-7e001000 Deferred winex11.so
ELF 7e374000-7e3a4000 Deferred libexpat.so.1
ELF 7e3a4000-7e3f6000 Deferred libfontconfig.so.1
ELF 7e3f6000-7e495000 Deferred libpcre2-8.so.0
ELF 7e495000-7e5ec000 Deferred libglib-2.0.so.0
ELF 7e5ec000-7e615000 Deferred libgraphite2.so.3
ELF 7e615000-7e735000 Deferred libharfbuzz.so.0
ELF 7e735000-7e74e000 Deferred libz.so.1
ELF 7e74e000-7e78b000 Deferred libpng16.so.16
ELF 7e78b000-7e79e000 Deferred libbz2.so.1
ELF 7e79e000-7e86a000 Deferred libfreetype.so.6
ELF 7e86a000-7e86f000 Deferred libxinerama.so.1
ELF 7e892000-7e9ff000 Deferred win32u.so
ELF 7e9ff000-7eb87000 Dwarf libwine.so.1
ELF f7b21000-f7bf1000 Deferred libm.so.6
ELF f7bf1000-f7c08000 Deferred libunwind.so.8
ELF f7c08000-f7cd2000 Deferred ntdll.so
ELF f7cd2000-f7ee8000 Deferred libc.so.6
ELF f7ee9000-f7eee000 Deferred libxau.so.6
ELF f7f12000-f7f46000 Deferred ld-linux.so.2
Threads:
process tid prio name (all IDs are in hex)
00000038 services.exe
0000003c 0
00000040 0 wine_rpcrt4_server
0000004c 0 wine_rpcrt4_io
00000050 0 wine_threadpool_worker
00000064 0 wine_rpcrt4_io
00000084 0 wine_rpcrt4_io
0000009c 0 wine_rpcrt4_io
000000bc 0 wine_rpcrt4_io
000000d8 0 wine_threadpool_timerqueue
00000100 0 wine_rpcrt4_io
00000044 svchost.exe
00000048 0
00000054 0
00000058 0 wine_sechost_service
0000005c winedevice.exe
00000060 0
00000068 0
0000006c 0 wine_sechost_service
00000070 0
00000074 0
00000078 0
000000d0 0
00000214 0 wine_threadpool_worker
0000007c winedevice.exe
00000080 0
00000088 0
0000008c 0 wine_sechost_service
00000090 0
00000094 0
000000b4 0
000000b8 0
000000a4 plugplay.exe
000000a8 0
000000c0 0
000000c4 0 wine_sechost_service
000000c8 0 wine_rpcrt4_server
000000cc 0 wine_rpcrt4_io
000000d4 0 wine_threadpool_worker
000000ac explorer.exe
000000b0 0
000000e4 0
000000f8 0 wine_rpcrt4_server
000000f0 rpcss.exe
000000f4 0
00000108 0
0000010c 0 wine_sechost_service
00000110 0 wine_rpcrt4_server
00000114 0 wine_rpcrt4_server
0000011c 0 wine_threadpool_worker
00000120 0 wine_rpcrt4_io
0000023c 0 wine_rpcrt4_io
00000124 conhost.exe
00000128 0
000001f0 (D) C:\Program Files\Battle.net\Battle.net.exe
["C:\Program Files\Battle.net\Battle.net.exe" --type=gpu-process --field-trial-handle=1052,695155895635239984,7821540618177018310,131072 --enable-features=CastMediaRouteProvider --disable-features=HardwareMediaKeyHandling,OutOfBlinkCors --no-sandbox --log-file="C:\users\chris\Local Settings\Application Data\Battle.net\Logs\libcef-20230209T182830.807073.log" --log-severity=error --product-version="Battle.net/2.17.0.13960 (retail) Chrome/83.0.4103.106" --lang=fr --watch-browser-pid=300 --gpu-preferences=MAAAAAAAAADgAAAwAAAAAAAAAAAAAAAAAA
BgAAAAAAAQAAAAAAAAAAAAAAAAAAAAK
AAAAAQAAAAgAAAAAAAAACgAAAAAAAAA
MAAAAAAAAAA4AAAAAAAAABAAAAAAAAA
AAAAAAAUAAAAQAAAAAAAAAAAAAAAGAA
AAEAAAAAAAAAABAAAABQAAABAAAAAAA
AAAAQAAAAYAAAA= --log-file="C:\users\chris\Local Settings\Application Data\Battle.net\Logs\libcef-20230209T182830.807073.log" --mojo-platform-channel-handle=1056 /prefetch:2 --battle-net-helper=Battle.net.13960]
000001f4 1 <== CrGpuMain
00000210 0 BrokerEvent
0000021c 0 GpuWatchdog
00000228 0
0000022c explorer.exe
00000230 0
00000234 0
00000238 0 wine_rpcrt4_server
System information:
Wine build: wine-8.1 (Staging)
Platform: i386 (WOW64)
Version: Windows 7
Host system: Linux
Host version: 5.15.88-gentooCode: Select all
0110:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0060E5F8 1 C) semi-stub
0110:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0060E5EC 1 C) semi-stub
0110:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0060E5F8 1 C) semi-stub
0110:fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0060E624 1 C) semi-stub
0110:fixme:advapi:OpenEventLogW ((null),L"System") stub
0110:fixme:advapi:ReadEventLogA (CAFE4242,0x00000009,0x00000000,01012590,0x00010000,0060E6D8,0060E6DC) stub
0110:fixme:advapi:CloseEventLog (CAFE4242) stub
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application
may fix this problem.
0110:err:seh:NtRaiseException Unhandled exception code c0000409 flags 1 addr 0x1a943f1

Code: Select all
D:\BuildServer\B\work\DedicatedCheckout\Engine\Source\ShaderEffect\ShaderEffect.cpp(341) : error 139: ERROR #139 (0x8512008b) Informational assertion failure!Code: Select all
010c:fixme:d3d:wined3d_guess_card_vendor Received unrecognized GL_VENDOR "AMD".
Returning HW_VENDOR_NVIDIA.

Code: Select all
0228:fixme:d3d:wined3d_context_gl_bind_shader_resources Shader 00007F1C7608EA90 needs 17 samplers, but only 16 are supported.
As told here the patch worked for me with app-emulation/wine-staging-8.21:eccerr0r wrote:Well, looks like I'm locked out....or anyone have b.net launcher able to patch their WoW client now? Crashes...
Code: Select all
$ cat /etc/portage/patches/app-emulation/wine-staging/wine_battlenet-bug.patch
diff -ur wine-8.21.orig/dlls/kernelbase/memory.c wine-8.21/dlls/kernelbase/memory.c
--- wine-8.21.orig/dlls/kernelbase/memory.c 2023-11-24 17:48:09.000000000 -0400
+++ wine-8.21/dlls/kernelbase/memory.c 2023-12-30 15:23:20.006017623 -0400
@@ -481,7 +481,9 @@
*/
BOOL WINAPI DECLSPEC_HOTPATCH VirtualProtect( void *addr, SIZE_T size, DWORD new_prot, DWORD *old_prot )
{
- return VirtualProtectEx( GetCurrentProcess(), addr, size, new_prot, old_prot );
+ BOOL ret = VirtualProtectEx( GetCurrentProcess(), addr, size, new_prot, old_prot );
+ if (*old_prot == PAGE_WRITECOPY) *old_prot = PAGE_READWRITE;
+ return ret;
}