[Closed] Crash

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Crash

Postby Doom » Wed Oct 01, 2003 1:08 am

Code: ACCESS_VIOLATION
Tried to read address ffffffff
Flags: 00000000
Address: 004e3420

Windows 9x 4.90 Build 73010104

GS=0000 FS=171f ES=0197 DS=0197
EAX=00000000 EBX=ffbaa998 ECX=00000000 EDX=00c34010
ESI=00562690 EDI=ffffffff
EBP=00c95090 EIP=004e3420 ESP=0083fa10 CS=018f SS=0197
EFlags=00010206
CF- PF+ AF- ZF- SF- TF- IF+ DF- OF- NT- RF+ VM- AC- VI- VP-

FPU State:
ControlWord=027f StatusWord=0120 TagWord=ffff
ErrorOffset=00425dc7
ErrorSelector=011c018f
DataOffset=0083fa60
DataSelector=ffff0197
Cr0NpxState=0000000a

MM0=0000000000000000
MM1=0000000000000000
MM2=8000000000000000
MM3=8000000000000000
MM4=000000000000000a
MM5=00562690ffffffff
MM6=00c9509000000000
MM7=000001970083fa10

Running threads:
ffe7b033 at 004e3420*
ffe7b74f
ffe4cd87
ffe7893b

Loaded modules:
75fe0000 - 7606ffff SETUPAPI.DLL
7f6f0000 - 7f6f9fff CFGMGR32.DLL
75150000 - 75162fff CABINET.DLL
7fe40000 - 7fe48fff WINSPOOL.DRV
bfe40000 - bfe45fff LZ32.DLL
7be60000 - 7be67fff HID.DLL
70000000 - 70039fff DINPUT8.DLL
baaa0000 - baafefff DDRAW.DLL
bfe70000 - bfe74fff NTDLL.DLL
73d40000 - 73d6afff WINTRUST.DLL
7b8d0000 - 7b8f2fff IMAGEHLP.DLL
7da30000 - 7daa4fff CRYPT32.DLL
79e70000 - 79e7ffff MSASN1.DLL
beaf0000 - beb63fff DSOUND.DLL
bfe50000 - bfe55fff VERSION.DLL
00f20000 - 00f34fff SSSENSOR.DLL
7b780000 - 7b786fff INDICDLL.DLL
bfe00000 - bfe03fff IMM32.DLL
22000000 - 22006fff PGPHK.DLL
00400000 - 0060ffff *ZDOOM.EXE
7fe00000 - 7fe33fff COMDLG32.DLL
7fbc0000 - 7fdf2fff SHELL32.DLL
70bd0000 - 70c1bfff SHLWAPI.DLL
10000000 - 10086fff FMOD.DLL
7ff20000 - 7ffe1fff OLE32.DLL
7a0d0000 - 7a0e8fff MSACM32.DLL
bfdd0000 - bfddffff WINMM.DLL
73220000 - 73228fff WSOCK32.DLL
77c40000 - 77c53fff MSWSOCK.DLL
73260000 - 73270fff WS2_32.DLL
7f770000 - 7f7adfff RASAPI32.DLL
7f750000 - 7f760fff SECUR32.DLL
7f850000 - 7f857fff SVRAPI.DLL
7fa20000 - 7fa32fff MSNET32.DLL
7fa60000 - 7fa69fff MSPWL32.DLL
7f860000 - 7f87dfff TAPI32.DLL
7faa0000 - 7faf3fff RPCRT4.DLL
7f890000 - 7f894fff NETAPI32.DLL
7f720000 - 7f727fff NETBIOS.DLL
7f110000 - 7f11dfff MPR.DLL
73250000 - 73254fff WS2HELP.DLL
78000000 - 78045fff MSVCRT.DLL
bfe80000 - bff0dfff COMCTL32.DLL
bff40000 - bff50fff USER32.DLL
bff10000 - bff39fff GDI32.DLL
bfe60000 - bfe6ffff ADVAPI32.DLL
bff60000 - bffe5fff KERNEL32.DLL

Bytes near EIP:
004e3410: 8b 0d cc 80 59 00 56 eb 07 8d a4 24 00 00 00 00
004e3420: 8a 01 84 c0 0f 84 90 00 00 00 3c 0a 8b f1 74 1f
004e3430: 84 c0 74 10 8a 41 01 41 3c 0a 75 f4 89 0d cc 80

ZDoom version 2.0.47

