Jedi Academy error with 1.1.32

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Cr0k
Level 3
Level 3
Posts: 99
Joined: Sat Nov 07, 2009 6:30 pm

Jedi Academy error with 1.1.32

Post by Cr0k »

Hi.
I've seen on AppDB that Jedi Academy was rated Platinium, so I've decided to try it.

I've installed it, but when I want to launch it, I've got the following errors :

Code: Select all

fixme:keyboard:RegisterHotKey ((nil),0,0x00000001,9): stub
wine: Unhandled page fault on read access to 0x7265765f at address 0x7265765f (thread 0009), starting debugger...
I've search, but found any answer to my problem.
Hope someone will can help me.

Thx
superlgn
Level 2
Level 2
Posts: 14
Joined: Fri Jul 17, 2009 5:01 pm

Post by superlgn »

I get the RegisterHotKey thing too, but no page fault after, it runs fine for me and has for years.

When I installed the game 5+ years ago, I used the old loki installer from liflg.org, but I don't know if that has anything to do with it. The installer doesn't exist (on that site) anymore, instead they say to just install it normally with wine. I tried clearing out my ~/.wine to see if the loki installer would have done something special to the registry to make it work, but the game ran fine regardless. I think the loki installer may have included a modified .exe without a cd check, but I can't be sure now. Maybe it's something in your ~/.wine directory that's causing problems? I imagine you have other things in there you'd not want to lose, so you could try to make a new wine dir just for Jedi Academy using the WINEPREFIX variable:

Code: Select all

$ export WINEPREFIX=/usr/local/games/jediacademy
$ wine /cdrom/setup.exe
wine: created the configuration directory '/usr/local/games/jediacademy'
...
$ cd /usr/local/games/jediacademy/drive_c/...
$ wine jasp.exe
If this works (run it from the same terminal or (re)set the same WINEPREFIX environment variable in another terminal), you could make up a shell script that sets the WINEPREFIX directory and runs the .exe for you.

That's how I install all of my games/series now, so if I screw one up it won't affect everything else.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Jedi Academy error with 1.1.32

Post by vitamin »

Cr0k wrote:wine: Unhandled page fault on read access to 0x7265765f at address 0x7265765f (thread 0009), starting debugger...
Need the rest of that.
Cr0k
Level 3
Level 3
Posts: 99
Joined: Sat Nov 07, 2009 6:30 pm

Post by Cr0k »

I only have that, there's no rest, just an error like on Windows, "jasp.exe has close, etc..."

I've nothing else.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Cr0k wrote:I only have that, there's no rest, just an error like on Windows, "jasp.exe has close, etc..."
Then run it under winedbg:

Code: Select all

$ wine winedbg jasp.exe
Wine-dbg>cont
Cr0k
Level 3
Level 3
Posts: 99
Joined: Sat Nov 07, 2009 6:30 pm

Post by Cr0k »

Here it is :

Code: Select all

 wine jasp.exe 
fixme:keyboard:RegisterHotKey ((nil),0,0x00000001,9): stub
wine: Unhandled page fault on read access to 0x7265765f at address 0x7265765f (thread 0009), starting 
debugger...
Unhandled exception: page fault on read access to 0x7265765f in 32-bit code (0x7265765f).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:7265765f ESP:0192daa0 EBP:0192eb00 EFLAGS:00210206(  R- --  I   - -P- )
 EAX:0088d628 EBX:0041b493 ECX:00000000 EDX:00000001
 ESI:00000000 EDI:0088d970
Stack dump:
0x0192daa0:  5f786574 676f7270 326d6172 74706f5f
0x0192dab0:  206e6f69 4e5f4c47 65765f56 78657472
0x0192dac0:  6f72705f 6d617267 4c472033 58564e5f
0x0192dad0:  6e6f635f 69746964 6c616e6f 6e65725f
0x0192dae0:  20726564 535f4c47 5f534947 656e6567
0x0192daf0:  65746172 70696d5f 2070616d 535f4c47
Backtrace:
=>0 0x7265765f (0x0192eb00)
0x7265765f: -- no code accessible --
Modules:
Module	Address			Debug info	Name (71 modules)
PE	  230000-  263000	Deferred        ifc22
PE	  400000- 1126000	Deferred        jasp
PE	10000000-100f2000	Deferred        openal32
ELF	7bf00000-7bf03000	Deferred        <wine-loader>
ELF	7cff9000-7e067000	Deferred        libglcore.so.1
ELF	7e067000-7e126000	Deferred        libgl.so.1
ELF	7e126000-7e1bf000	Deferred        opengl32<elf>
  \-PE	7e140000-7e1bf000	\               opengl32
ELF	7e233000-7e247000	Deferred        midimap<elf>
  \-PE	7e240000-7e247000	\               midimap
ELF	7e247000-7e26c000	Deferred        msacm32<elf>
  \-PE	7e250000-7e26c000	\               msacm32
ELF	7e26c000-7e283000	Deferred        msacm32<elf>
  \-PE	7e270000-7e283000	\               msacm32
