https://bugs.winehq.org/show_bug.cgi?id=41258
Bug ID: 41258 Summary: Paragon crashes in loading screen Product: Wine Version: 1.9.18 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: plata@mailbox.org Distribution: ---
Created attachment 55555 --> https://bugs.winehq.org/attachment.cgi?id=55555 Debug output
Paragon first freezes, then crashes in the loading screen.
https://bugs.winehq.org/show_bug.cgi?id=41258
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #1 from fjfrackiewicz@gmail.com --- (In reply to plata from comment #0)
Created attachment 55555 [details] Debug output
Paragon first freezes, then crashes in the loading screen.
Sounds like you have the same bug that affects other Unreal Engine 4 games: https://bugs.winehq.org/show_bug.cgi?id=40925
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #2 from plata@mailbox.org --- (In reply to fjfrackiewicz from comment #1)
(In reply to plata from comment #0)
Created attachment 55555 [details] Debug output
Paragon first freezes, then crashes in the loading screen.
Sounds like you have the same bug that affects other Unreal Engine 4 games: https://bugs.winehq.org/show_bug.cgi?id=40925
Might very well be the case.
https://bugs.winehq.org/show_bug.cgi?id=41258
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #3 from winetest@luukku.com --- (In reply to plata from comment #2)
(In reply to fjfrackiewicz from comment #1)
(In reply to plata from comment #0)
Created attachment 55555 [details] Debug output
Paragon first freezes, then crashes in the loading screen.
Sounds like you have the same bug that affects other Unreal Engine 4 games: https://bugs.winehq.org/show_bug.cgi?id=40925
Might very well be the case.
The other bug is now marked fixed. Can you test wine-git or next release 1.9.23 (not out yet)?
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #4 from plata@mailbox.org --- With 1.9.23 I get: LogWindows:Error: Assertion failed: Count >= 0 [File:d:\build++orion+release-34+compile\sync\engine\source\runtime\core\public\Containers/UnrealString.h] [Line: 1151]
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #5 from fjfrackiewicz@gmail.com --- (In reply to plata from comment #4)
With 1.9.23 I get: LogWindows:Error: Assertion failed: Count >= 0 [File:d:\build++orion+release- 34+compile\sync\engine\source\runtime\core\public\Containers/UnrealString.h] [Line: 1151]
Do you have the full terminal output?
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #6 from plata@mailbox.org --- Created attachment 56112 --> https://bugs.winehq.org/attachment.cgi?id=56112 UnrealString Error (Assertion failed: Count >= 0)
https://bugs.winehq.org/show_bug.cgi?id=41258
plata@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |plata@mailbox.org
https://bugs.winehq.org/show_bug.cgi?id=41258
plata@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Paragon crashes in loading |UE4 applications crash with |screen |"Assertion failed: Count >= | |0" (Epic Games Launcher, | |Paragon)
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #7 from plata@mailbox.org --- This error is now also occurring for Epic Games Launcher. I think that it has been introduced by a certain UE4 version.
https://bugs.winehq.org/show_bug.cgi?id=41258
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |xerox_xerox2000@yahoo.co.uk Keywords| |download URL| |https://download.epicgames. | |com/Builds/UnrealEngineLaun | |cher/Installers/EpicGamesLa | |uncherInstaller-2.12.25-334 | |3384.msi?response-content-d | |isposition=attachment;filen | |ame=EpicGamesLauncherInstal | |ler-2.12.25-3343384.msi&cac | |hekey=fixedkey
--- Comment #8 from Louis Lenders xerox_xerox2000@yahoo.co.uk --- Confirming and added downloadlink. First I thought it was bug in msctf but native doesn`t help, and I can`t figure out where the crash comes from.
sha1sum EpicGamesLauncherInstaller-2.12.25-3343384.msi 2ead9f59ada665ce460864ccb3b1a83178c5b026 EpicGamesLauncherInstaller-2.12.25-3343384.msi
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #9 from winetest@luukku.com --- Tried Epic Launcher from bug 40376 against wine-staging 2.6. And this bug is still valid.
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #10 from Louis Lenders xerox_xerox2000@yahoo.co.uk --- I tried it also again, as a guess it might be a consequence of EnumDisplayDevices or EnumDisplayMonitors returning wrong stuff.
I tried very poor and sad hack below, and it seems to get a tiny bit further, to crash in d3d11. I cannot run any d3d11 things because of my poor GPU, so maybe someone else with better computer could try the hack to see what happens;
diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c index fa0502e..50644fd 100644 --- a/dlls/user32/misc.c +++ b/dlls/user32/misc.c @@ -290,7 +290,7 @@ BOOL WINAPI EnumDisplayDevicesW( LPCWSTR lpDevice, DWORD i, LPDISPLAY_DEVICEW lp { FIXME("(%s,%d,%p,0x%08x), stub!\n",debugstr_w(lpDevice),i,lpDisplayDevice,dwFlags);
- if (i) + return FALSE;
memcpy(lpDisplayDevice->DeviceName, primary_device_name, sizeof(primary_device_name));
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #11 from winetest@luukku.com --- Created attachment 58042 --> https://bugs.winehq.org/attachment.cgi?id=58042 log with the hack
To me it looks like that the issue is now some shader related
fixme:d3d11:shader_extract_from_dxbc Failed to parse shader, hr 0x80070057.
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #12 from Louis Lenders xerox_xerox2000@yahoo.co.uk --- Created attachment 58043 --> https://bugs.winehq.org/attachment.cgi?id=58043 sad and poor and completely wrong hacks, only to pinpoint the bug
@wineluukku: I got that too, but i`m now able to get the window up with the poor hacks from the attachments (which are quite wrong, but the app starts to run)
I used LIBGL_ALWAYS_SOFTWARE=1 wine EpicGamesLauncher.exe and also set the registrykey MaxVersionGL to 30002 (hexadecimal)
With the hacks the launcher starts to download things but than fails, apparently because .NET is not installed. Needs further testing.
AFAICT three bugs to solve:
1. EnumDisplayMonitors (or the like) might return wrong stuff? 2. Undocumented IsThreadDesktopComposited needs stubbed e. Undocumented SetWindowCompositionAttribute needs stubbed
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #13 from Louis Lenders xerox_xerox2000@yahoo.co.uk --- A last remark: the stubs for undocumented are apparently not needed. I didn`t install in a clean wineprefix, after installing in a clean wine-prefix only hack from comment 10 is needed.
After installing dotnet20 I got the login-window up using wine-staging (+hack), in vanilla wine it doesnt run
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #14 from winetest@luukku.com --- Fresh wineprefix this time, worked around bug 38648. Used wine-2.6-git with the hack mentioned before from this bug report. And Now I am able to see a launcher too and it's updating files.
This bug also exposed bug 40873 and bug 41173.
Didnt try to push it further with the staging patches.
Louis could you do something about bugs bug 41172 and bug 40376. There is no need to reinvet the wheel over and over again. Wasting everyone's time.
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #15 from plata@mailbox.org --- @Louis Lenders regarding D3D11: did you try to run with "-OpenGL"? Before this bug occurred, I used the parameters "-OpenGL -SkipBuildPatchPrereq".
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #16 from Louis Lenders xerox_xerox2000@yahoo.co.uk --- (In reply to plata from comment #15)
@Louis Lenders regarding D3D11: did you try to run with "-OpenGL"? Before this bug occurred, I used the parameters "-OpenGL -SkipBuildPatchPrereq".
Hi, I didn`t try that. The loginwindow worked with the command i used; I guess if you want to play a game one can use the parameters you provided(?) Anyway, first this crash has to be fixed properly to get progress in this bugreport
https://bugs.winehq.org/show_bug.cgi?id=41258
Yujiang Wang alaniwbft@outlook.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alaniwbft@outlook.com
--- Comment #17 from Yujiang Wang alaniwbft@outlook.com --- After debugging with my UE4 build, I found the bug is related to EnumDisplayDevicesW:
The engine uses an ugly way to get the device name for monitors. It extracts the name from the device id by finding a second backslash starting from position 8: Engine\Source\Runtime\Core\Private\Windows\WindowsApplication.cpp: GetMonitorsInfo: 611 Info.ID = FString::Printf(TEXT("%s"), Monitor.DeviceID); Info.Name = Info.ID.Mid (8, Info.ID.Find (TEXT("\"), ESearchCase::CaseSensitive, ESearchDir::FromStart, 9) - 8);
The Monitor.DeviceID comes from EnumDisplayDevices(DisplayDevice.DeviceName, MonitorIndex, &Monitor, 0)
On Windows, Monitor.DeviceID is set to something like: MONITOR\HWP3183{4d36e96e-e325-11ce-bfc1-08002be10318}\0001 while wine set it to: MONITOR\WINE0000
Clearly we can see there is no second backslash to be found, thus causing a crash.
The device id is defined at:
wine-staging/patches/gdi32-MultiMonitor/0003-user32-Implement-EnumDisplayDevicesW-based-on-EnumDi.patch: 29 +static const WCHAR display_device_deviceid[] = {'M','O','N','I','T','O','R','\','W','I','N','E','%','0','4','d',0};
I changed it by just adding a backslash:
+static const WCHAR display_device_deviceid[] = {'M','O','N','I','T','O','R','\','W','I','N','E','%','0','4','d','\',0};
Now the engine gets through. Maybe we can fake a guid here to get more robustness?
I also prepared a minimal unreal engine 4 project build for you: (UE4 master branch 4.17 2017-05-22 VS2015 Windows 10) https://www.dropbox.com/s/2g2tl7gz7bsiop5/WineTest.7z?dl=0 This build comes along with pdb files. I think it will be useful for you.
Good luck!
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #18 from Yujiang Wang alaniwbft@outlook.com --- Note: This build has fixed the EnumDisplayDevicesW bug on the engine side, so you can concentrate on the shader part.
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #19 from Yujiang Wang alaniwbft@outlook.com --- I found that the minimal build had some issues preventing it from exiting properly, here is a new one: https://www.dropbox.com/sh/qftun3xt2ot03uj/AADImWPP8B47-CFOB0V97CPTa?dl=0
https://bugs.winehq.org/show_bug.cgi?id=41258
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/gdi32-MultiMon | |itor CC| |dmitry@baikal.ru, | |erich.e.hoover@wine-staging | |.com, michael@fds-team.de, | |sebastian@fds-team.de Status|NEW |STAGED
https://bugs.winehq.org/show_bug.cgi?id=41258
Amosar maxi.cass11@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maxi.cass11@gmail.com
--- Comment #20 from Amosar maxi.cass11@gmail.com --- Created attachment 59344 --> https://bugs.winehq.org/attachment.cgi?id=59344 wine 2.18 terminal Output
https://bugs.winehq.org/show_bug.cgi?id=41258
Amosar maxi.cass11@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #59344|0 |1 is obsolete| |
--- Comment #21 from Amosar maxi.cass11@gmail.com --- Created attachment 60353 --> https://bugs.winehq.org/attachment.cgi?id=60353 wine 3.0 terminal output
Still present on 3.0
https://bugs.winehq.org/show_bug.cgi?id=41258
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
https://bugs.winehq.org/show_bug.cgi?id=41258
winetaste@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetaste@gmx.net
https://bugs.winehq.org/show_bug.cgi?id=41258
redg3ar@airmail.cc changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |redg3ar@airmail.cc
https://bugs.winehq.org/show_bug.cgi?id=41258
DenTaKu dentaku@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dentaku@web.de
--- Comment #22 from DenTaKu dentaku@web.de --- Still present in Wine 3.5 (new wineconfig, WINEARCH=win32):
------------------ $ WINEPREFIX=/Wine/wineFortnite wine "/Daten/Programme/Emulation/Wine/wineFortnite/drive_c/Program Files/Epic Games/Launcher/Portal/Binaries/Win32/EpicGamesLauncher.exe" -SkipBuildPatchPrereq -OpenGL 0032:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x2d27c0, 0x2e0030, 0x2e0048) stub. 0032:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x2d2540, 43) stub 0032:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub 0032:fixme:win:EnumDisplayDevicesW ((null),0,0x1e6f584,0x00000000), stub! 0032:fixme:win:DisableProcessWindowsGhosting : stub 0032:fixme:msctf:ThreadMgrSource_AdviseSink (0x6754370) Unhandled Sink: {b246cb75-a93e-4652-bf8c-b3fe0cfd7e57} LogWindowsTextInputMethodSystem: Error: Initialization failed while advising the language notification sink to the TSF source. (0x80004001) 0032:fixme:win:EnumDisplayDevicesW ((null),0,0x1e6f4ec,0x00000000), stub! 0032:fixme:win:EnumDisplayDevicesW (L"\\.\DISPLAY1",0,0x1e6f834,0x00000000), stub! 0038:fixme:dbghelp:elf_search_auxv can't find symbol in module 004a:fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x2d27c0, 0x2e0030, 0x2e0048) stub. 004a:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x2d2540, 43) stub 004a:fixme:win:DisableProcessWindowsGhosting : stub 004a:fixme:msctf:ThreadMgrSource_AdviseSink (0x5d0cb60) Unhandled Sink: {b246cb75-a93e-4652-bf8c-b3fe0cfd7e57} 004a:fixme:win:EnumDisplayDevicesW ((null),0,0x16ff498,0x00000000), stub! 004a:fixme:win:EnumDisplayDevicesW (L"\\.\DISPLAY1",0,0x16ff7e0,0x00000000), stub! LogWindows: Error: === Critical error: === LogWindows: Error: LogWindows: Error: Assertion failed: Count >= 0 [File:D:\Build++Portal+Release-Next+Compile\Sync\Engine\Source\Runtime\Core\Public\Containers/UnrealString.h] [Line: 1167] LogWindows: Error: LogWindows: Error: LogWindows: Error: LogWindows: Error: 0x000000007B43CC3C LogWindows: Error: 0x000000000059EB30 LogWindows: Error: 0032:fixme:ver:GetCurrentPackageId (0x1e6fe1c (nil)): stub 0032:fixme:ntdll:EtwEventUnregister (deadbeef) stub.
------------------
https://bugs.winehq.org/show_bug.cgi?id=41258
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=41258
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/gdi32-MultiMon |er/patches/gdi32-MultiMonit |itor |or CC| |nerv@dawncrow.de
https://bugs.winehq.org/show_bug.cgi?id=41258
--- Comment #23 from plata@mailbox.org --- Still failing in 3.20. Any plans when a fix will be available in devel?
https://bugs.winehq.org/show_bug.cgi?id=41258
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |792521f33b2786cb100cb202dcb | |4181a579ef3b3 Resolution|--- |FIXED Status|STAGED |RESOLVED
--- Comment #24 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Marking as fixed. https://source.winehq.org/git/wine.git/?a=commit;h=792521f33b2786cb100cb202d...
https://bugs.winehq.org/show_bug.cgi?id=41258
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #25 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.16.