http://bugs.winehq.org/show_bug.cgi?id=15795
Summary: Dead Space crashes with unhandled exception Product: Wine Version: 1.1.7 Platform: PC URL: http://deadspace.ea.com/ OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: andras@csevego.net
When I start the game, it gives me black screen, then crashes with Unhandled page fault on read access to 0x00000004 at address 0x1d51977 (thread 0018). Same with fbo, or pbuffer and sound on or off.
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #1 from Andras Kovacs andras@csevego.net 2008-10-26 20:02:18 --- +all log: http://mgmt.sth.sze.hu/~andras/wine/ds/log.gz it's about 5MB compressed, I could not attach here.
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #2 from Austin English austinenglish@gmail.com 2008-10-26 21:02:14 --- Please attach plain terminal output. +all is pretty useless...
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #3 from Andras Kovacs andras@csevego.net 2008-10-27 16:48:56 --- Created an attachment (id=16937) --> (http://bugs.winehq.org/attachment.cgi?id=16937) console log without any winedebug option
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #4 from Andras Kovacs andras@csevego.net 2008-10-31 14:42:06 --- I think the problem is between the lines (ie. unitialized pointer): 0018:Call user32.EnumDisplaySettingsExW(00000000,00000009,0231efec,00000000) ret=7e43c835 0018:trace:x11settings:X11DRV_EnumDisplaySettingsEx mode 9 -- 1680x1050x32bpp @60 Hz (desktop) 0018:Ret user32.EnumDisplaySettingsExW() retval=00000001 ret=7e43c835 0018:trace:d3d_caps:IWineD3DImpl_EnumAdapterModes W 1680 H 1050 rr 60 fmt (16 - WINED3DFMT_X8R8G8B8) bpp 32 0018:Call user32.EnumDisplayDevicesA(00000000,00000000,0231eff0,00000000) ret=01d51893 0018:fixme:win:EnumDisplayDevicesW ((null),0,0x231ebdc,0x00000000), stub! 0018:trace:nls:WideCharToMultiByte cp 0 L"\\.\DISPLAY1\0000" -> "\\.\DISPLAY1\x00", ret = 13 0018:trace:nls:WideCharToMultiByte cp 0 L"X11 Windowing System\0000" -> "X11 Windowing System\x00", ret = 21 0018:trace:nls:WideCharToMultiByte cp 0 L"\0000" -> "\x00", ret = 1 0018:trace:nls:WideCharToMultiByte cp 0 L"\0000" -> "\x00", ret = 1 0018:Ret user32.EnumDisplayDevicesA() retval=00000001 ret=01d51893 0018:trace:seh:raise_exception code=c0000005 flags=0 addr=0x1d51977 0018:trace:seh:raise_exception info[0]=00000000 0018:trace:seh:raise_exception info[1]=00000004 0018:trace:seh:raise_exception eax=00000014 ebx=00000000 ecx=00000005 edx=00000000 esi=00c60eb0 edi=00000004 0018:trace:seh:raise_exception ebp=00000004 esp=0231efd8 cs=0073 ds=007b es=007b fs=0033 gs=003b flags=00010246 0018:trace:seh:call_stack_handlers calling handler at 0x905410 code=c0000005 flags=0
Unhandled exception: wine: Unhandled page fault on read access to 0x00000004 at address 0x1d51977 (thread 0018), starting debugger... (there is no Backtrace.)
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #5 from Andras Kovacs andras@csevego.net 2008-10-31 15:08:38 --- I'm sure, te problem is EnumDisplayDevicesA. I forced to return FALSE, then Dead Space started. After it hit a d3d bug, but it is another story. It has broken disorted sound, but quite playable on low settings for me.
http://bugs.winehq.org/show_bug.cgi?id=15795
Andras Kovacs andras@csevego.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
http://bugs.winehq.org/show_bug.cgi?id=15795
Sarunas Valaskevicius rakatan@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #6 from Sarunas Valaskevicius rakatan@gmail.com 2008-11-03 11:29:26 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=15795
Mariusz magmp1@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |magmp1@gmail.com
--- Comment #7 from Mariusz magmp1@gmail.com 2008-11-30 11:05:00 --- (In reply to comment #5)
I'm sure, te problem is EnumDisplayDevicesA. I forced to return FALSE, then Dead Space started. After it hit a d3d bug, but it is another story. It has broken disorted sound, but quite playable on low settings for me.
How to force it ?
http://bugs.winehq.org/show_bug.cgi?id=15795
blaise mgavl69@juno.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mgavl69@juno.com
--- Comment #8 from blaise mgavl69@juno.com 2008-11-30 21:15:02 --- (In reply to comment #7)
(In reply to comment #5)
I'm sure, te problem is EnumDisplayDevicesA. I forced to return FALSE, then Dead Space started. After it hit a d3d bug, but it is another story. It has broken disorted sound, but quite playable on low settings for me.
How to force it ?
I think he's referring to wine/dlls/user32/misc.c. Look for EnumDisplayDevicesA ,go down about 30 lines to return TRUE.
http://bugs.winehq.org/show_bug.cgi?id=15795
jiveaxe jiveaxe@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jiveaxe@gmail.com
--- Comment #9 from jiveaxe jiveaxe@gmail.com 2009-01-16 05:35:21 --- Forcing to FALSE EnumDisplayDevicesA in wine/dlls/user32/misc.c as blaise said in comment #8 doesn't resolve the problem: the game not starts and the message is still there.
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #10 from Andras Kovacs andras@csevego.net 2009-01-18 13:24:08 --- (In reply to comment #9)
Forcing to FALSE EnumDisplayDevicesA in wine/dlls/user32/misc.c as blaise said in comment #8 doesn't resolve the problem: the game not starts and the message is still the
What kind of message?
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #11 from jiveaxe jiveaxe@gmail.com 2009-01-18 14:09:20 --- "Your graphics card doesn't meet the minimum requirements of Dead Space"
But I have a Radeon 4850 512 Mb and Ati Driver 8.12.
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #12 from Andras Kovacs andras@csevego.net 2009-01-18 16:45:52 --- (In reply to comment #11)
"Your graphics card doesn't meet the minimum requirements of Dead Space"
But I have a Radeon 4850 512 Mb and Ati Driver 8.12.
Have you set OffscreenRenderingMode to fbo?
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #13 from jiveaxe jiveaxe@gmail.com 2009-01-19 04:33:04 --- After setting OffscreenRenderingMode to fbo the game passes that message, shows a black screen and than a crash; look here:
http://bugs.winehq.org/show_bug.cgi?id=15795
Lars Blomqvist knaprigt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |knaprigt@gmail.com
--- Comment #14 from Lars Blomqvist knaprigt@gmail.com 2009-05-26 19:28:54 --- Setting OffsreenRenderingMode to fbo and forcing EnumDisplayDevicesA to return FALSE worked for me. Managed to get the game running and it was quite playable. It does suffer from some graphic problems like missing/black textures, etc, but I didn't notice any issues with the sound.
http://bugs.winehq.org/show_bug.cgi?id=15795
DL taedium_vitae@eml.cc changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |taedium_vitae@eml.cc
--- Comment #15 from DL taedium_vitae@eml.cc 2009-07-31 07:38:05 --- (In reply to comment #14)
Setting OffsreenRenderingMode to fbo and forcing EnumDisplayDevicesA to return FALSE worked for me. Managed to get the game running and it was quite playable. It does suffer from some graphic problems like missing/black textures, etc, but I didn't notice any issues with the sound.
I had to use the OSS wine driver instead of alsa, otherwise I would get this error: "err:dsalsa:DSDB_CreateMMAP Can't map sound device for direct access: File descriptor in bad state/-77"
The other issue I get is that no mouse cursor appears when navigating menus, but you can use the keyboard, and just guess where the cursor would be when answering accept/decline.
Otherwise, the game works quite well.
http://bugs.winehq.org/show_bug.cgi?id=15795
Artem Semendyaev lifeissecret@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lifeissecret@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #16 from DL taedium_vitae@eml.cc 2009-12-30 02:04:13 --- Still an issue with wine-1.1.35.
http://bugs.winehq.org/show_bug.cgi?id=15795
Justin Chevrier jchevrier@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jchevrier@gmail.com
--- Comment #17 from Justin Chevrier jchevrier@gmail.com 2010-01-17 12:34:17 --- I've taken a look at this and it turns out that Dead Space is crashing when EnumDisplayDevicesA returns true and sets DISPLAY_DEVICE_PRIMARY_DEVICE in dwFlags. If DISPLAY_DEVICE_PRIMARY_DEVICE is not set Dead Space continues on as expected.
Testing under Windows XP seems to show that EnumDisplayDevicesA sets dwFlags to 0 when being called from Dead Space, but I'm not confident in that result as I have yet to find a good app to get a log from of the game running. Recommendations for something that will work here (and Steam too)?
Running a modified crosstest under Windows shows that Windows sets dwFlags to include DISPLAY_DEVICE_PRIMARY_DEVICE just like Wine.
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #18 from Justin Chevrier jchevrier@gmail.com 2010-01-23 17:44:45 --- Created an attachment (id=25844) --> (http://bugs.winehq.org/attachment.cgi?id=25844) Create fake Device ID
Create fake Device ID
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #19 from Justin Chevrier jchevrier@gmail.com 2010-01-23 17:45:36 --- Finally managed to get a good capture under Windows. I believe I have sorted this out. It appears that Dead Space expects EnumDisplayDevices to fill in 'DeviceID' with a reasonable value (despite MSDN stating that DeviceID is not used). Attached is a patch to do just this. Tested to be working on my copy of Dead Space. Give it a shot.
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #20 from Austin English austinenglish@gmail.com 2010-01-23 23:43:48 --- (In reply to comment #18)
Created an attachment (id=25844)
--> (http://bugs.winehq.org/attachment.cgi?id=25844) [details]
Create fake Device ID
Create fake Device ID
Please send patches to wine-patches@winehq.org
http://bugs.winehq.org/show_bug.cgi?id=15795
--- Comment #21 from Justin Chevrier jchevrier@gmail.com 2010-01-25 14:12:47 --- Patch Committed at rev 64f2c03457bade771664293285840d57a5466bfc
http://bugs.winehq.org/show_bug.cgi?id=15795
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #22 from Austin English austinenglish@gmail.com 2010-01-25 15:35:36 --- Fixed then.
http://bugs.winehq.org/show_bug.cgi?id=15795
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #23 from Alexandre Julliard julliard@winehq.org 2010-02-05 11:38:45 --- Closing bugs fixed in 1.1.38.