ELF	7e283000-7e34a000	Deferred        libasound.so.2
ELF	7e35d000-7e393000	Deferred        winealsa<elf>
  \-PE	7e370000-7e393000	\               winealsa
ELF	7e393000-7e39c000	Deferred        libxcursor.so.1
ELF	7e39c000-7e3a1000	Deferred        libxfixes.so.3
ELF	7e3a1000-7e3a4000	Deferred        libxcomposite.so.1
ELF	7e3a4000-7e3ab000	Deferred        libxrandr.so.2
ELF	7e3ab000-7e3b4000	Deferred        libxrender.so.1
ELF	7e3b4000-7e3b9000	Deferred        libxxf86vm.so.1
ELF	7e3b9000-7e3bc000	Deferred        libxinerama.so.1
ELF	7e3bc000-7e3dc000	Deferred        imm32<elf>
  \-PE	7e3c0000-7e3dc000	\               imm32
ELF	7e3dc000-7e3e1000	Deferred        libxdmcp.so.6
ELF	7e3e1000-7e3e4000	Deferred        libxau.so.6
ELF	7e3e4000-7e3fd000	Deferred        libxcb.so.1
ELF	7e3fd000-7e414000	Deferred        libice.so.6
ELF	7e414000-7e52e000	Deferred        libx11.so.6
ELF	7e52e000-7e5c9000	Deferred        winex11<elf>
  \-PE	7e540000-7e5c9000	\               winex11
ELF	7e678000-7e69e000	Deferred        libexpat.so.1
ELF	7e69e000-7e6c9000	Deferred        libfontconfig.so.1
ELF	7e6ca000-7e6ce000	Deferred        libuuid.so.1
ELF	7e6ce000-7e6dc000	Deferred        libxext.so.6
ELF	7e6dc000-7e6f0000	Deferred        libz.so.1
ELF	7e6f0000-7e774000	Deferred        libfreetype.so.6
ELF	7e77a000-7e77c000	Deferred        libnvidia-tls.so.1
ELF	7e77c000-7e785000	Deferred        librt.so.1
ELF	7e787000-7e79a000	Deferred        system.drv16.so
PE	7e790000-7e79a000	Deferred        system.drv16
ELF	7e79a000-7e7b2000	Deferred        version<elf>
  \-PE	7e7a0000-7e7b2000	\               version
ELF	7e7b2000-7e81d000	Deferred        rpcrt4<elf>
  \-PE	7e7c0000-7e81d000	\               rpcrt4
ELF	7e81d000-7e914000	Deferred        ole32<elf>
  \-PE	7e830000-7e914000	\               ole32
ELF	7e914000-7e969000	Deferred        advapi32<elf>
  \-PE	7e920000-7e969000	\               advapi32
ELF	7e969000-7ea07000	Deferred        gdi32<elf>
  \-PE	7e980000-7ea07000	\               gdi32
ELF	7ea07000-7eb4d000	Deferred        user32<elf>
  \-PE	7ea20000-7eb4d000	\               user32
ELF	7eb4d000-7ebd3000	Deferred        winmm<elf>
  \-PE	7eb50000-7ebd3000	\               winmm
ELF	7edb3000-7ef1f000	Deferred        kernel32<elf>
  \-PE	7edd0000-7ef1f000	\               kernel32
ELF	7ef1f000-7ef2b000	Deferred        libnss_files.so.2
ELF	7ef2b000-7ef51000	Deferred        libm.so.6
ELF	7ef51000-7f000000	Deferred        ntdll<elf>
  \-PE	7ef60000-7f000000	\               ntdll
ELF	f7500000-f7508000	Deferred        libsm.so.6
ELF	f750a000-f750e000	Deferred        libdl.so.2
ELF	f750e000-f7654000	Deferred        libc.so.6
ELF	f7654000-f766d000	Deferred        libpthread.so.0
ELF	f766d000-f77a8000	Deferred        libwine.so.1
ELF	f77a8000-f77bb000	Deferred        lz32<elf>
  \-PE	f77b0000-f77bb000	\               lz32
ELF	f77bc000-f77da000	Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\jasp.exe
	00000009    0 <==
0000000e 
	00000016    0
	00000015    0
	00000014    0
	00000010    0
	0000000f    0
00000011 
	00000017    0
	00000013    0
	00000012    0
00000018 
	00000019    0
Backtrace:
=>0 0x7265765f (0x0192eb00)
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Cr0k wrote:Here it is :

Code: Select all

 wine jasp.exe 
Don't see nothing obvious... Have you tried with new wineprefix? Virtual desktop? Is your sound configured and working (in winecfg)?
groug
Newbie
Newbie
Posts: 2
Joined: Mon Nov 16, 2009 11:27 am

Re: Jedi Academy error with 1.1.32

Post by groug »

Cr0k wrote:Hi.
I've seen on AppDB that Jedi Academy was rated Platinium, so I've decided to try it.

I've installed it, but when I want to launch it, I've got the following errors :

