Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » General Jazz Jackrabbit Talk

The Access violation

Reply
 
Thread Tools
Excalibur

JCF Member

Joined: Mar 2007

Posts: 17

Excalibur is doing well so far

Aug 11, 2007, 03:29 AM
Excalibur is offline
Reply With Quote
The Access violation

What kind of different things cause access violations in levels?

While I'm trying to host one level, nothing's wrong in it, but it gives access violation after the rabbit has stopped blinking.
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 11, 2007, 03:40 AM
Cpp is offline
Reply With Quote
Access violations are normally caused when jj2 tries to read/write to a part of memory where it is not allowed to do so. Most of the time this is the fault of a bad pointer, which is the result of "bad" jj2 coding and lack of error checking. The only thing I can currently think of, which results in an AV is when you place a trigger/scenery event on a flipped animating tile, but there are definitely more. If that level is the only place where the AV occurs then its probably a matter of level design itself. Otherwise there can be something wrong with your jj2, likely your animation library.
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
blurredd blurredd's Avatar

JCF Member

Joined: Nov 2001

Posts: 1,896

blurredd is an asset to this forumblurredd is an asset to this forum

Aug 11, 2007, 08:37 AM
blurredd is offline
Reply With Quote
Access Violation, although it's outdated and poorly written...
__________________
D3
Extra. No CTO v0.75
Animating Tiles Properties.
ATB Contest. Scripting Language.
Gameplay Theories.
1UP. Pitfall. Desolation.
SC2.

Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Aug 14, 2007, 04:32 AM
Jerrythabest is offline
Reply With Quote
Same happens to me with his level file. Save & Run works normally though. It's only crasing when hosting.
__________________
Soulweaver

JCF Member

Joined: Aug 2007

Posts: 42

Soulweaver is an asset to this forum

Aug 14, 2007, 10:15 AM
Soulweaver is offline
Reply With Quote
Quote:
Originally Posted by BlurredD View Post
Access Violation, although it's outdated and poorly written...
Also, Access Violation in common: http://en.wikipedia.org/w/index.php?...cess_violation or http://www.knowledgerush.com/kr/ency...ess_violation/
__________________
KolakCC

JCF Member

Joined: Aug 2007

Posts: 9

KolakCC is doing well so far

Aug 19, 2007, 06:36 AM
KolakCC is offline
Reply With Quote
Garr.. When playing single player, if i warp once, then again, i get an access violation. The problem started with only lori, then moved to jazz, and now spaz.
I have been messing around in anims.j2a and the results are ----v i only messed with those and don't see how the warp could be broken. Please help...

EDIT: replaced the anims.j2a, it still doesn't work...
If this matters to andybody...
WIN: Jazz Jackrabbit 2 has caused an access violation at address 0046D033h by attempting to "read" from address 00000000h from jazz2.log

Also noticing that if i jump on a certain place, iget an access vio too..
pic of access vio:
http://kolakcc.ath.cx/access%20vio.bmp

Quote:
Originally Posted by Vegito View Post
Just make sure you get another Jazz2.log and it might actually work!

Unfortunatly its not that easy. =P
Didn't help
__________________
If the moo is you, how could you come out of a cow o_O?

Last edited by KolakCC; Aug 19, 2007 at 09:09 AM.
Vegito

JCF Member

Joined: Oct 2003

Posts: 2,861

Vegito is an asset to this forum

Aug 19, 2007, 08:16 AM
Vegito is offline
Reply With Quote
Just make sure you get another Jazz2.log and it might actually work!

Unfortunatly its not that easy. =P
__________________
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 19, 2007, 08:34 AM
Cpp is offline
Reply With Quote
Quote:
Originally Posted by KolakCC View Post
WIN: Jazz Jackrabbit 2 has caused an access violation at address 0046D033h by attempting to "read" from address 00000000h from jazz2.log
Hmm, I don't have the function at 0046DBB0 (TSF: 0046D000) commented. It must be something I haven't come across yet. The error seems to happen in this particular line:

0046D033 MOV CX,WORD PTR DS:[EDX+EAX*2]

