http://bugs.winehq.org/show_bug.cgi?id=30990
Bug #: 30990 Summary: diablo 3 battle.net DllMain error Product: Wine Version: 1.5.4 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: cleverca22@gmail.com Classification: Unclassified
Created attachment 40672 --> http://bugs.winehq.org/attachment.cgi?id=40672 debug output
ive been working on fixing Diablo 3 in wine for a week or so now, and ive now narrowed it down to some kind of exception within DllMain, but none of the debug flags tell me what thats calling or why its failing winedbg wont even show that its failing
003e:exception in PE entry point (proc=0x3cb69142,module=0x3c910000,reason=PROCESS_ATTACH,res=(nil)) warn:module:process_attach Initialization of L"battle.net.dll" failed
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #1 from michael bishop cleverca22@gmail.com 2012-06-24 03:40:33 CDT --- Created attachment 40673 --> http://bugs.winehq.org/attachment.cgi?id=40673 minor debug changes to loader.c
WINEDEBUG=trace+relay made it eat cpu for 30 minutes without crashing
i had to trace down the problem by adding prints here and there and following the flow of the code
http://bugs.winehq.org/show_bug.cgi?id=30990
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernel32 |-unknown
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com 2012-06-24 03:47:57 CDT --- You should try with latest dev release 1.5.7 first. Both msvcp90 stubs are implemented now:
--- fixme:msvcp90:locale__Init stub fixme:msvcp90:locale__Getgloballocale stub ---
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #3 from michael bishop cleverca22@gmail.com 2012-06-24 04:08:44 CDT --- 1.5.7 from git just hangs with almost no cpu usage, no crash
i'll see if i can try the D3 patches i was running on 1.5.4
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #4 from michael bishop cleverca22@gmail.com 2012-06-24 04:18:15 CDT --- now its crashing in wine code, same as git master branch, i'll attach a backtrace
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #5 from michael bishop cleverca22@gmail.com 2012-06-24 04:19:34 CDT --- Created attachment 40674 --> http://bugs.winehq.org/attachment.cgi?id=40674 git 1.5.7 plus some of the diablo3 patches for 1.5.4
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com 2012-06-24 04:45:10 CDT --- Ok, so I guess next thing is to try ./winetricks vcrun2008 with git wine with no patches on top. If it will let it run further next thing is to attach +msvcp90,warn+heap,+tid running in clean wineprefix.
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #7 from michael bishop cleverca22@gmail.com 2012-06-24 05:41:15 CDT --- not sure why its different now, but DllMain does run cleanly, and then it gives a new error
wine: Call from 0x7b83ba92 to unimplemented function msvcp90.dll.??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z, aborting Unhandled exception: unimplemented function msvcp90.dll.??0?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@H@Z called in 32-bit code (0x7b83ba92).
i did see some references to the code trying to print to std::err when LoadLibraryW returned null, (stderr was an invalid pointer), but it seems to still be doing it when LoadLibraryW suceeds
i'll try what you said
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #8 from michael bishop cleverca22@gmail.com 2012-06-24 05:55:51 CDT --- progress!, its now giving an error msg saying click to retry creating d3d interface!
i'll attach the log files
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #9 from michael bishop cleverca22@gmail.com 2012-06-24 05:56:39 CDT --- Created attachment 40675 --> http://bugs.winehq.org/attachment.cgi?id=40675 WINEDEBUG=trace+d3d output
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #10 from michael bishop cleverca22@gmail.com 2012-06-24 05:57:03 CDT --- Created attachment 40676 --> http://bugs.winehq.org/attachment.cgi?id=40676 the games own internal debug log
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #11 from Nikolay Sivov bunglehead@gmail.com 2012-06-24 06:04:26 CDT --- So you're saying it does help to install vcrun2008 package?
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #12 from michael bishop cleverca22@gmail.com 2012-06-24 06:58:01 CDT --- yes, latest git version with vcrun2008 gets past the unimplemented function i mentioned, now its just complaining about d3d
"graphics error click to retry creating d3d device click ok to retry"
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com 2012-06-24 07:03:54 CDT --- (In reply to comment #12)
yes, latest git version with vcrun2008 gets past the unimplemented function i mentioned,
Ok, let's make this bug about msvcp90 crash on unimplemented functions from comment 7, that makes it a duplicate of bug 26832.
Am I right you're unable to reproduce a crash from comment 5 any more?
now its just complaining about d3d
"graphics error click to retry creating d3d device click ok to retry"
Open a separate report for that problem.
http://bugs.winehq.org/show_bug.cgi?id=30990
--- Comment #14 from michael bishop cleverca22@gmail.com 2012-06-24 07:16:02 CDT --- i was able to bisect the one from comment 5 to 191cd773202357edce7d27d92fa0c7c160a473be last night but it seems to be fixed now, since it isn't happening in the latest master
i'll add diablo3 to bug 26832 and open another report for the d3d error
http://bugs.winehq.org/show_bug.cgi?id=30990
michael bishop cleverca22@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #15 from michael bishop cleverca22@gmail.com 2012-06-24 07:30:08 CDT --- flagging as a dup
*** This bug has been marked as a duplicate of bug 26832 ***
http://bugs.winehq.org/show_bug.cgi?id=30990
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Austin English austinenglish@gmail.com 2012-06-25 00:43:59 CDT --- Closing.