http://bugs.winehq.org/show_bug.cgi?id=10236
Summary: Jazz Jackrabbit 2: Access Violation at 7DFC3B16h Product: Wine Version: unspecified Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-programs AssignedTo: wine-bugs@winehq.org ReportedBy: jmetal88@sbcglobal.net
Jazz Jackrabbit 2 installs beautifully, but after the splash screen at the beginning of the game, it crashes with an error. In the most recent version of Wine (obtained via WineCVS.sh, changelog last dated 2007-10-26) the error reads:
Jazz Jackrabbit 2 has caused an access violation at address 7DFC3B16h by attempting to "read" from address 000006F8h.
In 0.9.47:
Jazz Jackrabbit 2 has caused an access violation at address 7E176AB6h by attempting to "read" from address 000006F8h.
In 0.9.46:
Jazz Jackrabbit 2 has caused an access violation at address 7E216856h by attempting to "read" from address 000006F8h.
In 0.9.45:
Program runs as it should.
In 0.9.44:
Jazz Jackrabbit 2 has caused an access violation at address 00000000h by attempting to "read" from address 00000000h.
In 0.9.43:
Program runs as it should.
In 0.9.42:
Program runs as it should.
So, something broke it in 0.9.44, fixed it in 0.9.45, and broke it again in 0.9.46 through the current version. Also, the address at which the access violation occurs changes each time I run the program (in 0.9.46 and after) and doesn't seem to actually have anything to do with which version of Wine is installed.
http://bugs.winehq.org/show_bug.cgi?id=10236
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Component|wine-programs |wine-misc Version|unspecified |CVS/GIT
--- Comment #1 from Austin English austinenglish@gmail.com 2007-10-29 20:11:14 --- Is there a demo/download of this available?
Please run a regression test: http://wiki.winehq.org/RegressionTesting
http://bugs.winehq.org/show_bug.cgi?id=10236
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
--- Comment #2 from Austin English austinenglish@gmail.com 2007-10-29 20:11:35 --- Also, please attach full terminal output, not just one line.
http://bugs.winehq.org/show_bug.cgi?id=10236
Michael Graham jmetal88@sbcglobal.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Component|wine-misc |wine-programs Version|CVS/GIT |unspecified
--- Comment #3 from Michael Graham jmetal88@sbcglobal.net 2007-10-29 20:25:42 --- Hi, that error was not from the terminal output, it was a window that popped up within Wine.
Here is the terminal output from 0.9.47, at least from the time it stopped repeating:
err:wgl:X11DRV_ChoosePixelFormat No libGL on this box - disabling OpenGL support ! err:d3d:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat err:d3d:InitAdapters Failed to get a gl context for default adapter wine: Unhandled page fault on read access to 0x000006f8 at address 0x7e1b1ab6 (thread 0009), starting debugger... Unhandled exception: page fault on read access to 0x000006f8 in 32-bit code (0x7e1b1ab6). Register dump: CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b EIP:7e1b1ab6 ESP:0033f33c EBP:0033f364 EFLAGS:00010202( - 00 - -RI1) EAX:00000000 EBX:7e25db00 ECX:7ed484a0 EDX:7e259560 ESI:001377c8 EDI:01642c98 Stack dump: 0x0033f33c: 00000000 00000000 00400000 00000000 0x0033f34c: 00000000 00000054 00000000 01642e9c 0x0033f35c: 7e2b33d4 01642e9c 0033f3d4 7e291a76 0x0033f36c: 001377c8 7e2a8c55 01642c98 00000000 0x0033f37c: 00000000 0033f3c4 01642c98 00137c40 0x0033f38c: 0000000a 0033f3e0 7b85e2b9 b7f71140 Backtrace: =>1 0x7e1b1ab6 in wined3d (+0x21ab6) (0x0033f364) 2 0x7e291a76 in ddraw (+0x21a76) (0x0033f3d4) 3 0x7e291e62 DirectDrawCreate+0x102() in ddraw (0x0033f424) 4 0x00492f45 in jazz2 (+0x92f45) (0x00000000) 0x7e1b1ab6: movl 0x6f8(%eax),%edx Modules: Module Address Debug info Name (79 modules) PE 400000- 601000 Export jazz2 ELF 7b800000-7b929000 Deferred kernel32<elf> -PE 7b820000-7b929000 \ kernel32 ELF 7bc00000-7bca0000 Deferred ntdll<elf> -PE 7bc10000-7bca0000 \ ntdll ELF 7bf00000-7bf03000 Deferred <wine-loader> ELF 7e17f000-7e260000 Export wined3d<elf> -PE 7e190000-7e260000 \ wined3d ELF 7e260000-7e2b5000 Export ddraw<elf> -PE 7e270000-7e2b5000 \ ddraw ELF 7e2cd000-7e2e2000 Deferred midimap<elf> -PE 7e2d0000-7e2e2000 \ midimap ELF 7e2e2000-7e309000 Deferred msacm32<elf> -PE 7e2f0000-7e309000 \ msacm32 ELF 7e309000-7e321000 Deferred msacm32<elf> -PE 7e310000-7e321000 \ msacm32 ELF 7e321000-7e3e7000 Deferred libasound.so.2 ELF 7e3f7000-7e42d000 Deferred winealsa<elf> -PE 7e400000-7e42d000 \ winealsa ELF 7e451000-7e4aa000 Deferred rpcrt4<elf> -PE 7e460000-7e4aa000 \ rpcrt4 ELF 7e4aa000-7e54b000 Deferred ole32<elf> -PE 7e4c0000-7e54b000 \ ole32 ELF 7e56b000-7e59d000 Deferred uxtheme<elf> -PE 7e570000-7e59d000 \ uxtheme ELF 7e59d000-7e5a2000 Deferred libxfixes.so.3 ELF 7e5a2000-7e5ab000 Deferred libxcursor.so.1 ELF 7e5ab000-7e5c8000 Deferred imm32<elf> -PE 7e5b0000-7e5c8000 \ imm32 ELF 7e5c8000-7e5ce000 Deferred libxrandr.so.2 ELF 7e5ce000-7e5d6000 Deferred libxrender.so.1 ELF 7e5d6000-7e5db000 Deferred libxdmcp.so.6 ELF 7e5db000-7e5de000 Deferred libxau.so.6 ELF 7e5de000-7e6cf000 Deferred libx11.so.6 ELF 7e6cf000-7e6dd000 Deferred libxext.so.6 ELF 7e6dd000-7e6e2000 Deferred libxxf86vm.so.1 ELF 7e6e2000-7e6fa000 Deferred libice.so.6 ELF 7e6fa000-7e702000 Deferred libsm.so.6 ELF 7e712000-7e79e000 Deferred winex11<elf> -PE 7e720000-7e79e000 \ winex11 ELF 7e839000-7e859000 Deferred libexpat.so.1 ELF 7e859000-7e884000 Deferred libfontconfig.so.1 ELF 7e884000-7e899000 Deferred libz.so.1 ELF 7e899000-7e909000 Deferred libfreetype.so.6 ELF 7e909000-7e91d000 Deferred lz32<elf> -PE 7e910000-7e91d000 \ lz32 ELF 7e91d000-7e937000 Deferred version<elf> -PE 7e920000-7e937000 \ version ELF 7e937000-7e94a000 Deferred libresolv.so.2 ELF 7e95a000-7e978000 Deferred iphlpapi<elf> -PE 7e960000-7e978000 \ iphlpapi ELF 7e978000-7e9a5000 Deferred ws2_32<elf> -PE 7e980000-7e9a5000 \ ws2_32 ELF 7e9a5000-7e9bf000 Deferred wsock32<elf> -PE 7e9b0000-7e9bf000 \ wsock32 ELF 7e9bf000-7ea4d000 Deferred winmm<elf> -PE 7e9d0000-7ea4d000 \ winmm ELF 7ea4d000-7eaa6000 Deferred shlwapi<elf> -PE 7ea60000-7eaa6000 \ shlwapi ELF 7eaa6000-7eba9000 Deferred shell32<elf> -PE 7eac0000-7eba9000 \ shell32 ELF 7eba9000-7ec44000 Deferred gdi32<elf> -PE 7ebc0000-7ec44000 \ gdi32 ELF 7ec44000-7ed82000 Deferred user32<elf> -PE 7ec60000-7ed82000 \ user32 ELF 7ed82000-7ee40000 Deferred comctl32<elf> -PE 7ed90000-7ee40000 \ comctl32 ELF 7ee40000-7ee89000 Deferred advapi32<elf> -PE 7ee50000-7ee89000 \ advapi32 ELF 7efa8000-7efb3000 Deferred libnss_files.so.2 ELF 7efb3000-7efcb000 Deferred libnsl.so.1 ELF 7efcb000-7eff0000 Deferred libm.so.6 ELF 7eff6000-7f000000 Deferred libnss_nis.so.2 ELF b7cf0000-b7cf9000 Deferred libnss_compat.so.2 ELF b7cfa000-b7cfe000 Deferred libdl.so.2 ELF b7cfe000-b7e48000 Deferred libc.so.6 ELF b7e49000-b7e61000 Deferred libpthread.so.0 ELF b7e71000-b7f85000 Deferred libwine.so.1 ELF b7f87000-b7fa3000 Deferred ld-linux.so.2 Threads: process tid prio (all id:s are in hex) 0000000a 0000000c 0 0000000b 0 00000008 (D) C:\Games\Jazz2\Jazz2.exe 00000009 0 <==
The cvswine output was a bit longer but I could post that too if you like. I'm working on finding a demo now.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #4 from Michael Graham jmetal88@sbcglobal.net 2007-10-29 20:29:10 --- I think this link should work for a demo. It will install, and the error appears when executing Jazz2.exe.
http://softwarex-files.download.com/sd/3Jffil0zglIXXA3GBTbG0TFveocvHXhtPIGdx...
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #5 from Michael Graham jmetal88@sbcglobal.net 2007-10-29 20:31:08 --- OK, nevermind, that link didn't work after I posted it.
Try the download page here:
http://www.download.com/Jazz-Jackrabbit-2-demo/3000-7563_4-887151.html
http://bugs.winehq.org/show_bug.cgi?id=10236
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|wine-programs |wine-misc Resolution| |INVALID
--- Comment #6 from Vitaliy Margolen vitaliy@kievinfo.com 2007-10-29 21:53:27 --- DO NOT PASTE logs and back traces!!! I'm guessing you can't read.
Invalid: err:wgl:X11DRV_ChoosePixelFormat No libGL on this box - disabling OpenGL support !
How do you want to run 3d game without OpenGL?
http://bugs.winehq.org/show_bug.cgi?id=10236
Michael Graham jmetal88@sbcglobal.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |
--- Comment #7 from Michael Graham jmetal88@sbcglobal.net 2007-10-29 23:30:20 --- It is NOT a 3D game. It is a 2D platformer. And sorry about the backlogs, but Austin did ask for the entire terminal output, sorry if I misunderstood that.
http://bugs.winehq.org/show_bug.cgi?id=10236
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #8 from Austin English austinenglish@gmail.com 2007-10-30 04:05:29 --- Doesn't crash here, though there are other problems. It starts up, but only in a small square in the top left of the screen (several other games do this, but doesn't seem to be one single bug report for it). If run in a virtual desktop, a splash screen shows up about Jazz Jackrabbit, but no game.
Using Ubuntu Gusty, wine 0.9.47, nvidia 5200 w/ restricted drivers (and opengl support :-P)
http://bugs.winehq.org/show_bug.cgi?id=10236
Luke Bratch l_bratch@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |l_bratch@yahoo.co.uk
--- Comment #9 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-30 08:48:02 --- The original error that Michael posted wasn't just a single line from Wine's output, it's a dialog that the game shows instead of starting.
The demo version works fine for me, but I get the same error dialogue that Michael gets from the game when running the full version.
I do not get the libGL missing error that he gets, but I do get:
fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 8
If I set X to 8 bpp, then I do indeed get the libGL error he gets, as the Nvidia driver doesn't seem to provide acceleration in 8 bpp mode.
This game by default doesn't use 3d acceleration (just ddraw), but it does have the option for it.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #10 from Michael Graham jmetal88@sbcglobal.net 2007-10-30 09:32:21 --- Interesting. I get the error regardless of whether I'm using the demo or full version, always right after the splash screen. Both the demo and the full version are working here under 0.9.45, 0.9.42, and 0.9.43, but not under 0.9.44 or any of the more recent versions.
Austin, in the versions of Wine where it does work on my computer, it also runs in a small window in the corner of the screen. The game occasionally does this in Windows as well, which is fixable by doing the Alt+Enter keystroke, although that combination just makes the background flicker when running under Wine and the game does not go fullscreen.
I get the libGL error under all versions of Wine that I tested, but in the versions I mentioned above, the game still runs very well, if not faster than it would on Windows.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #11 from Austin English austinenglish@gmail.com 2007-10-30 12:01:03 --- I'll try to test a bit more later then when I have time. In the meantime, please run the regression test as I asked you earlier.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #12 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-30 12:03:29 --- I'm regressiong testing as we speak. 0.9.45 doesn't work for me by the way (as expected), but 0.9.43 does. Should have the results soon.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #13 from Michael Graham jmetal88@sbcglobal.net 2007-10-30 12:10:03 --- Somehow I missed the bit about regression testing. I see it now though, I'll get to it after classes are out.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #14 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-30 14:34:19 --- ad692f2a83c11ba0c9bb1d0e21d4d95029a65942 is first bad commit commit ad692f2a83c11ba0c9bb1d0e21d4d95029a65942 Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Tue Sep 11 10:31:54 2007 +0200
wined3d: Add PBO support for dynamically locked surfaces.
:040000 040000 01fb253a9adb3461ff47e628e84d98f0d86c5602 50e3b1e2b93a25730b27592d8ce8fb27d18d28e9 M dlls :040000 040000 c6496e8ae1751f797622f9baeba9036123328467 bfe2b63d1c912f0317c45c1c068103c415848b91 M include
Seems to be the problem.
http://bugs.winehq.org/show_bug.cgi?id=10236
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |thunderbird2k@gmx.net
--- Comment #15 from Austin English austinenglish@gmail.com 2007-10-30 15:22:37 --- CC'ing author.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #16 from Michael Graham jmetal88@sbcglobal.net 2007-10-30 17:52:45 --- Since Luke already did the regression testing for 0.9.43 to 0.9.44, I'm doing the regression testing from 0.9.45 to 0.9.46, since 0.9.45 works on my machine for some odd reason.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #17 from Michael Graham jmetal88@sbcglobal.net 2007-10-30 19:41:02 --- Alright, looks like my particular error was caused by a different patch from the same author:
243ac3ed75e3ee2ac570dba6f72398320327ab5a is first bad commit commit 243ac3ed75e3ee2ac570dba6f72398320327ab5a Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Sun Sep 23 00:46:21 2007 +0200
wined3d: Move video memory tracking to the adapter.
:040000 040000 d94c62a2dbe8f22fac8e39cd94f337a2e4bbc053 fa5b85bac160aa6d803356e193300c07a6526702 M dlls :040000 040000 0525dc21d43e62511cbeb219ea1e3ad4520e1e30 e79115a66b78acd77bc56e25b04eb83e2afde3ad M include
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #18 from Austin English austinenglish@gmail.com 2007-10-30 19:58:29 --- Might be video card/driver related, what cards/drivers do y'all have?
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #19 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-30 20:02:24 --- Geforce 7900GTX with the Nvidia 100.14.19 drivers here.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #20 from Michael Graham jmetal88@sbcglobal.net 2007-10-30 20:07:29 --- GeForce 7100 GS with NVIDIA 1.0-9639 drivers.
http://bugs.winehq.org/show_bug.cgi?id=10236
Roderick Colenbrander thunderbird2k@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|wine-misc |wine-directx-ddraw
--- Comment #21 from Roderick Colenbrander thunderbird2k@gmx.net 2007-10-31 03:16:30 --- First of all run the program using: WINEDEBUG=+d3d,+d3d_caps wine appname.exe &> log
Then attach the log and also the output of glxinfo to this bug report. Are you sure the video memory change is the problem? It sounds unlikely...
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #22 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-31 03:25:31 --- Created an attachment (id=8886) --> (http://bugs.winehq.org/attachment.cgi?id=8886) WINEDEBUG=+d3d,+d3d_caps
Here is the WINEDEBUG=+d3d,+d3d_caps output as it crashes, but for me regression testing showed that wined3d: Add PBO support for dynamically locked surfaces was the regression.
I'll retest today and see if the commit Michael found makes any difference too though.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #23 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-31 03:49:10 --- (In reply to comment #17)
Alright, looks like my particular error was caused by a different patch from the same author:
243ac3ed75e3ee2ac570dba6f72398320327ab5a is first bad commit commit 243ac3ed75e3ee2ac570dba6f72398320327ab5a Author: Roderick Colenbrander thunderbird2k@gmx.net Date: Sun Sep 23 00:46:21 2007 +0200
wined3d: Move video memory tracking to the adapter.
:040000 040000 d94c62a2dbe8f22fac8e39cd94f337a2e4bbc053 fa5b85bac160aa6d803356e193300c07a6526702 M dlls :040000 040000 0525dc21d43e62511cbeb219ea1e3ad4520e1e30 e79115a66b78acd77bc56e25b04eb83e2afde3ad M include
Just testing going to that commit, and the one before, but both crash. We perhaps have simiar but slightly different bugs?
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #24 from Michael Graham jmetal88@sbcglobal.net 2007-10-31 06:47:38 --- Created an attachment (id=8887) --> (http://bugs.winehq.org/attachment.cgi?id=8887) WINEDEBUG=+d3d,+d3d_caps
Here's my log.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #25 from Michael Graham jmetal88@sbcglobal.net 2007-10-31 07:05:50 --- Created an attachment (id=8888) --> (http://bugs.winehq.org/attachment.cgi?id=8888) WINEDEBUG=+d3d,+d3d_caps
Just for contrast, don't know if you need it or not, here is the log from 0.9.45 on which Jazz Jackrabbit 2 worked on my computer. The only problem here seems to be disabling fullscreen mode (I haven't gone back to see if fullscreen mode worked on any previous versions of Wine, although I know it works on cvscedega).
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #26 from Roderick Colenbrander thunderbird2k@gmx.net 2007-10-31 07:15:16 --- You guys indeed have two different problems. In case of Michael I don't think opengl is set up correctly: Xlib: extension "GLX" missing on display ":0.0". err:wgl:X11DRV_WineGL_InitOpenglInfo couldn't initialize OpenGL, expect problems
That can indeed lead to the video memory issue.
The other issue is indeed related to PBOs. It is one area I need to clean up but I need to wait until Stefan his surface rewrite is done.
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #27 from Luke Bratch l_bratch@yahoo.co.uk 2007-10-31 07:18:30 --- (In reply to comment #26)
The other issue is indeed related to PBOs. It is one area I need to clean up but I need to wait until Stefan his surface rewrite is done.
Thanks Roderick
Would you suggest leaving this bug open for the PBO issue, or just wait for you/Stefan to sort out your respective things without the bug being open?
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #28 from Roderick Colenbrander thunderbird2k@gmx.net 2007-10-31 07:42:15 --- Just leave the bug open. Perhaps I'll take a look at it later today. Basically the problem is that Jazz Jackrabbit II requires color depth conversion which can't be done when PBOs are active. PBOs are active and this is roughly what causes the problem. (color conversion requires access to memory; in case of a PBO you can't always access the memory)
http://bugs.winehq.org/show_bug.cgi?id=10236
--- Comment #29 from Michael Graham jmetal88@sbcglobal.net 2007-10-31 07:53:57 --- Well, since it seemed I was having a problem with OpenGL, I went ahead and reinstalled my graphics drivers. I am no longer getting the missing GLX error, but unfortunately, 0.9.45 no longer works on my system.
http://bugs.winehq.org/show_bug.cgi?id=10236
Roderick Colenbrander thunderbird2k@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #30 from Roderick Colenbrander thunderbird2k@gmx.net 2008-01-07 16:52:56 --- Everything works fine now in Jazz2 using the latest GIT. I fixed some remaining issues (depth switching issues and some other things). Some of the issues were over before but I kept it around.
http://bugs.winehq.org/show_bug.cgi?id=10236
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #31 from Dan Kegel dank@kegel.com 2008-01-28 06:13:58 --- Closing all RESOLVED FIXED bugs older than 0.9.54.
http://bugs.winehq.org/show_bug.cgi?id=10236
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|directx-ddraw |directx-d3d