This is a read instruction, which confirms my suspicion that AV is caused by a bad pointer. As stated in your error message, EDX+EAX*2 must be resulting in a 0. The question is what causes it, but I fear I cannot answer that just yet. I'll see if I can find something interesting.
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
Old Aug 19, 2007, 08:48 AM
KolakCC
This message has been deleted by KolakCC. Reason: Hehe whoops, not so detailed as i hoped..
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 19, 2007, 09:07 AM
Cpp is offline
Reply With Quote
Well if you manage to capture the error screen with all the registers, that'd be nice.
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
KolakCC

JCF Member

Joined: Aug 2007

Posts: 9

KolakCC is doing well so far

Aug 19, 2007, 09:11 AM
KolakCC is offline
Reply With Quote
been there done that,
__________________
If the moo is you, how could you come out of a cow o_O?
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 19, 2007, 10:35 AM
Cpp is offline
Reply With Quote
The registers you posted don't tell much on what's going on as some of them get XOR-ed out. The symptoms become apparent in this function (it's 1.23), but the source of the problem could be much harder to find. I can only guess what the problem is, since I can't reproduce it.

Code:
0046DBB0 MOV EAX,ECX
0046DBB2 XOR ECX,ECX
0046DBB4 MOV CX,WORD PTR DS:[54956B]
0046DBBB SUB EAX,ECX
0046DBBD JNS SHORT 0046DBC2
0046DBBF XOR EAX,EAX
0046DBC1 RET
0046DBC2 MOV ECX,EAX
0046DBC4 SHL ECX,4
0046DBC7 ADD ECX,EAX
0046DBC9 LEA ECX,DWORD PTR DS:[EAX+ECX*8]
0046DBCC XOR EAX,EAX
0046DBCE MOV AL,BYTE PTR DS:[ECX+54B175]
0046DBD4 DEC EAX
0046DBD5 CMP EDX,EAX
0046DBD7 JNB SHORT 0046DBDB
0046DBD9 MOV EAX,EDX
0046DBDB MOV EDX,DWORD PTR DS:[ECX+54B176]
0046DBE1 XOR ECX,ECX
0046DBE3 MOV CX,WORD PTR DS:[EDX+EAX*2]
0046DBE7 MOV EAX,ECX
0046DBE9 RET
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Aug 19, 2007, 12:17 PM
Jerrythabest is offline
Reply With Quote
Okay, so where did you get the JJ2 source?
__________________
Birdie Birdie's Avatar

JCF Member

Joined: Mar 2005

Posts: 1,796

Birdie is doing well so far

Aug 19, 2007, 01:25 PM
Birdie is offline
Reply With Quote
That isn't really the JJ2 source, that is just the asm (machine code) that makes up jazz2.exe itself.
__________________
Dermo Dermo's Avatar

JCF Member

Joined: Jun 2005

Posts: 1,743

Dermo should make better posts

Aug 19, 2007, 05:33 PM
Dermo is offline
Reply With Quote
Quote:
Originally Posted by Jerrythabest View Post
Okay, so where did you get the JJ2 source?


__________________
Yes, I am, in fact, ALWAYS the one to blame for everything. And none of your are full of yourself. Good job.

Do you like Stijn? Take my poll!




Windows is not a virus. A virus is small and efficient...

Note to Stijn: how am i even getting away with this
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Aug 20, 2007, 01:39 AM
Jerrythabest is offline
Reply With Quote
LOL I expected at least a *sigh* reply, but that second image was funnier ;p

He just talked like he had the source ;p "Oh I haven't got it commented but it's this and that line which does that so it must be something with this and that"

See? ;p
__________________
KolakCC

JCF Member

Joined: Aug 2007

Posts: 9

KolakCC is doing well so far

Aug 20, 2007, 03:29 AM
KolakCC is offline
Reply With Quote
Quote:
Okay, so where did you get the JJ2 source?


Sooo.... how do i fix the problem..?

RAWR: Can't host anymore T_T


EDIT: Just a note... this is all TSF..
__________________
If the moo is you, how could you come out of a cow o_O?

Last edited by KolakCC; Aug 20, 2007 at 04:18 AM.
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 20, 2007, 04:40 AM
Cpp is offline
Reply With Quote
Quote:
Originally Posted by Jerrythabest View Post
He just talked like he had the source ;p
Maybe I do
Quote:
Originally Posted by KolakCC View Post
Sooo.... how do i fix the problem..?
Can you tell me exactly how to reproduce it?
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
KolakCC

JCF Member

Joined: Aug 2007

Posts: 9

KolakCC is doing well so far

Aug 20, 2007, 04:52 AM
KolakCC is offline
Reply With Quote
Just noticed that it only happens on 1 level...

1: start in SP
2: text
3: Trigger zone
4: p-up get
5: warp
6: save point
7: warp
8: AV
__________________
If the moo is you, how could you come out of a cow o_O?
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 20, 2007, 05:03 AM
Cpp is offline
Reply With Quote
Could you please specify the level (file)name and where to get it?
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
KolakCC

JCF Member

Joined: Aug 2007

Posts: 9

KolakCC is doing well so far

Aug 20, 2007, 05:16 AM
KolakCC is offline
Reply With Quote
(link)
__________________
If the moo is you, how could you come out of a cow o_O?

Last edited by KolakCC; Aug 20, 2007 at 05:41 AM.
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 20, 2007, 05:37 AM
Cpp is offline
Reply With Quote
Okay, I feel guilty for helping you out... because I hate hotels. But here's your problem. As I said, if it happens in a single level it's probably a matter of bad level design... which it is. Apparently you have some flipped tiles with certain events on them that are not supposed to be there. Remember! Scenery events on flipped tiles... bad idea.

__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
KolakCC

JCF Member

Joined: Aug 2007

Posts: 9

KolakCC is doing well so far

Aug 20, 2007, 05:41 AM
KolakCC is offline
Reply With Quote
Quote:
Originally Posted by Cpp View Post
Okay, I feel guilty for helping you out... because I hate hotels. But here's your problem. As I said, if it happens in a single level it's probably a matter of bad level design... which it is. Apparently you have some flipped tiles with certain events on them that are not supposed to be there. Remember! Scenery events on flipped tiles... bad idea.

LOOOOL I am such a nooblet >_<
__________________
If the moo is you, how could you come out of a cow o_O?
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Aug 20, 2007, 05:44 AM
Jerrythabest is offline
Reply With Quote
But this didn't solve Chaos's problem.
__________________
Cpp Cpp's Avatar

JCF Member

Joined: Mar 2001

Posts: 1,557

Cpp is doing well so far

Aug 20, 2007, 05:45 AM
Cpp is offline
Reply With Quote
Quote:
Originally Posted by Jerrythabest View Post
But this didn't solve Chaos's problem.
In order to solve something I need more info...
__________________
<a href="http://nmap.org/"><img border="0" alt="Nmap Security Scanner" src="http://images.insecure.org/nmap/images/prop/nmap_bnr_matrix_pfos.gif"/></a>
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Aug 20, 2007, 07:42 AM
Jerrythabest is offline
Reply With Quote
Chaos, come here and post your level.
__________________
Sucer

JCF Member

Joined: Nov 2005

Posts: 656

Sucer is doing well so far

Sep 9, 2007, 05:53 AM
Sucer is offline
Reply With Quote
xdddd
__________________
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Sep 9, 2007, 02:11 PM
Jerrythabest is offline
Reply With Quote
Okay, that was undoubtedly chaos posing. But he didn't post the level.
__________________
Xobim Xobim's Avatar

JCF Member

Joined: May 2005

Posts: 2,454

Xobim is doing well so far

Sep 10, 2007, 01:26 PM
Xobim is offline
Reply With Quote
While we're talking about AVs, does anybody actually know why JJ2 gets an access violation when playing .it files?
__________________
Earth Mantra, for all your ambient music needs.
Birdie Birdie's Avatar

JCF Member

Joined: Mar 2005

Posts: 1,796

Birdie is doing well so far

Sep 10, 2007, 03:20 PM
Birdie is offline
Reply With Quote
It can be because of the size of the file, or because of some of the effects the module uses.
__________________
Xobim Xobim's Avatar

JCF Member

Joined: May 2005

Posts: 2,454

Xobim is doing well so far

Sep 11, 2007, 07:33 AM
Xobim is offline
Reply With Quote
It must be those effects that the galaxy mod system can't play. JJ2 needs a new module player!
__________________
Earth Mantra, for all your ambient music needs.
Jerrythabest Jerrythabest's Avatar

JCF Member

Joined: Apr 2005

Posts: 2,602

Jerrythabest is a forum legendJerrythabest is a forum legendJerrythabest is a forum legend

Sep 11, 2007, 07:38 AM
Jerrythabest is offline
Reply With Quote
JJ2 needs a lot new stuff IMHO
__________________
dhudk

JCF Member

Joined: Jan 2015

Posts: 6

dhudk has disabled reputation

Jan 1, 2015, 05:01 AM
dhudk is offline
Reply With Quote
Well, here's a big problem:

Until about two months ago, I played JJ2 tsf (The Secret Files) and EVERY thing was FINE. I played the game with no problems at all.
Since October 2014, I didn't play it anymore, even once until today. I tried to run the game today. But this time, the game didn't even start, and I see this message right on the spot:


Quote:
Application Error - Access Violation

Access Violation
Jazz Jackrabbit 2 has caused an access violation at address 055B05E3h by attempting to address 0055B05E3h.

DS = 002Bh EAX = 3h
ES = 002Bh EBX = 55B2050h
FS = 0053h ECX = 3DBE4A0h
GS = 002Bh EDX = 55B2E18h
CS:EIP = 0023h:055B05E3h ESI = 2000h
SS:ESP = 002Bh:0628FE5Ch EDI = 2000h
SS:EBP = 0023h:00000DC8h EBP = DC8h
I'm running Windows 8.1 x64 (64 bit) on my PC.
Anybody knows what is this error and how do I get it fixed???
Thx for any help!
Nick1416 Nick1416's Avatar

JCF Member

Joined: Nov 2012

Posts: 6

Nick1416 is doing well so far

Jan 1, 2015, 08:08 AM
Nick1416 is offline
Reply With Quote
Hmm, I can't make up what is causing the access violation from this (maybe there are people on this forum who can). But make sure to try things like starting the game as administrator, or check if you aren't missing any files in your JJ2 folder. And if all of that doesn't work I'm thinking of re-installing the game, but since I'm no expert in acces violations I would consider trying out the other things and waiting for replies since the solution might be way simpler :P Good luck!
dhudk

JCF Member

Joined: Jan 2015

Posts: 6

dhudk has disabled reputation

Jan 1, 2015, 10:48 AM
dhudk is offline
Reply With Quote
Quote:
Originally Posted by Nick1416 View Post
Hmm, I can't make up what is causing the access violation from this (maybe there are people on this forum who can). But make sure to try things like starting the game as administrator, or check if you aren't missing any files in your JJ2 folder. And if all of that doesn't work I'm thinking of re-installing the game, but since I'm no expert in acces violations I would consider trying out the other things and waiting for replies since the solution might be way simpler :P Good luck!
Thanks) But I have already tried all of the above things you suggested and none of them worked. All the files I had in the game were left untouched till today, everything seems to be in place.

