[Duplicate] Crashes with modified monsters and such.

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
User avatar
Nash
 
 
Posts: 17513
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Crashes with modified monsters and such.

Post by Nash »

I didn't want to post this at first because I know people are annoyed with useless bug reports but I can't take it anymore - I think ZDoom has crashed on me like 50 times and I think it has something to do with my modified monsters. These happen when I kill the monsters. Sometimes it doesn't crash and I'm lucky - but most of the time it crashes.

Code: Select all


Code: ACCESS_VIOLATION
Tried to read address 00000018
Flags: 00000000
Address: 00460c6a

Windows NT 5.1 Build 2600 Service Pack 1

GS=0000  FS=0038  ES=0023  DS=0023
EAX=01b0fcbd  EBX=01b57850  ECX=01ba5540  EDX=0052e1d8
ESI=00000000  EDI=01ba5540
EBP=00000000  EIP=00460c6a  ESP=0012fbd0  CS=001b  SS=0023
EFlags=00010246
 CF- PF+ AF- ZF+ SF- TF- IF+ DF- OF- NT- RF+ VM- AC- VI- VP-

FPU State:
 ControlWord=027f StatusWord=7820 TagWord=7fff
 ErrorOffset=00460c5b
 ErrorSelector=0466001b
 DataOffset=01ba5648
 DataSelector=ffff0023
 Cr0NpxState=00000000

MM0=0000000000000000
MM1=0040003e00000039
MM2=ecee93c4bf880026
MM3=8000000000000000
MM4=0000000000000000
MM5=0000000001ba5540
MM6=0000000001b0fcbd
MM7=000000230012fbd0

Running threads:
00000be0 at 00460c6a*
00000d8c
00000d08
00000e04
00000890
00000c18
000000b0
00000c34
000008f8

Loaded modules:
00400000 - 00630fff *zdoom.exe
77f50000 - 77ff6fff  ntdll.dll
77e60000 - 77f45fff  kernel32.dll
71950000 - 71a33fff  COMCTL32.dll
77c10000 - 77c62fff  msvcrt.dll
77c70000 - 77caffff  GDI32.dll
77d40000 - 77dcbfff  USER32.dll
77dd0000 - 77e5cfff  ADVAPI32.dll
78000000 - 78085fff  RPCRT4.dll
70a70000 - 70ad4fff  SHLWAPI.dll
71ad0000 - 71ad7fff  WSOCK32.dll
71ab0000 - 71ac4fff  WS2_32.dll
71aa0000 - 71aa7fff  WS2HELP.dll
76b40000 - 76b6bfff  WINMM.dll
10000000 - 10093fff  fmod.dll
77be0000 - 77bf3fff  MSACM32.dll
771b0000 - 772d0fff  ole32.dll
763b0000 - 763f4fff  comdlg32.dll
773d0000 - 77bc1fff  SHELL32.dll
5cd70000 - 5cd76fff  serwvdrv.dll
5b0a0000 - 5b0a6fff  umdmxfrm.dll
5ad70000 - 5ada3fff  uxtheme.dll
00ca0000 - 00caffff  tabhook.dll
76f50000 - 76f57fff  wtsapi32.dll
76360000 - 7636efff  WINSTA.dll
76f90000 - 76f9ffff  Secur32.dll
00cc0000 - 00cd0fff  ctagent.dll
51080000 - 510d5fff  DSOUND.dll
77c00000 - 77c06fff  VERSION.dll
30000000 - 30040fff  IMGHOOK.DLL
72d20000 - 72d28fff  wdmaud.drv
72d10000 - 72d17fff  msacm32.drv
77bd0000 - 77bd6fff  midimap.dll
5ef80000 - 5ef83fff  KsUser.dll
76fd0000 - 77047fff  CLBCATQ.DLL
77120000 - 771aafff  OLEAUT32.dll
77050000 - 77114fff  COMRes.dll
6ce10000 - 6ce44fff  dinput8.dll
688f0000 - 688f8fff  HID.DLL
76670000 - 76756fff  SETUPAPI.DLL
51000000 - 51046fff  ddraw.dll
73bc0000 - 73bc5fff  DCIMAN32.dll

Bytes near EIP:
00460c5a: 2c db 87 08 01 00 00 89 9f b0 00 00 00 8b 43 18
00460c6a: 8b 56 18 d9 5c 24 30 8b 4b 1c 2b d0 8b 46 1c 89
00460c7a: 54 24 28 db 44 24 28 8b 56 20 2b c1 8b 4b 20 d9