Code: Select all

fixme:keyboard:RegisterHotKey ((nil),0,0x00000001,9): stub
wine: Unhandled page fault on read access to 0x7265765f at address 0x7265765f (thread 0009), starting debugger...
I've search, but found any answer to my problem.
Hope someone will can help me.

Thx
Hi I'm running fc11 with nvidia proprietary xorg drivers and wine-1.1.32. I had the very same error, with the same address, when I updated xorg-x11-drv-nvidia from 185.18.36 to 190.42. I've reverted to 185.18.36 and it's working again !
groug
Newbie
Newbie
Posts: 2
Joined: Mon Nov 16, 2009 11:27 am

Re: Jedi Academy error with 1.1.32

Post by groug »

groug wrote:
Cr0k wrote:wine: Unhandled page fault on read access to 0x7265765f at address 0x7265765f
By the way, 7265765f is hexa output for the string 'rev_'... looks like some kind of buffer overflow to me.

And FYI it still occurs on Fedora 12 with wine-1.1.35 and xorg-x11-drv-nvidia-190.53. I'll give a try to 185.18.36 and see what happens...
palmer.dabbelt
Newbie
Newbie
Posts: 3
Joined: Sat Jan 30, 2010 8:12 pm

Post by palmer.dabbelt »

I'm getting the same errors, I've made a bugzilla report:

http://bugs.winehq.org/show_bug.cgi?id=21558
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

It might be useful to run using WINEDEBUG=+wgl. The buffer overflow might be related to a call glGetString(GL_EXTENSIONS). A lot of quake3 based games don't expect a very long extension list. Two of the games it affects are Quake3 and Medal of Honor and I guess there are more. On Windows the drivers contain hacks to detect this issue and prevent it from happening.

The nvidia driver README also contains an entry about it:
Some applications, such as Quake 3, crash after querying the OpenGL extension string

Some applications have bugs that are triggered when the extension string is longer than a certain size. As more features are added to the driver, the length of this string increases and can trigger these sorts of bugs.

You can limit the extensions listed in the OpenGL extension string to the ones that appeared in a particular version of the driver by setting the __GL_ExtensionStringVersion environment variable to a particular version number. For example,

__GL_ExtensionStringVersion=17700 quake3

will run Quake 3 with the extension string that appeared in the 177.* driver series. Limiting the size of the extension string can work around this sort of application bug.
palmer.dabbelt
Newbie
Newbie
Posts: 3
Joined: Sat Jan 30, 2010 8:12 pm

Post by palmer.dabbelt »

Using the following

__GL_ExtensionStringVersion=17700 wine jasp.exe

Seems to work for me. I'll update appdb when I get through enough of the game to be satisfied that there aren't any more regressions.
palmer.dabbelt
Newbie
Newbie
Posts: 3
Joined: Sat Jan 30, 2010 8:12 pm

Post by palmer.dabbelt »

I lied, there are no objects (people, destructable objects, etc) with __GL_ExtensionStringVersion=17700.

I've updated the bugzilla report with a log including +wgl, any more suggestions?
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

The segmentation fault is gone, so it fixed the issue. Can't say why this would fail. Try a different nvidia version number using the environment variable.
Alexian
Newbie
Newbie
Posts: 1
Joined: Thu Jul 15, 2010 3:41 pm

Post by Alexian »

Hi there all!

I got the same palmer.dabbelt issue. I loaded JA with this environment variable __GL_ExtensionStringVersion=17700, but there are no objects during the game (no models, no enemies, nothing but the environment)! The game doesn’t give back any strange error, so I don't know...

It’s a little bit curious, because with the same “configuration” JK2 works pretty well!

I tried different values for the string, but nothing to do.

I loaded with Wine 1.2-rc7. Any advice? Maybe do I have to do something more with the configuration of Wine? Or do I have to install somehow the DX9?

Thnx in advance for your help!
nouma
Newbie
Newbie
Posts: 2
Joined: Sun Aug 01, 2010 8:40 am

Post by nouma »

Hi all

How to use this :

__GL_ExtensionStringVersion=17700 wine jasp.exe

when JK2 is running on Steam ?

Thank you !
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

nouma wrote:How to use this when JK2 is running on Steam ?
__GL_ExtensionStringVersion=17700 wine jasp.exe

Code: Select all

__GL_ExtensionStringVersion=17700 wine steam -applaunch 6020
nouma
Newbie
Newbie
Posts: 2
Joined: Sun Aug 01, 2010 8:40 am

Post by nouma »

Thank you for uour answer, but when I try this I've got this ansxer

Code: Select all

wine: cannot find L"C:\\windows\\system32\\steam.exe
"
netfab

Jedi Academy error with 1.1.32

Post by netfab »

Le Sun, 01 Aug 2010 11:05:42 -0500,
"nouma" <[email protected]> a écrit :
Code:
wine: cannot find L"C:\\windows\\system32\\steam.exe
You must cd to the steam installation directory before running your
command.
Locked