Anyway, I'll wait for more suggestions and see where it goes..

btw, the game seemed to be running perfectly when I restarted my PC and boot it into safe mode. I could play the game as anytime as before. And still, after I reboot the PC into the regular state, I tried to run the game once again and it seems that this error actually never gone.
It doesn't bother me if I play it on safe mode, but the only problem is that on safe mode I don't have sound. Also, it's uncomfortable for me to do the other stuff I need on the PC while on safe mode and other features that I need are disabled such as browsing the internet.
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 864

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Jan 1, 2015, 11:27 AM
Seren is offline
Reply With Quote
Show us contents of jazz2.log from after a crash.
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.
dhudk

JCF Member

Joined: Jan 2015

Posts: 6

dhudk has disabled reputation

Jan 1, 2015, 11:37 AM
dhudk is offline
Reply With Quote
Quote:
Originally Posted by Sir Ementaler View Post
Show us contents of jazz2.log from after a crash.
Here it is:

Quote:
LOG: GRADE (Build 98-194W), Executable: D:\Jazz Jackrabbit 2-The Secret Files\Jazz2.exe
LOG: Jazz Jackrabbit 2 version 1.24

WIN: Running Microsoft Windows NT version 6.2, Build 9200
CPU: Intel Pentium II processor found
CPU: Processor Vendor ID 'GenuineIntel', Family 6, Model 12, Stepping 3
CPU: Processor Features BFEBFBFF (FPU, MMX)
VID: Checking for available video modes
VID: DirectDraw v6.3.9600.16384 found
VID: Video memory 2083552Kb (1Kb Free), AGP memory 2118788Kb (2118788Kb Free)
VID: Direct3D found
NET: WinSock v2.2 "WinSock 2.0", Status: Running, Host: dhudk
SND: Galaxy Music System v5.0a
SND: Detected DirectSound driver
---- Starting execution: invoke MainProg()