ZDoom version 2.0.63

Command line:
 F:\Games\DOOM\zdoom.exe gibdeath
IWAD: doom2.wad

Current map: MAP01

viewx = 24379708
viewy = -30427808
viewz = 2717683
viewangle = 3930324992

Possible call trace:
 00460c6a  BOOM
 00482c69  call 00460be0
 0045d1e2  call eax
 00462110  call 0045d0e0
 004220f7  call [edx+0x10]
 0042237d  call 00422080
 00473934  call 00422330
 0042aaeb  call 00473850
 0041b572  call 0042a7d0
 0041760c  call 0041b280
 0040b083  call 0040afd0
 0040b083  call 0040afd0
 0049bb21  call 0040b070
 0049bc23  call 004ffa66
 00498cd3  call 00417660
 00498fe5  call 00498920
 00502f1a  call 00498f70
 00502dae  call 00500810
 00502d96

Stack Contents:
0012fbd0: 01abf8d0 01b57850 ffe00000 00000000  ····Px··········
0012fbe0: 00000000 00000064 01abf8d0 01b57850  ····d·······Px··
0012fbf0: 00482c69 00000000 01b57850 00000000  i,H·····Px······
0012fc00: 00bde5b8 0000b505 00000000 00c82ae8  ·············*··
0012fc10: 01b57850 01c0f238 ffffbdc4 0045d1e2  Px··8·········E·
0012fc20: 00c01020 01b57850 00462110 00c82ae8   ···Px···!F··*··
0012fc30: 00000000 00000006 00000000 01b57850  ············Px··
0012fc40: 00000000 00000000 00000000 00000000  ················
0012fc50: 00000000 00000000 00010000 00000000  ················
0012fc60: 004220f7 005ae6d4 00000008 00000000  · B···Z·········
0012fc70: 0042237d 00000008 005b0ef8 00000001  }#B·······[·····
0012fc80: 00473934 000000b0 00000001 0042aaeb  49G···········B·
0012fc90: 005aedfe 0000001f 654d42f7 0041b572  ··Z······BMer·A·
0012fca0: 00000004 00bbd730 0012fcd8 00000001  ····0···········
0012fcb0: 0041760c 00000004 00bbd730 00000001  ·vA·····0·······
0012fcc0: 00000001 000000af 0012fcb4 0012fe04  ················
0012fcd0: 00511125 00000000 00000000 0000026e  %·Q·········n···
0012fce0: 000000f8 0012fe6c 0000017e 67fcedab  ····l···~······g
0012fcf0: 00baea90 524cc075 7d61b417 6d6f6f44  ····u·LR··a}Doom
0012fd00: 7475412e 616f6c6f 6b730064 00736e69  .Autoload·skins·
0012fd10: 5c5667a1 80f5de8f 91fdced1 1e07d349  ·gV\········I···
0012fd20: 7153cc22 fec81474 9a16904f 6a1fbd8f  "·Sqt···O······j
0012fd30: 2903af5c 0d7bc8a2 fb1b4d18 abcb200e  \··)··{··M··· ··
0012fd40: 4e9a20bc c1b2afb7 7e0795cd 00000002  · ·N·······~····
0012fd50: 21909c54 0040b083 0012fd64 00000002  T··!··@·d·······
0012fd60: 21909c54 0040b083 0012fd74 0049bb21  T··!··@·t···!·I·
0012fd70: 00531498 0049bc23 00000094 00000005  ··S·#·I·········
0012fd80: 00000001 00000a28 00000002 76726553  ····(·······Serv
0012fd90: 20656369 6b636150 77003120 772bb638  ice Pack 1·w8·+w
0012fda0: 771c453f 00000000 8007000e 0015aa08  ?E·w············
0012fdb0: 771b449c 00000000 00000000 771ce3f3  ·D·w···········w
0012fdc0: 0015aa08 0012fe04 772bb6ec 00000000  ··········+w····
0012fdd0: 772bb264 0012fdfc 771c0ee8 00000001  d·+w·······w····
0012fde0: 00000000 00000002 00000000 00000000  ················
0012fdf0: 0000026e 0000017e 00000002 00909c54  n···~·······T···
0012fe00: 21909c54 0012fe60 00511148 ffffffff  T··!`···H·Q·····
0012fe10: 00498cd3 ffffffff 77e7e6b9 7ffdf000  ··I········w···
0012fe20: 00000000 00000000 0000026e 0000017e  ········n···~···
0012fe30: 00000001 000f4240 0012fe2c 00000020  ····@B··,··· ···
0012fe40: 00000276 00000000 00400000 00400240  v·········@·@·@·
0012fe50: 00400218 77e60000 00400000 0012fe14  ··@····w··@·····
0012fe60: 0012fe88 00512620 00000000 0012fe98  ···· &Q·········
0012fe70: 00498fe5 77e7ad86 00000000 7ffdf000  ··I····w·······
0012fe80: 0012fe74 0012f7f8 0012ffb0 00502b58  t···········X+P·
0012fe90: 00530b40 00000000 0012ffc0 00502f1a  @·S··········/P·
0012fea0: 00400000 00000000 0015232a 00000001  ··@·····*#······
0012feb0: 00000094 00000005 00000001 00000a28  ············(···
0012fec0: 00000002 76726553 20656369 6b636150  ····Service Pack
0012fed0: ed003120 edbbac08 00000001 00000000   1··············
0012fee0: 00000001 e2e4b000 e2e4c000 e2e4d000  ················
0012fef0: e2e4e000 e2e4f000 e2e50000 e2e51000  ················
0012ff00: e2e52000 e2e53000 e2e54000 e2e55000  · ···0···@···P··
0012ff10: e2e56000 84e34308 84e34308 edbbac1c  ·`···C···C······
0012ff20: 84d549a8 00000300 0003791d 00000001  ·I·······y······
0012ff30: 0000000c 00000000 01bbac3c 00001e4b  ········<···K···
0012ff40: 00502dae 70a9f1ab 80000002 7ffdf000  ·-P····p·······
0012ff50: 00000044 00153288 00153238 001532e8  D····2··82···2··
0012ff60: 00000000 00000000 00000000 00000000  ················
0012ff70: 00000000 00000000 00000000 00000401  ················
0012ff80: 00000001 00000000 00000000 00010001  ················
0012ff90: 00000000 00000006 00000000 8053476f  ············oGS·
0012ffa0: 0015232a 00000000 0012feb0 e3e31d98  *#··············
0012ffb0: 0012ffe0 00502b58 0055e250 00000000  ····X+P·P·U·····
0012ffc0: 0012fff0 77e814c7 70a9f1ab 80000002  ·······w···p····
0012ffd0: 7ffdf000 edbbacf0 0012ffc8 80534504  ············ES·
0012ffe0: ffffffff 77e94809 77e91210 00000000  ·····H·w···w····
0012fff0: 00000000 00000000 00502d96 00000000  ·········-P·····

User avatar
Giest118
Posts: 2914
Joined: Fri Dec 05, 2003 11:02 pm

Post by Giest118 »

How about you give us the DECORATE lump and NOT, I repeat, NOT the error message.
User avatar
Nash
 
 
Posts: 17513
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Post by Nash »

Relax, I think you need to get out more. :)

Code: Select all

// BLABLABLA

ACTOR NewZombieMan : ZombieMan 3004
{

DropItem Clip

States
{
Death:
POSS H 5
POSS I 5 A_Scream
POSS J 5 A_Fall
POSS K 5
POSS L 1 A_HideThing
POSS L -1 A_CustomMissile("NewZombieManDead", 0, 0, 0)
Stop
}

}

ACTOR NewZombieManDead
{
Health 50
Speed 0
+SHOOTABLE

States
{
Spawn:
POSS L 1 A_Gravity
Loop

Death:
TROO P 5 A_XScream
TROO P 1 A_CustomMissile("Gibs", 3, 0, 45)
TROO P 1 A_CustomMissile("BrainStem", 8, 0, -90)
TROO Q 5
TROO R 5
TROO S 5
TROO T 5
TROO U -1
Stop
}

}
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

You say it crashes when you kill the NewZombieMan and I noticed you've been using A_CustomMissile in the death frames. It's certainly a well-known bug. It's been fixed a while ago, but we need to wait for 0.64 to actually see the difference. If you're using it in an attack frame, just make the monster wider (40 seems to do it). Since you don't have any special angles or offsets in your use of A_CustomMissile, you might want to use just the generic A_MissileAttack instead and include a line above that says "MissileHeight 0". Only A_CustomMissile crashes this, so A_MissileAttack should work alright. For the death sequence of your NewZombieManDead actor, you might want to raise the missile height a little higher from the ground.
Last edited by Anakin S. on Mon Mar 15, 2004 4:39 pm, edited 1 time in total.
User avatar
Nash
 
 
Posts: 17513
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Post by Nash »

Thanks, the temporary fix should do until the new version is out.

Return to “Closed Bugs [GZDoom]”