http://bugs.winehq.org/show_bug.cgi?id=13100
Summary: Sanitarium - D3D fails to create DIB section and page fault Product: Wine Version: 0.9.61. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P3 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: duck@duckcorp.org
Created an attachment (id=12879) --> (http://bugs.winehq.org/attachment.cgi?id=12879) console backtrace
During Sanitarium testing, when switching from loading screen to level 2 scene rendering, a D3D error occurs, then a page fault, leading to game crash:
[...] fixme:ddraw:IDirectDrawImpl_WaitForVerticalBlank (0x13f090)->(1,(nil)): Stub fixme:ddraw:IDirectDrawImpl_WaitForVerticalBlank (0x13f090)->(1,(nil)): Stub err:d3d_surface:IWineD3DBaseSurfaceImpl_CreateDIBSection CreateDIBSection failed! err:d3d_surface:IWineD3DBaseSurfaceImpl_CreateDIBSection CreateDIBSection failed! wine: Unhandled page fault on write access to 0x00000000 at address 0x433fed (thread 0027), starting debugger...
The game was launched in the console, see the backtrace in attachment.
This bug is not the same as #6828.
http://bugs.winehq.org/show_bug.cgi?id=13100
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-d3d |-unknown
--- Comment #1 from Vitaliy Margolen vitaliy@kievinfo.com 2008-05-10 19:56:51 --- Did it worked before (in older Wine version)? Please attach text, not pictures of the text. Don't need to run winedbg, just run program normally and capture it's output into a file. Then attach it here.
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #2 from Lorenzo Miniero rainmaker@icgag.it 2008-08-05 07:11:48 --- Created an attachment (id=15286) --> (http://bugs.winehq.org/attachment.cgi?id=15286) backtrace of Sanitarium crashing
Attached is the exact moment when Sanitarium crashes (Wine 1.1.2). It happens when loading the second level: near the end of the loading process, the animated icon slows down as if resources were almost exhausted, and then the game crashes. Apparently the crash only happens with larger levels. As far as I've read, the involved method may fail when swap ostensibly runs out of space, which may comply with the issue happening only with larger environments but can't possibly be our case (unless of course the game thinks so despite what Wine is able to provide). Hope this helps.
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #3 from Zoltan Balogh baloghmail@gmail.com 2008-08-24 17:29:45 --- Created an attachment (id=15615) --> (http://bugs.winehq.org/attachment.cgi?id=15615) Confirmation of bug. Wine v 1.0
http://bugs.winehq.org/show_bug.cgi?id=13100
André Twupack atwupack@aol.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #4 from André Twupack atwupack@aol.com 2008-12-14 08:37:22 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #5 from André Twupack atwupack@aol.com 2008-12-14 08:39:42 --- Created an attachment (id=17922) --> (http://bugs.winehq.org/attachment.cgi?id=17922) Backtrace in Wine 1.1.10
The problem still exists in 1.1.10. I'm attaching an updated backtrace.
http://bugs.winehq.org/show_bug.cgi?id=13100
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kennybobs@o2.co.uk
--- Comment #6 from Ken Sharp kennybobs@o2.co.uk 2008-12-18 17:59:09 --- Looks like this affects "Platypus" too, although it does not page fault.
err:d3d_surface:IWineD3DBaseSurfaceImpl_CreateDIBSection CreateDIBSection failed!
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #7 from Marc Dequènes (Duck) duck@duckcorp.org 2009-05-03 09:38:11 --- Same problem with 1.1.20.
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #8 from Marc Dequènes (Duck) duck@duckcorp.org 2009-05-09 21:14:38 --- Same problem with 1.1.21.
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #9 from Marc Dequènes (Duck) duck@duckcorp.org 2009-05-25 11:36:58 --- Same problem with 1.1.22.
http://bugs.winehq.org/show_bug.cgi?id=13100
Milan smoki00790@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |smoki00790@gmail.com
--- Comment #10 from Milan smoki00790@gmail.com 2009-05-30 18:31:39 --- I can confirm this with gdi renderer, but game works and pass to 2 scene with opengl one. It has some rendering problems in fullscreen, but in window mode everything is OK with command "wine sntrm.exe /SKIP -w"
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #11 from Marc Dequènes (Duck) duck@duckcorp.org 2009-05-31 13:04:43 --- Using the new DIB engine does not solve anything.
Milan is right, using the opengl renderer makes the switch to level 2 work. The drawback is black/flickering areas (seems the animated sprites only) and being horribly slow on my machine, so it is still unplayable. For info, i was using windowed mode in all my tests. The opengl problems may be due to my driver (r300 Free driver), even if native 3D games and a few wine-emulated games plays well (nevertheless seems games using DX < 8 are a pain). Consider this a mere comment on the results, and not an off-topic report.
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #12 from Milan smoki00790@gmail.com 2009-06-01 18:10:31 --- Marc, do you use wine's emulated desktop window (emulated virtual fullscreen in window) or game own window (with '-w' switch)? With later i have no rendering problem at all. Performance, rendering and second level pass, all are OK. I tested whole game and everything is good in window mode (wine sntrm.exe -w).
http://bugs.winehq.org/show_bug.cgi?id=13100
Alex Mauer hawke@hawkesnest.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hawke@hawkesnest.net
--- Comment #13 from Alex Mauer hawke@hawkesnest.net 2009-09-02 04:05:52 --- Still a problem in 1.1.28
For me on Ubuntu Karmic, the entire window is flickery if I launch it with the opengl renderer and -w mode. However, if I launch it with just /skip it works fine in fullscreen mode up until the point where it's actually trying to load the game level.
http://bugs.winehq.org/show_bug.cgi?id=13100
--- Comment #14 from Milan smoki00790@gmail.com 2009-10-09 17:19:23 --- Strange:(. For me it worked good up until 1.1.29... In 1.1.30 and 1.1.31 i got just black screen with both gdi and opengl (sound is there).
With gdi in window (-w) mode black screen, no errors in console. With gdi in fullscreen again black screen but with errors:
err:d3d:IWineGDISwapChainImpl_Present GDI Surface 0x1520f8 has heap memory allocated err:d3d:IWineGDISwapChainImpl_Present GDI Surface 0x157ad0 has heap memory allocated ...
With opengl in window mode (-w) no errors, but black screen. With opengl in fullscreen bad and slow rendering and fixmes:
fixme:d3d_surface:IWineD3DSurfaceImpl_BltOverride Destination format WINED3DFMT_P8_UINT has a fixup, this is not supported. fixme:d3d_surface:IWineD3DSurfaceImpl_BltOverride Source format WINED3DFMT_P8_UINT has an unsupported fixup: ...
http://bugs.winehq.org/show_bug.cgi?id=13100
Arthur Blot arthur.blot78@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |arthur.blot78@gmail.com
--- Comment #15 from Arthur Blot arthur.blot78@gmail.com 2009-10-25 12:20:55 --- With 1.1.32, it now works. There's still errors, but it doesn't page fault and loads correctly the next level.
http://bugs.winehq.org/show_bug.cgi?id=13100
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #16 from Jeff Zaroyko jeffz@jeffz.name 2009-10-25 16:47:11 --- (In reply to comment #15)
With 1.1.32, it now works. There's still errors, but it doesn't page fault and loads correctly the next level.
Great, let's mark this fixed. If there are further bugs which stop the app from working as it does in windows please open new bug reports.
http://bugs.winehq.org/show_bug.cgi?id=13100
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Alexandre Julliard julliard@winehq.org 2009-11-13 12:42:53 --- Closing bugs fixed in 1.1.33.