[Bug 12757] New: Europa Universalis Rome: Crashes on start-up
http://bugs.winehq.org/show_bug.cgi?id=12757 Summary: Europa Universalis Rome: Crashes on start-up Product: Wine Version: 0.9.60 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: cja(a)gmx.net Created an attachment (id=12414) --> (http://bugs.winehq.org/attachment.cgi?id=12414) Start-up print outs of EU Rome - Full game. Both the full Europa Universalis Rome game and demo crashes at start-up. I guess when the main menu is about to be loaded. Both the game and the demo needs the msvcp60.dll in the same directory as the main .exe file and a copy of d3dx9_36.dll in the windows/system32 Probably they also require the videomemory registry variable to be set. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Jonas Aaberg <cja(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #12414|0 |1 is obsolete| | --- Comment #1 from Jonas Aaberg <cja(a)gmx.net> 2008-04-24 11:54:19 --- Created an attachment (id=12442) --> (http://bugs.winehq.org/attachment.cgi?id=12442) EU Rome start up. (Old log was with native d3dx9_36.dll - sorry about that.) This is with wine's d3dx9_36.dll.so: It looks like two functions are missing. -- wine: Call from 0x7ee23620 to unimplemented function d3dx9_36.dll.D3DXCreateFragmentLinker, aborting wine: Call from 0x7ee23620 to unimplemented function d3dx9_36.dll.D3DXCreateFragmentLinkerEx, aborting -- -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Jonas Aaberg <cja(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Jonas Aaberg <cja(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |http://www.gamershell.com/do | |wnload_24442.shtml --- Comment #2 from Jonas Aaberg <cja(a)gmx.net> 2008-04-24 11:58:07 --- The demo of EU Rome shows the same behaviour. It can be downloaded here: http://www.gamershell.com/download_24442.shtml -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |download --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2008-04-25 21:22:41 --- Confirming in git. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #4 from Jonas Aaberg <cja(a)gmx.net> 2008-05-04 08:18:25 --- Still valid for 0.9.61 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Clerc Mathias <tlarhices(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tlarhices(a)gmail.com --- Comment #5 from Clerc Mathias <tlarhices(a)gmail.com> 2008-05-13 01:29:32 --- Also affecting Armed Assault. See : http://forum.winehq.org/viewtopic.php?p=5455 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #6 from Jonas Aaberg <cja(a)gmx.net> 2008-08-08 01:30:29 --- The original error message is gone in wine 1.1.2, but the game still crashes at start-up. Attaching new log with WINEDEBUG=+d3d,+d3d9 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #7 from Jonas Aaberg <cja(a)gmx.net> 2008-08-08 01:33:09 --- Created an attachment (id=15344) --> (http://bugs.winehq.org/attachment.cgi?id=15344) Start-up print outs of EU Rome - Full game. WINEDEBUG=+d3d,+d3d9 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #8 from Jonas Aaberg <cja(a)gmx.net> 2008-08-08 01:46:33 --- Ok, I think I've messed it up partly. Rome Demo, 1.0 and 1.1 needs this D3DXCreateFragmentLinker call, while Rome 1.2 does not. Still all versions seems to crash at the same "spot" from a user point of view. Just before the main screen should be displayed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Jonas Aaberg <cja(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #15344|0 |1 is obsolete| | --- Comment #9 from Jonas Aaberg <cja(a)gmx.net> 2008-09-13 03:39:35 --- Created an attachment (id=16067) --> (http://bugs.winehq.org/attachment.cgi?id=16067) WINEDEBUG=+d3d +d3d9 of Rome 1.3 Start-up and crash of EU Rome v1.3 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #10 from Jonas Aaberg <cja(a)gmx.net> 2008-09-13 03:40:11 --- Still valid for wine 1.1.4 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #11 from Jonas Aaberg <cja(a)gmx.net> 2008-09-22 13:15:27 --- Still valid for wine 1.1.5 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Radosław Ciechowski <wilczur102(a)o2.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wilczur102(a)o2.pl --- Comment #12 from Radosław Ciechowski <wilczur102(a)o2.pl> 2009-01-21 13:25:55 --- Game runs with d3dx9_36.dll and sound driver switched to OSS (which results in no sound in game for me, I guess turning sound off could be other workaround to run the game). VideoMemorySize is also needed, without it game crashes when loading graphics. I tested versions 1.0 and 1.3, both run with above settings. I also installed expansion pack - Vae Victis, after that game crashes, but after installing MS Visual C++ 2005 SP1 with winetricks (sh winetricks vcrun2005sp1) game runs again. Tested with Wine 1.1.13. I didnt have time to test gameplay for more than a few minutes, but game runs after some workarounds. I will add report to AppDB when I will have more time for longer tests. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Jonas Aaberg <cja(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #13 from Jonas Aaberg <cja(a)gmx.net> 2009-02-14 01:20:23 --- I close this bug entry, sicne I've managed to run the game as well. I set the status to fixed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Vitaliy Margolen <vitaliy(a)kievinfo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #14 from Vitaliy Margolen <vitaliy(a)kievinfo.com> 2009-02-14 12:11:50 --- Native DLLs are not a valid fix. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Pavel Ondracka <drakkk(a)centrum.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |drakkk(a)centrum.cz --- Comment #15 from Pavel Ondracka <drakkk(a)centrum.cz> 2009-09-01 09:41:13 --- 1.1.28 still has this bug. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #16 from Trygve Vea <trygve.vea(a)gmail.com> 2011-01-22 17:53:28 CST --- Created an attachment (id=32949) --> (http://bugs.winehq.org/attachment.cgi?id=32949) Terminal output Still crashes in wine 1.3.12 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Jerome Leclanche <adys.wh(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh(a)gmail.com --- Comment #17 from Jerome Leclanche <adys.wh(a)gmail.com> 2011-04-29 12:18:36 CDT --- Please retest in a fresh wineprefix in today's git or in wine-1.3.19 when it's out, and attach an updated terminal output. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Lucas Fialho Zawacki <lfzawacki(a)yahoo.com.br> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lfzawacki(a)yahoo.com.br --- Comment #18 from Lucas Fialho Zawacki <lfzawacki(a)yahoo.com.br> 2012-07-17 23:50:06 CDT --- Still present for wine 1.5.8 -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 Adam Bolte <abolte(a)systemsaviour.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |abolte(a)systemsaviour.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=12757 --- Comment #19 from Adam Bolte <abolte(a)systemsaviour.com> --- Still present for wine 1.7.12 (tested with ArmA Gold in a clean wineprefix). -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=12757 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW CC| |focht(a)gmx.net Summary|Europa Universalis Rome: |Europa Universalis Rome |Crashes on start-up |crashes on startup | |(D3DXLoadSurfaceFromFileInM | |emory must not | |unconditionally call | |CoUninitialize(), different | |COM threading model used) --- Comment #20 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, confirming - although this bug has been recycled at least once for different issues. The game uses a multi-threaded apartment on its main thread. Multiple Wine components/API create apartment-threaded COM inproc servers on the same thread (dsound, d3dx, ...). The caller needs to be aware of this situation (RPC_E_CHANGED_MODE) in order to avoid messing up the coinit refcount. The visible part is the infamous 'Attempt to change threading model of this apartment from multi-threaded to apartment threaded' message in terminal. Relevant part of trace log: The game creates multi-threaded apartment and quartz instance: --- snip --- 0025:Call ole32.CoInitializeEx(00000000,0000000c) ret=00897417 ... 0025:Ret ole32.CoInitializeEx() retval=00000000 ret=00897417 ... 0025:Call ole32.CoCreateInstance(00a37470,00000000,00000003,00a37420,00e454d8) ret=008317a7 ... 0025:Call KERNEL32.LoadLibraryExW(0033ee8e L"C:\\windows\\system32\\quartz.dll",00000000,00000008) ret=7eb6a6cb ... 0025:Ret PE DLL (proc=0x7d2c1b70,module=0x7d210000 L"quartz.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1 0025:Ret KERNEL32.LoadLibraryExW() retval=7d210000 ret=7eb6a6cb ... 0025:Ret ole32.CoCreateInstance() retval=00000000 ret=008317a7 --- snip --- Wine uses multiple COM servers on the same thread with apartment threading model: --- snip --- ... 0025:Call dsound.DirectSoundCreate8(00000000,00de1880,00000000) ret=0082f977 ... 0025:Call ole32.CoInitialize(00000000) ret=7e2ce081 0025:err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded 0025:Ret ole32.CoInitialize() retval=80010106 ret=7e2ce081 0025:Call ole32.CoCreateInstance(7e2e27d8,00000000,00000001,7e2e27a8,0033efa8) ret=7e2ce0b6 ... --- snip --- The problematic one: --- snip --- ... 0025:trace:d3dx:D3DXLoadSurfaceFromFileInMemory dst_surface 0xb34afa8, dst_palette (nil), dst_rect (null), src_data 0x1570000, src_data_size 65580, src_rect (null), filter 0x1, color_key 0x00000000, src_info (nil). 0025:trace:d3dx:D3DXGetImageInfoFromFileInMemory (0x1570000, 65580, 0x33ea64) 0025:Call ole32.CoInitializeEx(00000000,00000002) ret=7ed82a47 0025:err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded 0025:Ret ole32.CoInitializeEx() retval=80010106 ret=7ed82a47 0025:Call ole32.CoCreateInstance(7ed9ed1c,00000000,00000001,7ed9ed2c,0033e8cc) ret=7ed82a7f ... 0025:trace:d3dx:D3DXLoadSurfaceFromMemory (0xb34afa8, (nil), (null), 0xb361c10, 0x16, 512, (nil), (0,0)-(128,128) 0x1, 0x00000000) ... 0025:Call ole32.CoUninitialize() ret=7ed84242 0025:Call quartz.DllCanUnloadNow() ret=7eb6c1c3 0025:Call rpcrt4.NdrDllCanUnloadNow(7d30bab8) ret=7d2633fd 0025:Ret rpcrt4.NdrDllCanUnloadNow() retval=00000000 ret=7d2633fd 0025:Ret quartz.DllCanUnloadNow() retval=00000000 ret=7eb6c1c3 0025:Call KERNEL32.FreeLibrary(7d210000) ret=7eb6aa42 0025:Call PE DLL (proc=0x7d2c1b70,module=0x7d210000 L"quartz.dll",reason=PROCESS_DETACH,res=(nil)) 0025:Ret PE DLL (proc=0x7d2c1b70,module=0x7d210000 L"quartz.dll",reason=PROCESS_DETACH,res=(nil)) retval=1 0025:Call PE DLL (proc=0x7dcc9d1c,module=0x7dcb0000 L"msvfw32.dll",reason=PROCESS_DETACH,res=(nil)) 0025:Ret PE DLL (proc=0x7dcc9d1c,module=0x7dcb0000 L"msvfw32.dll",reason=PROCESS_DETACH,res=(nil)) retval=1 0025:Call PE DLL (proc=0x7cd1c3bc,module=0x7cc60000 L"comctl32.dll",reason=PROCESS_DETACH,res=(nil)) ... --- snip --- At this point 'quartz.dll' is unloaded from memory but the game still holds COM class/iface references! The crash is a late manifestation, it tries to call quartz.BasicAudio_put_Volume() with the PE image already gone. Wine code like D3DXGetImageInfoFromFileInMemory() does it right, taking CoInitializeEx() result into account. The COM threading model used might be still questionable. Source: http://source.winehq.org/git/wine.git/blob/fa8a0dc7f61715a093a3b2e4453e843a4... --- snip --- 1023 HRESULT WINAPI D3DXLoadSurfaceFromFileInMemory(IDirect3DSurface9 *pDestSurface, 1024 const PALETTEENTRY *pDestPalette, const RECT *pDestRect, const void *pSrcData, UINT SrcDataSize, 1025 const RECT *pSrcRect, DWORD dwFilter, D3DCOLOR Colorkey, D3DXIMAGE_INFO *pSrcInfo) 1026 { ... 1081 CoInitializeEx(NULL, COINIT_APARTMENTTHREADED); 1082 1083 if (FAILED(CoCreateInstance(&CLSID_WICImagingFactory, NULL, CLSCTX_INPROC_SERVER, &IID_IWICImagingFactory, (void**)&factory))) 1084 goto cleanup_err; ... 1180 cleanup_err: 1181 if (factory) 1182 IWICImagingFactory_Release(factory); 1183 1184 CoUninitialize(); ... --- snip --- With that bug fixed it runs farther - and crashes again due to another d3dx9_36 insufficiency. $ sha1sum Rome_Demo.exe 57e1fc8f2a1b8eeb0a1ccff218010eb828b00159 Rome_Demo.exe $ du -sh Rome_Demo.exe 308M Rome_Demo.exe $ wine --version wine-1.7.13-27-ge610713 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=12757 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |8226a187d63e3d355127cf1db83 | |0a4281132a598 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #21 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, this is fixed by commit http://source.winehq.org/git/wine.git/commitdiff/8226a187d63e3d355127cf1db83... Thanks Matteo Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=12757 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #22 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.14. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org