Command line:
C:\Games\DOOM\zdoom.exe C:\Games\DOOM\SIMPSONS.DEH
IWAD: doom2.wad

Not in a level.

Possible call trace:
004e3420 BOOM
004e5566 call 004e3410
0042d467 call [005201ac]
00428898 call 0042d446
004288b5 call 0042680f
0042693c call [005201ac]
0042b8f0
0042693c call [005201ac]
00427b75 call 00426929
00423b5e call 00427b53
00423b34 call 0042680f
004236fb call 0042680f
0042b8f0
00423b34 call 0042680f
004f26e0 call 00423b0f
004f2efd call 004e5460
004f4484 call 004f2e90
004ee910 call 004ee870
004ee910 call 004ee870
00476398 call 004ee900
0046d510 call 004f4030
0046d5e5 call 0046d1f0
00425bd7 call 0046d570
00425a6e call 0042a840
00425a56

Stack Contents:
0083fa10: 00562690 004e5566 00c950c0 00000000 ·&V·fUN··P······
0083fa20: 0083fc98 00000000 472f3a43 73656d61 ········C:/Games
0083fa30: 4f4f442f 49532f4d 4f53504d 442e534e /DOOM/SIMPSONS.D
0083fa40: bf004845 00000396 00000001 00000000 EH··············
0083fa50: bff6e320 0083fa68 0083fac4 00608620 ···h······· ·`·
0083fa60: 00000003 00000003 00000003 00000003 ················
0083fa70: 00000396 00000000 00000000 bff6bb26 ············&···
0083fa80: 8175cb2c 0000006c 0042d467 00c701c8 ,·u·l···g·B·····
0083fa90: 00428898 00000003 004288b5 00000000 ··B·······B·····
0083faa0: 00562690 0000002f 00000000 0083fa9c ·&V·/···········
0083fab0: 0042693c 0083fb00 0042b8f0 bff6bb26 <iB·······B·&···
0083fac0: 8175cac4 00562690 0042693c 00c87420 ··u··&V·<iB· t··
0083fad0: 0083fb10 00427b75 00000013 00423b5e ····u{B·····^;B·
0083fae0: 00562690 00423b34 00c87470 00000000 ·&V·4;B·pt······
0083faf0: 0000002f 00000000 0083fae8 004236fb /············6B·
0083fb00: 0083fc8c 0042b8f0 00522ad8 ffffffff ······B··*R·····
0083fb10: 00423b34 004f26e0 00562690 00c950c0 4;B··&O··&V··P··
0083fb20: 00000000 0083fc98 9ffb4cf8 004f2efd ·········L···.O·
0083fb30: 00c95090 00000000 00000000 00590754 ·P··········T·Y·
0083fb40: 00000000 004f4484 0000017e 0000026e ·····DO·~···n···
0083fb50: 00000000 88000000 00c8e260 0000c05c ········`···\···
0083fb60: bff45e5f 0083fb81 0083fb81 00000000 _^··············
0083fb70: 01140000 00000c5f 6d6f6f44 7475412e ····_···Doom.Aut
0083fb80: 616f6c6f 6b730064 00736e69 00837000 oload·skins··p··
0083fb90: 00000000 8176d6b4 00000001 7e9130db ······v······0·~
0083fba0: 00000000 00000001 00000000 0083fbe4 ················
0083fbb0: 7ff4073f 00000000 00000000 bff613e2 ?··············
0083fbc0: 0000018f bff81b8b c29b8cf0 bff69480 ················
0083fbd0: bff613e2 00548580 9ffa8b15 004ee910 ······T·······N·
0083fbe0: 00000002 00548578 9ffa8b15 004ee910 ····x·T·······N·
0083fbf0: 00000002 0083fc00 00476398 00548578 ·········cG·x·T·
0083fc00: 0083fc18 00000094 00000004 0000005a ············Z···
0083fc10: 045a0bb8 00000001 00000020 0000017e ··Z····· ···~···
0083fc20: 00000000 00000000 7ff2d58d 00000000 ···············
0083fc30: 0000000c 7ff20000 00000000 00000000 ···············
0083fc40: 00000002 00000000 7ff44bc0 0083fc5c ·········K·\···
0083fc50: 7ff44ae7 7ff444d0 bff6bb26 8175ca0c ·J··D·&·····u·
0083fc60: 00000002 7ff40f79 0000017e 0000026e ····y··~···n···
0083fc70: 0083fce4 00000000 0083fc88 7ff40ec1 ···············
0083fc80: 00000000 9ff2b715 9fb46205 0083fcd8 ·········b······
0083fc90: 00510aef ffffffff 0083fce4 0046d510 ··Q···········F·
0083fca0: ffffffff bff868b5 00730000 00000000 ·····h····s·····
0083fcb0: 00000000 0000026e 0000017e 00000001 ····n···~·······
0083fcc0: 0000ffff 8176d6b4 00000276 00000199 ······v·v·······
0083fcd0: bff60000 0083fca0 0083fd00 00510af9 ··············Q·
0083fce0: 00000000 0083fd10 0046d5e5 bff676ee ··········F··v··
0083fcf0: 00000000 00730000 0083fcec 0083f840 ······s·····@···
0083fd00: 0083fe28 0042b8f0 005259e8 00000000 (·····B··YR·····
0083fd10: 0083fe38 00425bd7 00400000 00000000 8····[B···@·····
0083fd20: 81766dec 00000001 00000094 00000004 ·mv·············
0083fd30: 0000005a 045a0bb8 00000001 00000020 Z·····Z····· ···
0083fd40: 00000000 00000000 00000000 000000fe ················
0083fd50: 011f0000 8dc23a48 00000001 01870000 ····H:··········
0083fd60: 5fa48d7c 01800177 00000000 4cb200fe |··_w··········L
0083fd70: 000859ef 00008dc1 00000000 518b8d98 ·Y·············Q
0083fd80: 8dc1ffff bfe612fc 00000001 01774efe ·············Nw·
0083fd90: 8176ae34 00000000 00000000 0083ffff 4·v·············
0083fda0: 7fbc8cb8 00000001 bffb1b20 8176ae34 ······· ···4·v·
0083fdb0: 00000000 00000000 00425a6e 00000000 ········nZB·····
0083fdc0: 8176d6b4 00730000 8176ae34 00000000 ··v···s·4·v·····
0083fdd0: 81766dec 00000044 00000000 00000000 ·mv·D···········
0083fde0: 00000000 00000000 00000000 00000000 ················
0083fdf0: 00000000 00000000 00000000 00000000 ················
0083fe00: 00000401 00000001 00000000 00000000 ················
0083fe10: 000012f8 00000000 00000000 00000000 ················
0083fe20: 0083fd28 8176d6b4 0083ff68 0042b8f0 (·····v·h·····B·
0083fe30: 00522cd0 00000000 0083ff78 bff7b9e4 ·,R·····x·······
0083fe40: 00000000 8176d6b4 00730000 6f6f645a ······v···s·Zdoo
0083fe50: 5845006d 00000045 00000000 00000000 m·EXE···········
0083fe60: 00000000 00000000 00000000 00000000 ················
0083fe70: 00000000 00000000 00000000 00000000 ················
0083fe80: 00000000 00000000 00000000 00000000 ················
0083fe90: 00000000 00000000 00000000 00000000 ················
0083fea0: 00000000 00000000 00000000 00000000 ················
0083feb0: 00000000 00000000 00000000 00000000 ················
0083fec0: 00000000 00000000 00000000 00000000 ················
0083fed0: 00000000 00000000 00000000 00000000 ················
0083fee0: 00000000 00000000 00000000 00000000 ················
0083fef0: 00000000 00000000 00000000 00000000 ················
0083ff00: 00000000 00000000 00000000 00000000 ················
0083ff10: 00000000 00000000 00000000 00000000 ················
0083ff20: 00000000 00000000 00000000 00000000 ················
0083ff30: 00000000 00000000 0083ff6c 816ea050 ········l···P·n·
0083ff40: 81766e68 cd2b3850 0083ff6c 00425a56 hnv·P8+·l···VZB·
0083ff50: bff6b487 00000000 8176d6d4 261e0000 ··········v····&
0083ff60: 0083fe40 00730000 ffffffff bffb1b20 @·····s····· ···
0083ff70: bff69138 00000000 0083fff4 bff7b896 8···············
0083ff80: 8176ade8 00000008 8176d6b4 00000000 ··v·······v·····
0083ff90: 00000000 00000000 00000000 00000000 ················
0083ffa0: 00000000 00000000 00000000 00000000 ················
0083ffb0: 00000000 00000000 00000000 00000000 ················
0083ffc0: 00000000 00000000 00000000 00000000 ················
0083ffd0: 0002ffff 0000f283 0083e000 00840000 ················
0083ffe0: 00000000 ffffffff 8176b014 00000000 ··········v·····
0083fff0: 5e9f261e 82d2afec bff7a24f 00000000 ·&·^····O·······
User avatar
Doom
Give me 80's metal or give me death
 
Joined: 22 Sep 2003
Location: Stuffed in your ass

Postby Biff » Wed Oct 01, 2003 7:06 am

Usually a dehacked file is loaded with the -deh argument, so I'd suggest you try:

C:\Games\DOOM\zdoom.exe -deh C:\Games\DOOM\SIMPSONS.DEH

The crash message says "not in a level" so it appears zdoom tried to treat your simpsons.deh as a wad file.
User avatar
Biff
Caleb is back for a visit
 
Joined: 16 Jul 2003
Location: Monrovia, CA, USA

Postby HotWax » Wed Oct 01, 2003 9:24 am

Biff wrote:Usually a dehacked file is loaded with the -deh argument, so I'd suggest you try:

C:\Games\DOOM\zdoom.exe -deh C:\Games\DOOM\SIMPSONS.DEH

The crash message says "not in a level" so it appears zdoom tried to treat your simpsons.deh as a wad file.


Highly doubtful. ZDoom knows how to tell the difference between two file formats even if the extension is wrong.

The "Not in a level" line probably indicates that the game crashed at load or while on the menu, i.e. while not in a level just like it says.
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Doom » Wed Oct 01, 2003 11:30 am

Thanks Biff for your hint but I think it does crash due some other reason. I tried your commandline trick, same happened, I've also loaded the deh file double clicking on it as I have set that extension to open with zdoom as default, but the same happens.

I can only say that deh file is ok cos I've tried it with other ports.

Well, just reporting...
User avatar
Doom
Give me 80's metal or give me death
 
Joined: 22 Sep 2003
Location: Stuffed in your ass

Postby Biff » Wed Oct 01, 2003 12:21 pm

If your zdoom runs OK with C:\Games\DOOM\zdoom.exe without anything else, your problem is being caused by the something else. How about attaching that simpsons.deh file to your post so I can try it?
User avatar
Biff
Caleb is back for a visit
 
Joined: 16 Jul 2003
Location: Monrovia, CA, USA

Postby Doom » Wed Oct 01, 2003 8:36 pm

Get the zip where that deh file comes from:

http://www.gamers.org/pub/idgames/theme ... mpsn2i.zip

No matter if you load the game with all of the files included into the zip, it won't run if simpsons.deh takes part of the command line.
User avatar
Doom
Give me 80's metal or give me death
 
Joined: 22 Sep 2003
Location: Stuffed in your ass

Postby Biff » Thu Oct 02, 2003 7:07 pm

OK Doom, I looked at it. The problem is that the dehacked patch is an older format, older than 3.0 and it includes non-text data. I'm not able to successfully convert it because I need a copy of doom2.exe 1.666 which the patch was written for. It's not too important, it only includes some text changes which may be amusing.

If the patch could be imported into dehacked and written in 3.0 text format, then you could use the zdoom sprite scaling feature (in the dehacked patch) and make some of the sprites look soooo much better (scale them smaller and retain the resolution).
User avatar
Biff
Caleb is back for a visit
 
Joined: 16 Jul 2003
Location: Monrovia, CA, USA

Postby Doom » Thu Oct 02, 2003 10:06 pm

Fucken Awesome, I wouldn't have figured it out by myself not even in a million of years.

I suppose we must wait for an old-deh compatibility addon in a future zdoom release or just try the Doom2.exe trick.

Thanks heaps!.
User avatar
Doom
Give me 80's metal or give me death
 
Joined: 22 Sep 2003
Location: Stuffed in your ass

Postby Ultraviolet » Thu Oct 02, 2003 11:39 pm

Um, no. Load the old patch in a new version of DHE and re-save it. It'll re-write it out to text-format. Always check your patches -- you should be able to read and understand them in notepad.

APPENDAGE TO THIS POST (edit):

And there's a reason why not support old patches: They are raw data instructing the DeHacked patcher on how to modify the old EXE based on offsets within the program where certain values are defined internally. This cannot work in ZDoom because ZDoom is structured nothing like the original EXE, so the patch in that format is worthless. However, the text-format patches have values defined just like that -- understandable, interpretable -- and ZDoom can apply those values to the game as it loads. The original EXE had to actually be permanently altered to affect the gameplay changes that a patch was intended to bring. In fact, that's why it was called a PATCH. The term "patch" is no longer an accurate term, at least if you're using it for ZDoom, because you aren't patching anything. It's more like an INI file for very specific gameplay information.
User avatar
Ultraviolet
AKA "Faint"
 
Joined: 15 Jul 2003
Location: PROJECT DETAILS CLASSIFIED.

Postby HotWax » Fri Oct 03, 2003 2:14 am

Technically speaking, it wouldn't be impossible to support old patch versions. There would just need to be a lookup table containing every possible location that can be modified by a patch and crossreferencing it for what item it's intended to change in the Doom code. Oh, and a separate table will be needed for each and every patch version and each and every version of vanilla Doom which said version of Dehacked supported.

Or, you could simply load the patch into Dehacked and save it.
User avatar
HotWax
Do what you must, and pay the price later.
 
Joined: 18 Jul 2003
Location: Idaho Falls, ID

Postby Doom » Fri Oct 03, 2003 3:04 am

This is out of subject but I'm forced to leech some of your knowledge....are translucent waters currently supported by zdoom?, if so, is there a wad I could try?, if not, will it be possible to add this feature in a future release?.

Thanks.
User avatar
Doom
Give me 80's metal or give me death
 
Joined: 22 Sep 2003
Location: Stuffed in your ass

Postby Kappes Buur » Fri Oct 03, 2003 7:11 am

Doom wrote:....are translucent waters currently supported by zdoom...
Thanks.

Have a look at this thread

http://forum.zdoom.org/viewtopic.php?t=176&start=0
.
User avatar
Kappes Buur
 
 
 
Joined: 17 Jul 2003
Location: British Columbia, Canada

Postby Biff » Fri Oct 03, 2003 8:18 am

Ultraviolet wrote:Um, no. Load the old patch in a new version of DHE and re-save it. It'll re-write it out to text-format. Always check your patches -- you should be able to read and understand them in notepad.
UV, that does not work. I had decided to simply do that and post the "updated" patch, but the patch is not converted successfully. See where I mention needing doom2.exe version 1.666 - I'm assuming that because I have only 1.9, that's why DHE fumbles the job. I did try setting the "version" switch in the dehacked.ini file to indicate version 1.666, but it just won't complete the job properly. If someone has 1.666, maybe they can send it to me, or fix the patch themselves?
User avatar
Biff
Caleb is back for a visit
 
Joined: 16 Jul 2003
Location: Monrovia, CA, USA

Postby Ultraviolet » Fri Oct 03, 2003 9:34 am

Hmm, suddenly DHE is giving me an error about being unable to open the THING name file.
User avatar
Ultraviolet
AKA "Faint"
 
Joined: 15 Jul 2003
Location: PROJECT DETAILS CLASSIFIED.

Postby Enjay » Fri Oct 03, 2003 10:54 am

Ultraviolet wrote:Hmm, suddenly DHE is giving me an error about being unable to open the THING name file.


You probably just never noticed that before. The file is optional but if you don't have one, deh does flag it up as missing when you start.

Here's the skinny from my site:

When you save and load your dehacked patch, the changed names will be saved and loaded from the patch. If you have simply relied on your modified EXE to keep the edit status for you, the modified thing names will be forgotten next time you start dehacked. You can put your changed names in a things name file so that they are automatically loaded each time.

If you want to use this feature, you have to create a text file with all your renamed items in it. The format is like this:

2 RG Trooper
3 RG Chaingunner
4 Inca Railgunner

Where the number is the thing number in the dehacked thing editor (2 is normally the trooper, 3 the sargeant, 4 the archvile etc).

Once you have set up your file, you need to identify it in the dehacked ini. Use the following:

namefile = mynames.nam

to point to your names file where mynames is the name of your name file. Remember, this is a DOS program, so no long file names (8 letters + a 3 letter extension at most).

As an aside, I said that changed thing names are also saved in your patch files. These are restored in dehacked when you load the patch. If you have renamed a thing but not edited any of its data (eg calling a stimpack a band aid or something but otherwise leaving it unchanged) this will not be saved in the patch file. Dehacked only saves changes to the original EXE, not the entire data for each thing. The name data is used by dehacked only, and not doom.exe. If no EXE related data has changed, there will be no entry for the stimpack in your patch, even if you changed the name in dehacked.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Next

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests