Cannot launch BG3 with err:sync:RtlpWaitForCriticalSection error

Questions about Wine on Linux
Post Reply
thejoy5
Newbie
Newbie
Posts: 1
Joined: Sat May 25, 2024 3:28 pm

Cannot launch BG3 with err:sync:RtlpWaitForCriticalSection error

Post by thejoy5 »

Hello everyone,

I'm hitting walls trying to play Baldur's Gate 3 and since Steam is not working, I'm giving a shot at Wine and so far, it's been the best compared to Lutris, Bottles, Steam with Proton-GE and all. With Wine, I can launch the game but it ends up being stuck at 67% showing this error message:

Code: Select all

[kin@kin-alien] ~/.steam/steam/steamapps/common/Baldurs Gate 3/bin>  > WINEPATH=/home/kin/.local/share/Steam/steamapps/compatdata/1091500/pfx/drive_c/windows/system32/ wine bg3.exe
002c:fixme:winediag:loader_init wine-staging 9.9 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
0120:fixme:file:NtLockFile I/O completion on lock not implemented yet
0120:fixme:combase:RoGetActivationFactory (L"Windows.Gaming.Input.RawGameController", {eb8d0792-e95a-4b19-afc7-0a59f8bf759e}, 00006FFFFBE0E3F0): semi-stub
0120:fixme:combase:RoGetActivationFactory (L"Windows.Gaming.Input.ArcadeStick", {5c37b8c8-37b1-4ad8-9458-200f1a30018e}, 00006FFFFBE0E3F8): semi-stub
0120:fixme:combase:RoGetActivationFactory (L"Windows.Gaming.Input.FlightStick", {5514924a-fecc-435e-83dc-5cec8a18a520}, 00006FFFFBE0E408): semi-stub
0120:fixme:combase:RoGetActivationFactory (L"Windows.Gaming.Input.Gamepad", {8bbce529-d49c-39e9-9560-e47dde96b7c8}, 00006FFFFBE0E410): semi-stub
0120:fixme:combase:RoGetActivationFactory (L"Windows.Gaming.Input.RacingWheel", {3ac12cd5-581b-4936-9f94-69f1e6514c7d}, 00006FFFFBE0E420): semi-stub
0120:fixme:win:RegisterTouchWindow hwnd 0000000000010082, flags 0x3 stub!
0120:fixme:imm:NotifyIME himc 000000000001006E, action 0x11, index 0, value 0 stub!
0158:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006BC6FF80 0000000000000000): stub
0160:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006BE6FF80 0000000000000000): stub
015c:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006BD6FF80 0000000000000000): stub
0164:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006BF6FF80 0000000000000000): stub
0168:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C06FF80 0000000000000000): stub
0170:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C26FF80 0000000000000000): stub
016c:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C16FF80 0000000000000000): stub
0174:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C36FF80 0000000000000000): stub
0178:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C46FF80 0000000000000000): stub
017c:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C56FF80 0000000000000000): stub
0180:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C66FF80 0000000000000000): stub
0184:fixme:thread:SetThreadIdealProcessorEx (FFFFFFFFFFFFFFFE 000000006C76FF80 0000000000000000): stub
0120:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
018c:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 000000006D30F334, 000000006D30F350 000000006D30F330
018c:fixme:nls:get_dummy_preferred_ui_language (0x38 0x409 000000006D30F334 000000006D30F350 000000006D30F330) returning a dummy value (current locale)
018c:fixme:nls:RtlGetThreadPreferredUILanguages 00000038, 000000006D30F2F4, 000000006D30F310 000000006D30F2F0
018c:fixme:nls:get_dummy_preferred_ui_language (0x38 0x409 000000006D30F2F4 000000006D30F310 000000006D30F2F0) returning a dummy value (current locale)
0120:fixme:imm:NotifyIME himc 000000000001006E, action 0x11, index 0, value 0 stub!
018c:fixme:explorerframe:taskbar_list_SetProgressState iface 000000000120F6F0, hwnd 0000000000010082, flags 1 stub!
018c:fixme:explorerframe:taskbar_list_SetProgressValue iface 000000000120F6F0, hwnd 0000000000010082, ullCompleted 5, ullTotal 64 stub!
0170:err:virtual:virtual_setup_exception stack overflow 2176 bytes addr 0x6fffffc71820 stack 0x6c170780 (0x6c170000-0x6c171000-0x6c270000)
0184:err:sync:RtlpWaitForCriticalSection section 000000006B5D47D0 "?" wait timed out in thread 0184, blocked by 0170, retrying (60 sec)
0180:err:sync:RtlpWaitForCriticalSection section 000000006B5D47D0 "?" wait timed out in thread 0180, blocked by 0170, retrying (60 sec)
0174:err:sync:RtlpWaitForCriticalSection section 000000006B5D47D0 "?" wait timed out in thread 0174, blocked by 0170, retrying (60 sec)
017c:err:sync:RtlpWaitForCriticalSection section 000000006B5D47D0 "?" wait timed out in thread 017c, blocked by 0170, retrying (60 sec)
0178:err:sync:RtlpWaitForCriticalSection section 000000006B5D47D0 "?" wait timed out in thread 0178, blocked by 0170, retrying (60 sec)
I've been using Winetricks to install that mfc40 dll :

Code: Select all

./winetricks mfc40
When I strace the process above, here's what I get:

Code: Select all

[pid 28107] readlink("/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data", 0x1019fce90, 4096) = -1 EINVAL (Invalid argument)
[pid 28107] newfstatat(AT_FDCWD, "/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak", {st_mode=S_IFREG|0755, st_size=49370362, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid 28107] newfstatat(AT_FDCWD, "/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak", {st_mode=S_IFREG|0755, st_size=49370362, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid 28107] getxattr("/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak", "user.DOSATTRIB", 0x1019fe8b0, 64) = -1 ENODATA (No data available)
[pid 28107] newfstatat(AT_FDCWD, "/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak", {st_mode=S_IFREG|0755, st_size=49370362, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid 28107] rt_sigprocmask(SIG_BLOCK, [HUP INT USR1 USR2 ALRM CHLD IO], [], 8) = 0
[pid 28107] writev(223, [{iov_base="+\0\0\0;\1\0\0\0\0\0\0\200\0\20\200\1\0\0\0\1\0\0\0`\0\0\0\200\0\0\0"..., iov_len=64}, {iov_base="\0\0\0\0@\0\0\0\0\0\0\0\270\0\0\0\\\0?\0?\0\\\0Z\0:\0\\\0h\0"..., iov_len=200}, {iov_base="/home/kin/.wine/dosdevices/z:/ho"..., iov_len=115}], 3) = 379
[pid 27998] <... epoll_wait resumed>[{events=EPOLLIN, data={u32=451, u64=451}}], 128, 1) = 1
[pid 28107] read(222,  <unfinished ...>
[pid 27998] read(463, "+\0\0\0;\1\0\0\0\0\0\0\200\0\20\200\1\0\0\0\1\0\0\0`\0\0\0\200\0\0\0"..., 64) = 64
[pid 27998] read(463, "\0\0\0\0@\0\0\0\0\0\0\0\270\0\0\0\\\0?\0?\0\\\0Z\0:\0\\\0h\0"..., 315) = 315
[pid 27998] newfstatat(AT_FDCWD, "/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak", {st_mode=S_IFREG|0755, st_size=49370362, ...}, AT_SYMLINK_NOFOLLOW) = 0
[pid 27998] openat(AT_FDCWD, "/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak", O_RDONLY|O_NONBLOCK) = 176
[pid 27998] readlink("/home", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.wine", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.wine/dosdevices", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.wine/dosdevices/z:", "/", 1023) = 1
[pid 27998] readlink("/home", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.steam", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.steam/steam", "/home/kin/.local/share/Steam", 1023) = 28
[pid 27998] readlink("/home", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.local", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.local/share", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.local/share/Steam", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.local/share/Steam/steamapps", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.local/share/Steam/steamapps/common", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 27998] readlink("/home/kin/.local/share/Steam/steamapps/common/Baldurs Gate 3", 0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 28026] <... clock_nanosleep resumed>0x1005fe900) = 0
[pid 27998] readlink("/home/kin/.local/share/Steam/steamapps/common/Baldurs Gate 3/Data",  <unfinished ...>
[pid 28026] poll([{fd=36, events=POLLIN}], 1, 0 <unfinished ...>
[pid 27998] <... readlink resumed>0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 28026] <... poll resumed>)         = 0 (Timeout)
[pid 27998] readlink("/home/kin/.local/share/Steam/steamapps/common/Baldurs Gate 3/Data/Localization",  <unfinished ...>
[pid 28026] poll([{fd=35, events=POLLIN|POLLPRI}], 1, 0 <unfinished ...>
[pid 27998] <... readlink resumed>0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 28026] <... poll resumed>)         = 0 (Timeout)
[pid 28110] <... pselect6 resumed>)     = 0 (Timeout)
[pid 27998] readlink("/home/kin/.local/share/Steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak",  <unfinished ...>
[pid 28110] getrusage(RUSAGE_THREAD,  <unfinished ...>
[pid 28026] poll([{fd=36, events=POLLIN}], 1, 0 <unfinished ...>
[pid 28110] <... getrusage resumed>{ru_utime={tv_sec=0, tv_usec=285353}, ru_stime={tv_sec=1, tv_usec=57729}, ...}) = 0
[pid 27998] <... readlink resumed>0x7fff8eeca850, 1023) = -1 EINVAL (Invalid argument)
[pid 28110] sched_yield( <unfinished ...>
[pid 28026] <... poll resumed>)         = 0 (Timeout)
[pid 27998] newfstatat(176, "",  <unfinished ...>
[pid 28110] <... sched_yield resumed>)  = 0
[pid 28026] poll([{fd=35, events=POLLIN|POLLPRI}], 1, 0 <unfinished ...>
[pid 28110] getrusage(RUSAGE_THREAD,  <unfinished ...>
[pid 27998] <... newfstatat resumed>{st_mode=S_IFREG|0755, st_size=49370362, ...}, AT_EMPTY_PATH) = 0
[pid 28026] <... poll resumed>)         = 0 (Timeout)
It's whining about a VoiceMeta.pak file which is present on the system and I don't get why there's a timeout, tried to tcpdump or netstat to see if there were stuck opened connections but nothing that I've seen.

Code: Select all

ls -l /home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs\ Gate\ 3/Data/Localization/VoiceMeta.pak                                                                             <22:43:01
-rwxr-xr-x 1 kin kin 49370362 May 15 20:00 '/home/kin/.wine/dosdevices/z:/home/kin/.steam/steam/steamapps/common/Baldurs Gate 3/Data/Localization/VoiceMeta.pak'
Have you got any ideas seeing these error messages?

Thanks a lot.

Kieran
Post Reply