VID: Closing display (DIBSection)
4 macro files found in current directory
Reading animation library
WIN: Jazz Jackrabbit 2 has caused an access violation at address 05C905E3h by attempting to address 05C905E3h
Treylina Treylina's Avatar

JCF Member

Joined: Sep 2009

Posts: 1,046

Treylina is a forum legendTreylina is a forum legendTreylina is a forum legend

Jan 1, 2015, 11:49 AM
Treylina is offline
Reply With Quote
You should download and install JJ2+, open Jazz2+.exe, and see if it fixes that AV for you.

http://www.moddb.com/mods/jazz-jackr...h-2013-release
__________________


Jazz Jackrabbit group: https://discord.gg/vZm95tQ
dhudk

JCF Member

Joined: Jan 2015

Posts: 6

dhudk has disabled reputation

Jan 1, 2015, 12:01 PM
dhudk is offline
Reply With Quote
Quote:
Originally Posted by Treylina View Post
You should download and install JJ2+, open Jazz2+.exe, and see if it fixes that AV for you.

http://www.moddb.com/mods/jazz-jackr...h-2013-release
After I open 'plus.exe', a command promt opens. It reads:

Quote:
JJ2+ Beta Release

Created by BlurredD based on Neobeo's code
With much help from Monolith
And additional code by Grytolle and Cataphract


