http://bugs.winehq.org/show_bug.cgi?id=27426
Summary: Duke Nukem Forever Demo crashes on start Product: Wine Version: 1.3.21 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: austinenglish@gmail.com
Created an attachment (id=35072) --> (http://bugs.winehq.org/attachment.cgi?id=35072) crash dialog
Shows a steam/dnf crash dialog on start, without much info (attached). Also tried the fixed files version, which fails, trying to import kernel32.dll (!). Works under windows, so either a really strange crack, or some new copy protection..
http://bugs.winehq.org/show_bug.cgi?id=27426
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |obfuscation
--- Comment #1 from Austin English austinenglish@gmail.com 2011-06-08 18:23:53 CDT --- Terminal output from Steam version: Setting breakpad minidump AppID = 57940 err:ole:RevokeDragDrop invalid hwnd (nil) Steam_SetMinidumpSteamID: Caching Steam ID: 76561198022188718 [API loaded no] err:ole:RevokeDragDrop invalid hwnd 0x40124 fixme:dbghelp:elf_search_auxv can't find symbol in module
using fixed files: fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.CRT" (9.0.21022.8) err:module:import_dll Loading library meqon
... (a ton of blank lines here)
KERNEL32.dll (which is needed by L"Z:\home\austin\Duke Nukem Forever Demo\DKNF DEMO\System\DukeForeverDemo.exe") failed (error c0000106). fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.VC90.CRT" (9.0.21022.8) err:module:LdrInitializeThunk Main exe initialization for L"Z:\home\austin\Duke Nukem Forever Demo\DKNF DEMO\System\DukeForeverDemo.exe" failed, status c0000135
Protection ID info: -=[ ProtectionID v0.6.4.0 JULY]=- (c) 2003-2010 CDKiLLER & TippeX Build 07/08/10-17:57:05 Ready... Scanning -> Z:\home\austin\Duke Nukem Forever Demo\DKNF DEMO\System\DukeForeverDemo.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 1549368 (017A438h) Byte(s) [x] Warning - FileAlignment seems wrong.. is 0x00000200, calculated 0x00000400 -> File has 5176 (01438h) bytes of appended data starting at offset 0179000h [File Heuristics] -> Flag : 00000000000001001100000000100111 (0x0004C027) [!] Safengine Licensor v1.7.2.0 (or newer) detected ! [!] Possible License Protection String -> CheckLicense [CompilerDetect] -> Visual C++ 9.0 (Visual Studio 2008) - Scan Took : 0.775 Second(s)
http://bugs.winehq.org/show_bug.cgi?id=27426
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #2 from Anastasius Focht focht@gmx.net 2011-06-09 01:52:52 CDT --- Hello,
that patched main executable has indeed a strange first import descriptor... Some section names contain "KANXUE" which might point to origins of this "patch".
--- snip --- ->Import Table 1. ImageImportDescriptor: OriginalFirstThunk: 0x0017532D TimeDateStamp: 0x00000000 (GMT: Thu Jan 01 00:00:00 1970) ForwarderChain: 0x00000000 Name: 0x00172000 ("meqon
KERNEL32.dll") FirstThunk: 0x001722F6
Ordinal/Hint API name ------------ --------------------------------------- 0x0000 "??0Support@RBConvexPolyhedronGeometry@meq@@QAE@XZ
<lots of repeated LF+CR characters>
<garbage>
2. ImageImportDescriptor: OriginalFirstThunk: 0x0017846A TimeDateStamp: 0x00000000 (GMT: Thu Jan 01 00:00:00 1970) ForwarderChain: 0x00000000 Name: 0x00172105 ("KERNEL32.dll") FirstThunk: 0x000121EC
Ordinal/Hint API name ------------ --------------------------------------- 0x0000 "IsDebuggerPresent" 0x0000 "InterlockedExchange" 0x0000 "Sleep" ... --- snip ---
Hex view of that data:
--- snip --- $ xxd -g4 -s 0x171400 -l 400 DukeForeverDemo.exe 0171400: 6d65716f 6e0d0a0d 0a0d0a0d 0a0d0a0d meqon........... 0171410: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171420: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171430: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171440: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171450: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171460: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171470: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171480: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171490: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 01714a0: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 01714b0: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 01714c0: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 01714d0: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 01714e0: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 01714f0: 0a0d0a0d 0a0d0a0d 0a0d0a0d 0a0d0a0d ................ 0171500: 0a0d0a0d 0a4b4552 4e454c33 322e646c .....KERNEL32.dl 0171510: 6c005553 45523332 2e646c6c 00646e41 l.USER32.dll.dnA 0171520: 6e696d61 74696f6e 2e646c6c 00334452 nimation.dll.3DR 0171530: 44656275 674c6962 2e646c6c 006d6571 DebugLib.dll.meq 0171540: 6f6e2e64 6c6c0042 75674861 6e646c65 on.dll.BugHandle --- snip ---
The Windows loader probably treats this as invalid descriptor (= ignores any parts of it). That "meqon.dll" is also referenced by other imports/dlls which have a valid import descriptor for it, hence the problem will fix itself at later time. Wine loader might be too strict here ...
Can you "profile" that executable using "Dependency Walker" (http://www.dependencywalker.com/) under Windows? It should show how this entry is handled...
Regards
http://bugs.winehq.org/show_bug.cgi?id=27426
--- Comment #3 from Austin English austinenglish@gmail.com 2011-06-09 10:17:51 CDT --- Created an attachment (id=35080) --> (http://bugs.winehq.org/attachment.cgi?id=35080) terminal output
Jerome L suggested trying -nobreakpad, so I did: austin@aw21 ~/.wine-dnf/drive_c/Program Files/Steam $ WINEPREFIX=~/.wine-dnf/ wine Steam.exe -login user pass -applaunch 57940 -nobreakpad
which gets the usual crash, then 'finishing installation', and the game attempts to launch, this time giving a backtrace..though the crash is in the game's executable :-.
http://bugs.winehq.org/show_bug.cgi?id=27426
--- Comment #4 from Austin English austinenglish@gmail.com 2011-06-09 10:54:13 CDT --- Created an attachment (id=35081) --> (http://bugs.winehq.org/attachment.cgi?id=35081) profiling
Ran it from a network share from Linux under qemu/win7, which 'works' (pops up an error about graphics not being sufficient, but the exe itself loads).
Under profiling, pops up an error dialog titled Kanuxe, with some Chinese characters (not sure what it says, I don't read Mandarin ;-)).
I've attached the log up until that point, let me know if you'd like something else :).
http://bugs.winehq.org/show_bug.cgi?id=27426
--- Comment #5 from Anastasius Focht focht@gmx.net 2011-06-09 16:14:00 CDT --- Hello,
I think you are mixing two issues in this bug, one with the steam version and one with the patch. Split these into separate bugs. For the steam one provide relay log.
The bad import descriptor one (patched demo) needs relaxing in Wine loader.
Regards
http://bugs.winehq.org/show_bug.cgi?id=27426
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |loader Summary|Duke Nukem Forever Demo |Duke Nukem Forever Demo |crashes on start |crashes on start (when | |using fixed files), needs | |relaxed loader
--- Comment #6 from Austin English austinenglish@gmail.com 2011-06-09 16:29:19 CDT --- (In reply to comment #5)
Hello,
I think you are mixing two issues in this bug, one with the steam version and one with the patch. Split these into separate bugs. For the steam one provide relay log.
The bad import descriptor one (patched demo) needs relaxing in Wine loader.
Regards
Sure, see bug 27435. Thanks for looking!
http://bugs.winehq.org/show_bug.cgi?id=27426
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #35080|0 |1 is obsolete| |
--- Comment #7 from Austin English austinenglish@gmail.com 2011-06-09 16:29:33 CDT --- (From update of attachment 35080) Steam, unrelated to this bug.
http://bugs.winehq.org/show_bug.cgi?id=27426
Luke Bratch l_bratch@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |l_bratch@yahoo.co.uk
http://bugs.winehq.org/show_bug.cgi?id=27426
Roland Haeder roland@mxchange.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |roland@mxchange.org
--- Comment #8 from Roland Haeder roland@mxchange.org 2011-07-24 15:08:57 CDT --- I still have a crash with latest wine from GIT but no crash dialog shows up, it crashes in d3ddrv.dll (which comes with DNF) and even when I install DirectX 9.x with winetricks. So far (after a new install and long download time ...) I have installed these packages:
----------------------------- $ WINEPREFIX=~/.wine-dnf/ ./winetricks list-installed corefonts dinput8 gecko120 -----------------------------
The bug says: ----------------------------- wine: Unhandled page fault on read access to 0x00000000 at address 0x7da29a6 (thread 0009) -----------------------------
I have also noticed that the "splash screen" (the one with the wavefy American flag in background) didn't disappear after the game tries to open another OpenGL window. So it might not be Wine-related?
http://bugs.winehq.org/show_bug.cgi?id=27426
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello folks,
resolving 'invalid'.
If you can point to an unmodified executable from a commercial app/game that exhibits a similar problem with such malformed import descriptor(s) you might reopen it.
No legitimate reason trying to support such stuff ... and to be honest - there would be nothing to fix if these guys would have done their job correctly.
Regards
http://bugs.winehq.org/show_bug.cgi?id=27426
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #10 from Austin English austinenglish@gmail.com --- Closing.