Type "L" to add levels to the Level List.
Type "Z" to add levels to a zip file.
Type "LZ" to add levels to both the Level List and a zip file.
Type nothing and press [enter] to load JJ2+.
Type "q" to quit.
I press the ENTER key, then a new line appears on the command prompt reading:

Quote:
Version of JJ2 not supported, press [enter] to exit

And well, what is left for me to do...?
Treylina Treylina's Avatar

JCF Member

Joined: Sep 2009

Posts: 1,046

Treylina is a forum legendTreylina is a forum legendTreylina is a forum legend

Jan 1, 2015, 12:09 PM
Treylina is offline
Reply With Quote
Wrong exe, it's plusifier.exe, not plus.exe. I know, plus.exe is terribly named.

Remember to transfer all contents into the corresponding jj2 folder and extract it out of the zip.

Though I have a feeling you have the LK avalon version.
__________________


Jazz Jackrabbit group: https://discord.gg/vZm95tQ
dhudk

JCF Member

Joined: Jan 2015

Posts: 6

dhudk has disabled reputation

Jan 1, 2015, 01:51 PM
dhudk is offline
Reply With Quote
Quote:
Originally Posted by Treylina View Post
Wrong exe, it's plusifier.exe, not plus.exe. I know, plus.exe is terribly named.

Remember to transfer all contents into the corresponding jj2 folder and extract it out of the zip.

Though I have a feeling you have the LK avalon version.
Absolutely right, I have the LK Avalon ver. which is not supported.
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 01:00 PM.